| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Color | |
|---|---|
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. | 
| javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. | 
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. | 
| javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. | 
| javax.swing.colorchooser | Contains classes and interfaces used by the JColorChoosercomponent. | 
| javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel. | 
| javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. | 
| javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated. | 
| javax.swing.table | Provides classes and interfaces for dealing with javax.swing.JTable. | 
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. | 
| javax.swing.text.html | Provides the class HTMLEditorKitand supporting classes
for creating HTML text editors. | 
| javax.swing.tree | Provides classes and interfaces for dealing with javax.swing.JTree. | 
| Uses of Color in java.awt | 
|---|
| Subclasses of Color in java.awt | |
|---|---|
|  class | SystemColorA class to encapsulate symbolic colors representing the color of native GUI objects on a system. | 
| Fields in java.awt declared as Color | |
|---|---|
| static Color | Color.blackThe color black. | 
| static Color | Color.BLACKThe color black. | 
| static Color | Color.blueThe color blue. | 
| static Color | Color.BLUEThe color blue. | 
| static Color | Color.cyanThe color cyan. | 
| static Color | Color.CYANThe color cyan. | 
| static Color | Color.DARK_GRAYThe color dark gray. | 
| static Color | Color.darkGrayThe color dark gray. | 
| static Color | Color.grayThe color gray. | 
| static Color | Color.GRAYThe color gray. | 
| static Color | Color.greenThe color green. | 
| static Color | Color.GREENThe color green. | 
| static Color | Color.LIGHT_GRAYThe color light gray. | 
| static Color | Color.lightGrayThe color light gray. | 
| static Color | Color.magentaThe color magenta. | 
| static Color | Color.MAGENTAThe color magenta. | 
| static Color | Color.orangeThe color orange. | 
| static Color | Color.ORANGEThe color orange. | 
| static Color | Color.pinkThe color pink. | 
| static Color | Color.PINKThe color pink. | 
| static Color | Color.redThe color red. | 
| static Color | Color.REDThe color red. | 
| static Color | Color.whiteThe color white. | 
| static Color | Color.WHITEThe color white. | 
| static Color | Color.yellowThe color yellow. | 
| static Color | Color.YELLOWThe color yellow. | 
| Methods in java.awt that return Color | |
|---|---|
|  Color | Color.brighter()Creates a new Colorthat is a brighter version of thisColor. | 
|  Color | Color.darker()Creates a new Colorthat is a darker version of thisColor. | 
| static Color | Color.decode(String nm)Converts a Stringto an integer and returns the 
 specified opaqueColor. | 
|  Color | MenuComponent.AccessibleAWTMenuComponent.getBackground()Gets the background color of this object. | 
|  Color | List.AccessibleAWTList.AccessibleAWTListChild.getBackground()Get the background color of this object. | 
|  Color | TextComponent.getBackground()Gets the background color of this text component. | 
|  Color | Component.getBackground()Gets the background color of this component. | 
|  Color | Component.AccessibleAWTComponent.getBackground()Gets the background color of this object. | 
| abstract  Color | Graphics2D.getBackground()Returns the background color used for clearing a region. | 
| abstract  Color | Graphics.getColor()Gets this graphics context's current color. | 
| static Color | Color.getColor(String nm)Finds a color in the system properties. | 
| static Color | Color.getColor(String nm,
         Color v)Finds a color in the system properties. | 
| static Color | Color.getColor(String nm,
         int v)Finds a color in the system properties. | 
|  Color | GradientPaint.getColor1()Returns the color C1 anchored by the point P1. | 
|  Color | GradientPaint.getColor2()Returns the color C2 anchored by the point P2. | 
|  Color[] | MultipleGradientPaint.getColors()Returns a copy of the array of colors used by this gradient. | 
|  Color | MenuComponent.AccessibleAWTMenuComponent.getForeground()Gets the foreground color of this object. | 
|  Color | List.AccessibleAWTList.AccessibleAWTListChild.getForeground()Get the foreground color of this object. | 
|  Color | Component.getForeground()Gets the foreground color of this component. | 
|  Color | Component.AccessibleAWTComponent.getForeground()Gets the foreground color of this object. | 
| static Color | Color.getHSBColor(float h,
            float s,
            float b)Creates a Colorobject based on the specified values 
 for the HSB color model. | 
|  Color | Robot.getPixelColor(int x,
              int y)Returns the color of a pixel at the given screen coordinates. | 
| Methods in java.awt with parameters of type Color | |
|---|---|
| abstract  boolean | Graphics.drawImage(Image img,
          int x,
          int y,
          Color bgcolor,
          ImageObserver observer)Draws as much of the specified image as is currently available. | 
| abstract  boolean | Graphics.drawImage(Image img,
          int x,
          int y,
          int width,
          int height,
          Color bgcolor,
          ImageObserver observer)Draws as much of the specified image as has already been scaled to fit inside the specified rectangle. | 
| abstract  boolean | Graphics.drawImage(Image img,
          int dx1,
          int dy1,
          int dx2,
          int dy2,
          int sx1,
          int sy1,
          int sx2,
          int sy2,
          Color bgcolor,
          ImageObserver observer)Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface. | 
| static Color | Color.getColor(String nm,
         Color v)Finds a color in the system properties. | 
|  void | MenuComponent.AccessibleAWTMenuComponent.setBackground(Color c)Sets the background color of this object. | 
|  void | List.AccessibleAWTList.AccessibleAWTListChild.setBackground(Color c)Set the background color of this object. | 
|  void | TextComponent.setBackground(Color c)Sets the background color of this text component. | 
|  void | Component.setBackground(Color c)Sets the background color of this component. | 
|  void | Component.AccessibleAWTComponent.setBackground(Color c)Sets the background color of this object. | 
| abstract  void | Graphics2D.setBackground(Color color)Sets the background color for the Graphics2Dcontext. | 
| abstract  void | Graphics.setColor(Color c)Sets this graphics context's current color to the specified color. | 
|  void | MenuComponent.AccessibleAWTMenuComponent.setForeground(Color c)Sets the foreground color of this object. | 
|  void | List.AccessibleAWTList.AccessibleAWTListChild.setForeground(Color c)Set the foreground color of this object. | 
|  void | Component.setForeground(Color c)Sets the foreground color of this component. | 
|  void | Component.AccessibleAWTComponent.setForeground(Color c)Sets the foreground color of this object. | 
| abstract  void | Graphics.setXORMode(Color c1)Sets the paint mode of this graphics context to alternate between this graphics context's current color and the new specified color. | 
| Constructors in java.awt with parameters of type Color | |
|---|---|
| GradientPaint(float x1,
              float y1,
              Color color1,
              float x2,
              float y2,
              Color color2)Constructs a simple acyclic GradientPaintobject. | |
| GradientPaint(float x1,
              float y1,
              Color color1,
              float x2,
              float y2,
              Color color2,
              boolean cyclic)Constructs either a cyclic or acyclic GradientPaintobject depending on thebooleanparameter. | |
| GradientPaint(Point2D pt1,
              Color color1,
              Point2D pt2,
              Color color2)Constructs a simple acyclic GradientPaintobject. | |
| GradientPaint(Point2D pt1,
              Color color1,
              Point2D pt2,
              Color color2,
              boolean cyclic)Constructs either a cyclic or acyclic GradientPaintobject depending on thebooleanparameter. | |
| LinearGradientPaint(float startX,
                    float startY,
                    float endX,
                    float endY,
                    float[] fractions,
                    Color[] colors)Constructs a LinearGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space. | |
| LinearGradientPaint(float startX,
                    float startY,
                    float endX,
                    float endY,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a LinearGradientPaintwith a defaultSRGBcolor space. | |
| LinearGradientPaint(Point2D start,
                    Point2D end,
                    float[] fractions,
                    Color[] colors)Constructs a LinearGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space. | |
| LinearGradientPaint(Point2D start,
                    Point2D end,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a LinearGradientPaintwith a defaultSRGBcolor space. | |
| LinearGradientPaint(Point2D start,
                    Point2D end,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod,
                    MultipleGradientPaint.ColorSpaceType colorSpace,
                    AffineTransform gradientTransform)Constructs a LinearGradientPaint. | |
| RadialGradientPaint(float cx,
                    float cy,
                    float radius,
                    float[] fractions,
                    Color[] colors)Constructs a RadialGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space,
 using the center as the focus point. | |
| RadialGradientPaint(float cx,
                    float cy,
                    float radius,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a RadialGradientPaintwith a defaultSRGBcolor space, using the center as the focus point. | |
| RadialGradientPaint(float cx,
                    float cy,
                    float radius,
                    float fx,
                    float fy,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a RadialGradientPaintwith a defaultSRGBcolor space. | |
| RadialGradientPaint(Point2D center,
                    float radius,
                    float[] fractions,
                    Color[] colors)Constructs a RadialGradientPaintwith a defaultNO_CYCLErepeating method andSRGBcolor space,
 using the center as the focus point. | |
| RadialGradientPaint(Point2D center,
                    float radius,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a RadialGradientPaintwith a defaultSRGBcolor space, using the center as the focus point. | |
| RadialGradientPaint(Point2D center,
                    float radius,
                    Point2D focus,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a RadialGradientPaintwith a defaultSRGBcolor space. | |
| RadialGradientPaint(Point2D center,
                    float radius,
                    Point2D focus,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod,
                    MultipleGradientPaint.ColorSpaceType colorSpace,
                    AffineTransform gradientTransform)Constructs a RadialGradientPaint. | |
| RadialGradientPaint(Rectangle2D gradientBounds,
                    float[] fractions,
                    Color[] colors,
                    MultipleGradientPaint.CycleMethod cycleMethod)Constructs a RadialGradientPaintwith a defaultSRGBcolor space. | |
| Uses of Color in javax.accessibility | 
|---|
| Methods in javax.accessibility that return Color | |
|---|---|
|  Color | AccessibleComponent.getBackground()Gets the background color of this object. | 
|  Color | AccessibleComponent.getForeground()Gets the foreground color of this object. | 
| Methods in javax.accessibility with parameters of type Color | |
|---|---|
|  void | AccessibleComponent.setBackground(Color c)Sets the background color of this object. | 
|  void | AccessibleComponent.setForeground(Color c)Sets the foreground color of this object. | 
| Uses of Color in javax.swing | 
|---|
| Fields in javax.swing declared as Color | |
|---|---|
| protected  Color | JTable.gridColorThe color of the grid. | 
| protected  Color | JTable.selectionBackgroundThe background color of selected cells. | 
| protected  Color | JTable.selectionForegroundThe foreground color of selected cells. | 
| Methods in javax.swing that return Color | |
|---|---|
| static Color | DebugGraphics.flashColor()Returns the Color used to flash drawing operations. | 
|  Color | JTree.AccessibleJTree.AccessibleJTreeNode.getBackground()Get the background color of this object. | 
|  Color | JTable.AccessibleJTable.AccessibleJTableCell.getBackground()Gets the background color of this object. | 
|  Color | JList.AccessibleJList.AccessibleJListChild.getBackground() | 
|  Color | JTabbedPane.getBackgroundAt(int index)Returns the tab background color at index. | 
|  Color | JColorChooser.getColor()Gets the current color value from the color chooser. | 
|  Color | DebugGraphics.getColor()Returns the Color used for text drawing operations. | 
| static Color | UIManager.getColor(Object key)Returns a color from the defaults. | 
|  Color | UIDefaults.getColor(Object key)If the value of keyis aColorreturn it,
 otherwise returnnull. | 
| static Color | UIManager.getColor(Object key,
         Locale l)Returns a color from the defaults that is appropriate for the given locale. | 
|  Color | UIDefaults.getColor(Object key,
         Locale l)If the value of keyfor the givenLocaleis aColorreturn it, otherwise returnnull. | 
|  Color | JTree.AccessibleJTree.AccessibleJTreeNode.getForeground()Get the foreground color of this object. | 
|  Color | JTable.AccessibleJTable.AccessibleJTableCell.getForeground()Gets the foreground color of this object. | 
|  Color | JList.AccessibleJList.AccessibleJListChild.getForeground() | 
|  Color | JTabbedPane.getForegroundAt(int index)Returns the tab foreground color at index. | 
|  Color | JTable.getGridColor()Returns the color used to draw grid lines. | 
|  Color | JTable.getSelectionBackground()Returns the background color for selected cells. | 
|  Color | JList.getSelectionBackground()Returns the color used to draw the background of selected items. | 
|  Color | JTable.getSelectionForeground()Returns the foreground color for selected cells. | 
|  Color | JList.getSelectionForeground()Returns the color used to draw the foreground of selected items. | 
| static Color | JColorChooser.showDialog(Component component,
           String title,
           Color initialColor)Shows a modal color-chooser dialog and blocks until the dialog is hidden. | 
| Methods in javax.swing with parameters of type Color | |
|---|---|
| static Border | BorderFactory.createBevelBorder(int type,
                  Color highlight,
                  Color shadow)Creates a beveled border of the specified type, using the specified highlighting and shadowing. | 
| static Border | BorderFactory.createBevelBorder(int type,
                  Color highlightOuter,
                  Color highlightInner,
                  Color shadowOuter,
                  Color shadowInner)Creates a beveled border of the specified type, using the specified colors for the inner and outer highlight and shadow areas. | 
| static Border | BorderFactory.createEtchedBorder(Color highlight,
                   Color shadow)Creates a border with an "etched" look using the specified highlighting and shading colors. | 
| static Border | BorderFactory.createEtchedBorder(int type,
                   Color highlight,
                   Color shadow)Creates a border with an "etched" look using the specified highlighting and shading colors. | 
| static Border | BorderFactory.createLineBorder(Color color)Creates a line border withe the specified color. | 
| static Border | BorderFactory.createLineBorder(Color color,
                 int thickness)Creates a line border with the specified color and width. | 
| static MatteBorder | BorderFactory.createMatteBorder(int top,
                  int left,
                  int bottom,
                  int right,
                  Color color)Creates a matte-look border using a solid color. | 
| static TitledBorder | BorderFactory.createTitledBorder(Border border,
                   String title,
                   int titleJustification,
                   int titlePosition,
                   Font titleFont,
                   Color titleColor)Adds a title to an existing border, with the specified positioning, font and color. | 
|  boolean | DebugGraphics.drawImage(Image img,
          int x,
          int y,
          Color bgcolor,
          ImageObserver observer)Overrides Graphics.drawImage. | 
|  boolean | DebugGraphics.drawImage(Image img,
          int x,
          int y,
          int width,
          int height,
          Color bgcolor,
          ImageObserver observer)Overrides Graphics.drawImage. | 
|  boolean | DebugGraphics.drawImage(Image img,
          int dx1,
          int dy1,
          int dx2,
          int dy2,
          int sx1,
          int sy1,
          int sx2,
          int sy2,
          Color bgcolor,
          ImageObserver observer)Overrides Graphics.drawImage. | 
|  void | JTree.AccessibleJTree.AccessibleJTreeNode.setBackground(Color c)Set the background color of this object. | 
|  void | JTable.AccessibleJTable.AccessibleJTableCell.setBackground(Color c)Sets the background color of this object. | 
|  void | JList.AccessibleJList.AccessibleJListChild.setBackground(Color c) | 
|  void | JComponent.setBackground(Color bg)Sets the background color of this component. | 
|  void | JTabbedPane.setBackgroundAt(int index,
                Color background)Sets the background color at indextobackgroundwhich can benull, in which case the tab's background color
 will default to the background color of thetabbedpane. | 
|  void | JColorChooser.setColor(Color color)Sets the current color of the color chooser to the specified color. | 
|  void | DebugGraphics.setColor(Color aColor)Sets the color to be used for drawing and filling lines and shapes. | 
| static void | DebugGraphics.setFlashColor(Color flashColor)Sets the Color used to flash drawing operations. | 
|  void | JTree.AccessibleJTree.AccessibleJTreeNode.setForeground(Color c) | 
|  void | JTable.AccessibleJTable.AccessibleJTableCell.setForeground(Color c)Sets the foreground color of this object. | 
|  void | JList.AccessibleJList.AccessibleJListChild.setForeground(Color c) | 
|  void | JComponent.setForeground(Color fg)Sets the foreground color of this component. | 
|  void | JTabbedPane.setForegroundAt(int index,
                Color foreground)Sets the foreground color at indextoforegroundwhich can benull, in which case the tab's foreground color
 will default to the foreground color of thistabbedpane. | 
|  void | JTable.setGridColor(Color gridColor)Sets the color used to draw grid lines to gridColorand redisplays. | 
|  void | JTable.setSelectionBackground(Color selectionBackground)Sets the background color for selected cells. | 
|  void | JList.setSelectionBackground(Color selectionBackground)Sets the color used to draw the background of selected items, which cell renderers can use fill selected cells. | 
|  void | JTable.setSelectionForeground(Color selectionForeground)Sets the foreground color for selected cells. | 
|  void | JList.setSelectionForeground(Color selectionForeground)Sets the color used to draw the foreground of selected items, which cell renderers can use to render text and graphics. | 
|  void | DebugGraphics.setXORMode(Color aColor)Overrides Graphics.setXORMode. | 
| static Color | JColorChooser.showDialog(Component component,
           String title,
           Color initialColor)Shows a modal color-chooser dialog and blocks until the dialog is hidden. | 
| Constructors in javax.swing with parameters of type Color | |
|---|---|
| JColorChooser(Color initialColor)Creates a color chooser pane with the specified initial color. | |
| Uses of Color in javax.swing.border | 
|---|
| Fields in javax.swing.border declared as Color | |
|---|---|
| protected  Color | MatteBorder.color | 
| protected  Color | EtchedBorder.highlight | 
| protected  Color | BevelBorder.highlightInner | 
| protected  Color | BevelBorder.highlightOuter | 
| protected  Color | LineBorder.lineColor | 
| protected  Color | EtchedBorder.shadow | 
| protected  Color | BevelBorder.shadowInner | 
| protected  Color | BevelBorder.shadowOuter | 
| protected  Color | TitledBorder.titleColor | 
| Methods in javax.swing.border that return Color | |
|---|---|
|  Color | EtchedBorder.getHighlightColor()Returns the highlight color of the etched border. | 
|  Color | EtchedBorder.getHighlightColor(Component c)Returns the highlight color of the etched border when rendered on the specified component. | 
|  Color | BevelBorder.getHighlightInnerColor()Returns the inner highlight color of the bevel border. | 
|  Color | BevelBorder.getHighlightInnerColor(Component c)Returns the inner highlight color of the bevel border when rendered on the specified component. | 
|  Color | BevelBorder.getHighlightOuterColor()Returns the outer highlight color of the bevel border. | 
|  Color | BevelBorder.getHighlightOuterColor(Component c)Returns the outer highlight color of the bevel border when rendered on the specified component. | 
|  Color | LineBorder.getLineColor()Returns the color of the border. | 
|  Color | MatteBorder.getMatteColor()Returns the color used for tiling the border or null if a tile icon is being used. | 
|  Color | EtchedBorder.getShadowColor()Returns the shadow color of the etched border. | 
|  Color | EtchedBorder.getShadowColor(Component c)Returns the shadow color of the etched border when rendered on the specified component. | 
|  Color | BevelBorder.getShadowInnerColor()Returns the inner shadow color of the bevel border. | 
|  Color | BevelBorder.getShadowInnerColor(Component c)Returns the inner shadow color of the bevel border when rendered on the specified component. | 
|  Color | BevelBorder.getShadowOuterColor()Returns the outer shadow color of the bevel border. | 
|  Color | BevelBorder.getShadowOuterColor(Component c)Returns the outer shadow color of the bevel border when rendered on the specified component. | 
|  Color | TitledBorder.getTitleColor()Returns the title-color of the titled border. | 
| Methods in javax.swing.border with parameters of type Color | |
|---|---|
|  void | TitledBorder.setTitleColor(Color titleColor)Sets the title-color of the titled border. | 
| Constructors in javax.swing.border with parameters of type Color | |
|---|---|
| BevelBorder(int bevelType,
            Color highlight,
            Color shadow)Creates a bevel border with the specified type, highlight and shadow colors. | |
| BevelBorder(int bevelType,
            Color highlightOuterColor,
            Color highlightInnerColor,
            Color shadowOuterColor,
            Color shadowInnerColor)Creates a bevel border with the specified type, highlight and shadow colors. | |
| EtchedBorder(Color highlight,
             Color shadow)Creates a lowered etched border with the specified highlight and shadow colors. | |
| EtchedBorder(int etchType,
             Color highlight,
             Color shadow)Creates an etched border with the specified etch-type, highlight and shadow colors. | |
| LineBorder(Color color)Creates a line border with the specified color and a thickness = 1. | |
| LineBorder(Color color,
           int thickness)Creates a line border with the specified color and thickness. | |
| LineBorder(Color color,
           int thickness,
           boolean roundedCorners)Creates a line border with the specified color, thickness, and corner shape. | |
| MatteBorder(Insets borderInsets,
            Color matteColor)Creates a matte border with the specified insets and color. | |
| MatteBorder(int top,
            int left,
            int bottom,
            int right,
            Color matteColor)Creates a matte border with the specified insets and color. | |
| SoftBevelBorder(int bevelType,
                Color highlight,
                Color shadow)Creates a bevel border with the specified type, highlight and shadow colors. | |
| SoftBevelBorder(int bevelType,
                Color highlightOuterColor,
                Color highlightInnerColor,
                Color shadowOuterColor,
                Color shadowInnerColor)Creates a bevel border with the specified type, highlight shadow colors. | |
| TitledBorder(Border border,
             String title,
             int titleJustification,
             int titlePosition,
             Font titleFont,
             Color titleColor)Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. | |
| Uses of Color in javax.swing.colorchooser | 
|---|
| Methods in javax.swing.colorchooser that return Color | |
|---|---|
| protected  Color | AbstractColorChooserPanel.getColorFromModel()Returns the color that is currently selected. | 
|  Color | DefaultColorSelectionModel.getSelectedColor()Returns the selected Colorwhich should be
 non-null. | 
|  Color | ColorSelectionModel.getSelectedColor()Returns the selected Colorwhich should be
 non-null. | 
| Methods in javax.swing.colorchooser with parameters of type Color | |
|---|---|
|  void | DefaultColorSelectionModel.setSelectedColor(Color color)Sets the selected color to color. | 
|  void | ColorSelectionModel.setSelectedColor(Color color)Sets the selected color to color. | 
| Constructors in javax.swing.colorchooser with parameters of type Color | |
|---|---|
| DefaultColorSelectionModel(Color color)Creates a DefaultColorSelectionModelwith the
 current color set tocolor, which should be
 non-null. | |
| Uses of Color in javax.swing.plaf | 
|---|
| Subclasses of Color in javax.swing.plaf | |
|---|---|
|  class | ColorUIResource | 
| Constructors in javax.swing.plaf with parameters of type Color | |
|---|---|
| BorderUIResource.BevelBorderUIResource(int bevelType,
                                       Color highlight,
                                       Color shadow) | |
| BorderUIResource.BevelBorderUIResource(int bevelType,
                                       Color highlightOuter,
                                       Color highlightInner,
                                       Color shadowOuter,
                                       Color shadowInner) | |
| BorderUIResource.EtchedBorderUIResource(Color highlight,
                                        Color shadow) | |
| BorderUIResource.EtchedBorderUIResource(int etchType,
                                        Color highlight,
                                        Color shadow) | |
| BorderUIResource.LineBorderUIResource(Color color) | |
| BorderUIResource.LineBorderUIResource(Color color,
                                      int thickness) | |
| BorderUIResource.MatteBorderUIResource(int top,
                                       int left,
                                       int bottom,
                                       int right,
                                       Color color) | |
| BorderUIResource.TitledBorderUIResource(Border border,
                                        String title,
                                        int titleJustification,
                                        int titlePosition,
                                        Font titleFont,
                                        Color titleColor) | |
| ColorUIResource(Color c) | |
| Uses of Color in javax.swing.plaf.basic | 
|---|
| Fields in javax.swing.plaf.basic declared as Color | |
|---|---|
| protected  Color | BasicMenuItemUI.acceleratorForeground | 
| protected  Color | BasicMenuItemUI.acceleratorSelectionForeground | 
| protected  Color | BasicTabbedPaneUI.darkShadow | 
| protected  Color | BasicBorders.ButtonBorder.darkShadow | 
| protected  Color | BasicBorders.FieldBorder.darkShadow | 
| protected  Color | BasicMenuItemUI.disabledForeground | 
| protected  Color | BasicToolBarUI.dockingBorderColor | 
| protected  Color | BasicToolBarUI.dockingColor | 
| protected  Color | BasicToolBarUI.floatingBorderColor | 
| protected  Color | BasicToolBarUI.floatingColor | 
| protected  Color | BasicTabbedPaneUI.focus | 
| protected  Color | BasicSeparatorUI.highlight | 
| protected  Color | BasicTabbedPaneUI.highlight | 
| protected  Color | BasicBorders.ButtonBorder.highlight | 
| protected  Color | BasicBorders.FieldBorder.highlight | 
| protected  Color | BasicBorders.SplitPaneBorder.highlight | 
| protected  Color | BasicTabbedPaneUI.lightHighlight | 
| protected  Color | BasicBorders.ButtonBorder.lightHighlight | 
| protected  Color | BasicBorders.FieldBorder.lightHighlight | 
| protected  Color | BasicInternalFrameTitlePane.notSelectedTextColor | 
| protected  Color | BasicInternalFrameTitlePane.notSelectedTitleColor | 
| protected  Color | BasicInternalFrameTitlePane.selectedTextColor | 
| protected  Color | BasicInternalFrameTitlePane.selectedTitleColor | 
| protected  Color | BasicMenuItemUI.selectionBackground | 
| protected  Color | BasicMenuItemUI.selectionForeground | 
| protected  Color | BasicSeparatorUI.shadow | 
| protected  Color | BasicTabbedPaneUI.shadow | 
| protected  Color | BasicBorders.ButtonBorder.shadow | 
| protected  Color | BasicBorders.FieldBorder.shadow | 
| protected  Color | BasicBorders.SplitPaneBorder.shadow | 
| protected  Color | BasicScrollBarUI.thumbColor | 
| protected  Color | BasicScrollBarUI.thumbDarkShadowColor | 
| protected  Color | BasicScrollBarUI.thumbHighlightColor | 
| protected  Color | BasicScrollBarUI.thumbLightShadowColor | 
| protected  Color | BasicScrollBarUI.trackColor | 
| protected  Color | BasicScrollBarUI.trackHighlightColor | 
| Methods in javax.swing.plaf.basic that return Color | |
|---|---|
|  Color | BasicToolBarUI.DragWindow.getBorderColor() | 
|  Color | BasicToolBarUI.getDockingColor()Gets the color displayed when over a docking area | 
|  Color | BasicToolBarUI.getFloatingColor()Gets the color displayed when over a floating area | 
| protected  Color | BasicSliderUI.getFocusColor() | 
| protected  Color | BasicTreeUI.getHashColor() | 
| protected  Color | BasicSliderUI.getHighlightColor() | 
| protected  Color | BasicProgressBarUI.getSelectionBackground()The "selectionBackground" is the color of the text when it is painted over an unfilled area of the progress bar. | 
| protected  Color | BasicProgressBarUI.getSelectionForeground()The "selectionForeground" is the color of the text when it is painted over a filled area of the progress bar. | 
| protected  Color | BasicSliderUI.getShadowColor() | 
| Methods in javax.swing.plaf.basic with parameters of type Color | |
|---|---|
| static void | BasicGraphicsUtils.drawBezel(Graphics g,
          int x,
          int y,
          int w,
          int h,
          boolean isPressed,
          boolean isDefault,
          Color shadow,
          Color darkShadow,
          Color highlight,
          Color lightHighlight) | 
| static void | BasicGraphicsUtils.drawEtchedRect(Graphics g,
               int x,
               int y,
               int w,
               int h,
               Color shadow,
               Color darkShadow,
               Color highlight,
               Color lightHighlight) | 
| static void | BasicGraphicsUtils.drawGroove(Graphics g,
           int x,
           int y,
           int w,
           int h,
           Color shadow,
           Color highlight) | 
| static void | BasicGraphicsUtils.drawLoweredBezel(Graphics g,
                 int x,
                 int y,
                 int w,
                 int h,
                 Color shadow,
                 Color darkShadow,
                 Color highlight,
                 Color lightHighlight) | 
| protected  void | BasicMenuItemUI.paintBackground(Graphics g,
                JMenuItem menuItem,
                Color bgColor)Draws the background of the menu item. | 
| protected  void | BasicMenuItemUI.paintMenuItem(Graphics g,
              JComponent c,
              Icon checkIcon,
              Icon arrowIcon,
              Color background,
              Color foreground,
              int defaultTextIconGap) | 
|  void | BasicToolBarUI.DragWindow.setBorderColor(Color c) | 
|  void | BasicToolBarUI.setDockingColor(Color c)Sets the color displayed when over a docking area | 
|  void | BasicToolBarUI.setFloatingColor(Color c)Sets the color displayed when over a floating area | 
| protected  void | BasicTreeUI.setHashColor(Color color) | 
| Constructors in javax.swing.plaf.basic with parameters of type Color | |
|---|---|
| BasicArrowButton(int direction,
                 Color background,
                 Color shadow,
                 Color darkShadow,
                 Color highlight)Creates a BasicArrowButtonwhose arrow
 is drawn in the specified direction and with the specified
 colors. | |
| BasicBorders.ButtonBorder(Color shadow,
                          Color darkShadow,
                          Color highlight,
                          Color lightHighlight) | |
| BasicBorders.FieldBorder(Color shadow,
                         Color darkShadow,
                         Color highlight,
                         Color lightHighlight) | |
| BasicBorders.MenuBarBorder(Color shadow,
                           Color highlight) | |
| BasicBorders.RadioButtonBorder(Color shadow,
                               Color darkShadow,
                               Color highlight,
                               Color lightHighlight) | |
| BasicBorders.RolloverButtonBorder(Color shadow,
                                  Color darkShadow,
                                  Color highlight,
                                  Color lightHighlight) | |
| BasicBorders.SplitPaneBorder(Color highlight,
                             Color shadow) | |
| BasicBorders.ToggleButtonBorder(Color shadow,
                                Color darkShadow,
                                Color highlight,
                                Color lightHighlight) | |
| Uses of Color in javax.swing.plaf.metal | 
|---|
| Fields in javax.swing.plaf.metal declared as Color | |
|---|---|
| protected static Color | MetalSliderUI.darkShadowColor | 
| protected  Color | MetalRadioButtonUI.disabledTextColor | 
| protected  Color | MetalToggleButtonUI.disabledTextColor | 
| protected  Color | MetalButtonUI.disabledTextColor | 
| protected  Color | MetalRadioButtonUI.focusColor | 
| protected  Color | MetalToggleButtonUI.focusColor | 
| protected  Color | MetalButtonUI.focusColor | 
| protected static Color | MetalSliderUI.highlightColor | 
| protected  Color | MetalRadioButtonUI.selectColor | 
| protected  Color | MetalToggleButtonUI.selectColor | 
| protected  Color | MetalTabbedPaneUI.selectColor | 
| protected  Color | MetalButtonUI.selectColor | 
| protected  Color | MetalTabbedPaneUI.selectHighlight | 
| protected  Color | MetalTabbedPaneUI.tabAreaBackground | 
| protected static Color | MetalSliderUI.thumbColor | 
| Methods in javax.swing.plaf.metal that return Color | |
|---|---|
| protected  Color | MetalTabbedPaneUI.getColorForGap(int currentRun,
               int x,
               int y) | 
| protected  Color | MetalRadioButtonUI.getDisabledTextColor() | 
| protected  Color | MetalToggleButtonUI.getDisabledTextColor() | 
| protected  Color | MetalButtonUI.getDisabledTextColor() | 
| protected  Color | MetalRadioButtonUI.getFocusColor() | 
| protected  Color | MetalToggleButtonUI.getFocusColor() | 
| protected  Color | MetalButtonUI.getFocusColor() | 
| protected  Color | MetalRadioButtonUI.getSelectColor() | 
| protected  Color | MetalToggleButtonUI.getSelectColor() | 
| protected  Color | MetalButtonUI.getSelectColor() | 
| Uses of Color in javax.swing.plaf.synth | 
|---|
| Methods in javax.swing.plaf.synth that return Color | |
|---|---|
|  Color | SynthStyle.getColor(SynthContext context,
         ColorType type)Returns the color for the specified state. | 
| protected abstract  Color | SynthStyle.getColorForState(SynthContext context,
                 ColorType type)Returns the color for the specified state. | 
| Uses of Color in javax.swing.table | 
|---|
| Methods in javax.swing.table that return Color | |
|---|---|
|  Color | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBackground() | 
|  Color | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getForeground() | 
| Methods in javax.swing.table with parameters of type Color | |
|---|---|
|  void | DefaultTableCellRenderer.setBackground(Color c)Overrides JComponent.setBackgroundto assign
 the unselected-background color to the specified color. | 
|  void | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBackground(Color c) | 
|  void | DefaultTableCellRenderer.setForeground(Color c)Overrides JComponent.setForegroundto assign
 the unselected-foreground color to the specified color. | 
|  void | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setForeground(Color c) | 
| Uses of Color in javax.swing.text | 
|---|
| Methods in javax.swing.text that return Color | |
|---|---|
|  Color | LabelView.getBackground()Fetches the background color to use to render the glyphs. | 
|  Color | GlyphView.getBackground()Fetch the background color to use to render the glyphs. | 
|  Color | DefaultStyledDocument.getBackground(AttributeSet attr)Gets the background color from an attribute set. | 
| static Color | StyleConstants.getBackground(AttributeSet a)Gets the background color setting from the attribute list. | 
|  Color | StyleContext.getBackground(AttributeSet attr)Takes a set of attributes and turn it into a background color specification. | 
|  Color | StyledDocument.getBackground(AttributeSet attr)Takes a set of attributes and turn it into a background color specification. | 
|  Color | JTextComponent.getCaretColor()Fetches the current color used to render the caret. | 
|  Color | DefaultHighlighter.DefaultHighlightPainter.getColor()Returns the color of the highlight. | 
|  Color | JTextComponent.getDisabledTextColor()Fetches the current color used to render the disabled text. | 
|  Color | LabelView.getForeground()Fetches the foreground color to use to render the glyphs. | 
|  Color | GlyphView.getForeground()Fetch the foreground color to use to render the glyphs. | 
|  Color | DefaultStyledDocument.getForeground(AttributeSet attr)Gets the foreground color from an attribute set. | 
| static Color | StyleConstants.getForeground(AttributeSet a)Gets the foreground color setting from the attribute list. | 
|  Color | StyleContext.getForeground(AttributeSet attr)Takes a set of attributes and turn it into a foreground color specification. | 
|  Color | StyledDocument.getForeground(AttributeSet attr)Takes a set of attributes and turn it into a foreground color specification. | 
|  Color | JTextComponent.getSelectedTextColor()Fetches the current color used to render the selected text. | 
|  Color | JTextComponent.getSelectionColor()Fetches the current color used to render the selection. | 
| Methods in javax.swing.text with parameters of type Color | |
|---|---|
| protected  void | LabelView.setBackground(Color bg)Sets the background color for the view. | 
| static void | StyleConstants.setBackground(MutableAttributeSet a,
              Color fg)Sets the background color. | 
|  void | JTextComponent.setCaretColor(Color c)Sets the current color used to render the caret. | 
|  void | JTextComponent.setDisabledTextColor(Color c)Sets the current color used to render the disabled text. | 
| static void | StyleConstants.setForeground(MutableAttributeSet a,
              Color fg)Sets the foreground color. | 
|  void | JTextComponent.setSelectedTextColor(Color c)Sets the current color used to render the selected text. | 
|  void | JTextComponent.setSelectionColor(Color c)Sets the current color used to render the selection. | 
| Constructors in javax.swing.text with parameters of type Color | |
|---|---|
| DefaultHighlighter.DefaultHighlightPainter(Color c)Constructs a new highlight painter. | |
| StyledEditorKit.ForegroundAction(String nm,
                                 Color fg)Creates a new ForegroundAction. | |
| Uses of Color in javax.swing.text.html | 
|---|
| Methods in javax.swing.text.html that return Color | |
|---|---|
|  Color | StyleSheet.getBackground(AttributeSet a)Takes a set of attributes and turn it into a background color specification. | 
|  Color | StyleSheet.getForeground(AttributeSet a)Takes a set of attributes and turn it into a foreground color specification. | 
|  Color | StyleSheet.stringToColor(String string)Converts a color string such as "RED" or "#NNNNNN" to a Color. | 
| Uses of Color in javax.swing.tree | 
|---|
| Fields in javax.swing.tree declared as Color | |
|---|---|
| protected  Color | DefaultTreeCellRenderer.backgroundNonSelectionColorColor to use for the background when the node isn't selected. | 
| protected  Color | DefaultTreeCellRenderer.backgroundSelectionColorColor to use for the background when a node is selected. | 
| protected  Color | DefaultTreeCellEditor.borderSelectionColorTrue if the border selection color should be drawn. | 
| protected  Color | DefaultTreeCellRenderer.borderSelectionColorColor to use for the focus indicator when the node has focus. | 
| protected  Color | DefaultTreeCellRenderer.textNonSelectionColorColor to use for the foreground for non-selected nodes. | 
| protected  Color | DefaultTreeCellRenderer.textSelectionColorColor to use for the foreground for selected nodes. | 
| Methods in javax.swing.tree that return Color | |
|---|---|
|  Color | DefaultTreeCellRenderer.getBackgroundNonSelectionColor()Returns the background color to be used for non selected nodes. | 
|  Color | DefaultTreeCellRenderer.getBackgroundSelectionColor()Returns the color to use for the background if node is selected. | 
|  Color | DefaultTreeCellEditor.getBorderSelectionColor()Returns the color the border is drawn. | 
|  Color | DefaultTreeCellRenderer.getBorderSelectionColor()Returns the color the border is drawn. | 
|  Color | DefaultTreeCellRenderer.getTextNonSelectionColor()Returns the color the text is drawn with when the node isn't selected. | 
|  Color | DefaultTreeCellRenderer.getTextSelectionColor()Returns the color the text is drawn with when the node is selected. | 
| Methods in javax.swing.tree with parameters of type Color | |
|---|---|
|  void | DefaultTreeCellRenderer.setBackground(Color color)Subclassed to map ColorUIResources to null. | 
|  void | DefaultTreeCellRenderer.setBackgroundNonSelectionColor(Color newColor)Sets the background color to be used for non selected nodes. | 
|  void | DefaultTreeCellRenderer.setBackgroundSelectionColor(Color newColor)Sets the color to use for the background if node is selected. | 
|  void | DefaultTreeCellEditor.setBorderSelectionColor(Color newColor)Sets the color to use for the border. | 
|  void | DefaultTreeCellRenderer.setBorderSelectionColor(Color newColor)Sets the color to use for the border. | 
|  void | DefaultTreeCellRenderer.setTextNonSelectionColor(Color newColor)Sets the color the text is drawn with when the node isn't selected. | 
|  void | DefaultTreeCellRenderer.setTextSelectionColor(Color newColor)Sets the color the text is drawn with when the node is selected. | 
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.