Home » openjdk-7 » sun » swing » [javadoc | source]
sun.swing
public class: PrintColorUIResource [javadoc | source]
java.lang.Object
   java.awt.Color
      javax.swing.plaf.ColorUIResource
         sun.swing.PrintColorUIResource

All Implemented Interfaces:
    UIResource, Paint, java$io$Serializable

A subclass of ColorUIResource that wraps an alternate color for use during printing. Useful to replace color values that may look poor in printed output.
Fields inherited from java.awt.Color:
white,  WHITE,  lightGray,  LIGHT_GRAY,  gray,  GRAY,  darkGray,  DARK_GRAY,  black,  BLACK,  red,  RED,  pink,  PINK,  orange,  ORANGE,  yellow,  YELLOW,  green,  GREEN,  magenta,  MAGENTA,  cyan,  CYAN,  blue,  BLUE,  value
Constructor:
 public PrintColorUIResource(int rgb,
    Color printColor) 
    Construct an instance for the given RGB value and alternate color to use during printing.
    Parameters:
    rgb - the color rgb value
    printColor - the alternate color for printing
Method from sun.swing.PrintColorUIResource Summary:
getPrintColor
Methods from java.awt.Color:
HSBtoRGB,   RGBtoHSB,   brighter,   createContext,   darker,   decode,   equals,   getAlpha,   getBlue,   getColor,   getColor,   getColor,   getColorComponents,   getColorComponents,   getColorSpace,   getComponents,   getComponents,   getGreen,   getHSBColor,   getRGB,   getRGBColorComponents,   getRGBComponents,   getRed,   getTransparency,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.swing.PrintColorUIResource Detail:
 public Color getPrintColor() 
    Return the color to use during printing. If no alternate color was specified on construction, this method will return this.