| Package | Description |
|---|---|
| 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
JColorChooser component.
|
| 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.nimbus |
Provides user interface objects built according to the cross-platform Nimbus 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
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SystemColor
A class to encapsulate symbolic colors representing the color of native GUI objects on a system.
|
| Modifier and Type | Field and Description |
|---|---|
static Color |
Color.black
The color black.
|
static Color |
Color.BLACK
The color black.
|
static Color |
Color.blue
The color blue.
|
static Color |
Color.BLUE
The color blue.
|
static Color |
Color.cyan
The color cyan.
|
static Color |
Color.CYAN
The color cyan.
|
static Color |
Color.DARK_GRAY
The color dark gray.
|
static Color |
Color.darkGray
The color dark gray.
|
static Color |
Color.gray
The color gray.
|
static Color |
Color.GRAY
The color gray.
|
static Color |
Color.green
The color green.
|
static Color |
Color.GREEN
The color green.
|
static Color |
Color.LIGHT_GRAY
The color light gray.
|
static Color |
Color.lightGray
The color light gray.
|
static Color |
Color.magenta
The color magenta.
|
static Color |
Color.MAGENTA
The color magenta.
|
static Color |
Color.orange
The color orange.
|
static Color |
Color.ORANGE
The color orange.
|
static Color |
Color.pink
The color pink.
|
static Color |
Color.PINK
The color pink.
|
static Color |
Color.red
The color red.
|
static Color |
Color.RED
The color red.
|
static Color |
Color.white
The color white.
|
static Color |
Color.WHITE
The color white.
|
static Color |
Color.yellow
The color yellow.
|
static Color |
Color.YELLOW
The color yellow.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
Color.brighter()
Creates a new
Color that is a brighter version of this
Color.
|
Color |
Color.darker()
Creates a new
Color that is a darker version of this
Color.
|
static Color |
Color.decode(String
Converts a
String to an integer and returns the specified opaque
Color.
|
Color |
Window.getBackground()
Gets the background color of this window.
|
Color |
TextComponent.getBackground()
Gets the background color of this text component.
|
Color |
MenuComponent.AccessibleAWTMenuComponent.getBackground()
Gets the background color of this object.
|
Color |
List.AccessibleAWTList.AccessibleAWTListChild.getBackground()
Get the background color of this object.
|
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
Finds a color in the system properties.
|
static Color |
Color.getColor(String
Finds a color in the system properties.
|
static Color |
Color.getColor(String
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
Color object 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.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
Graphics.drawImage(Image
Draws as much of the specified image as is currently available.
|
abstract boolean |
Graphics.drawImage(Image
Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.
|
abstract boolean |
Graphics.drawImage(Image
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
Finds a color in the system properties.
|
void |
Window.setBackground(Color
Sets the background color of this window.
|
void |
TextComponent.setBackground(Color
Sets the background color of this text component.
|
void |
MenuComponent.AccessibleAWTMenuComponent.setBackground(Color
Sets the background color of this object.
|
void |
Dialog.setBackground(Color
Sets the background color of this window.
|
void |
Frame.setBackground(Color
Sets the background color of this window.
|
void |
List.AccessibleAWTList.AccessibleAWTListChild.setBackground(Color
Set the background color of this object.
|
void |
Component.setBackground(Color
Sets the background color of this component.
|
void |
Component.AccessibleAWTComponent.setBackground(Color
Sets the background color of this object.
|
abstract void |
Graphics2D.setBackground(Color
Sets the background color for the
Graphics2D context.
|
abstract void |
Graphics.setColor(Color
Sets this graphics context's current color to the specified color.
|
void |
MenuComponent.AccessibleAWTMenuComponent.setForeground(Color
Sets the foreground color of this object.
|
void |
List.AccessibleAWTList.AccessibleAWTListChild.setForeground(Color
Set the foreground color of this object.
|
void |
Component.setForeground(Color
Sets the foreground color of this component.
|
void |
Component.AccessibleAWTComponent.setForeground(Color
Sets the foreground color of this object.
|
abstract void |
Graphics.setXORMode(Color
Sets the paint mode of this graphics context to alternate between this graphics context's current color and the new specified color.
|
| Constructor and Description | |
|---|---|
GradientPaint(float x1, float y1, Color
Constructs a simple acyclic
GradientPaint object.
|
|
GradientPaint(float x1, float y1, Color
Constructs either a cyclic or acyclic
GradientPaint object depending on the
boolean parameter.
|
|
GradientPaint(Point2D
Constructs a simple acyclic
GradientPaint object.
|
|
GradientPaint(Point2D
Constructs either a cyclic or acyclic
GradientPaint object depending on the
boolean parameter.
|
|
LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color
Constructs a
LinearGradientPaint with a default
NO_CYCLE repeating method and
SRGB color space.
|
|
LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color
Constructs a
LinearGradientPaint with a default
SRGB color space.
|
|
LinearGradientPaint(Point2D
Constructs a
LinearGradientPaint with a default
NO_CYCLE repeating method and
SRGB color space.
|
|
LinearGradientPaint(Point2D
Constructs a
LinearGradientPaint with a default
SRGB color space.
|
|
LinearGradientPaint(Point2D
Constructs a
LinearGradientPaint.
|
|
RadialGradientPaint(float cx, float cy, float radius, float[] fractions, Color
Constructs a
RadialGradientPaint with a default
NO_CYCLE repeating method and
SRGB color space, using the center as the focus point.
|
|
RadialGradientPaint(float cx, float cy, float radius, float[] fractions, Color
Constructs a
RadialGradientPaint with a default
SRGB color space, using the center as the focus point.
|
|
RadialGradientPaint(float cx, float cy, float radius, float fx, float fy, float[] fractions, Color
Constructs a
RadialGradientPaint with a default
SRGB color space.
|
|
RadialGradientPaint(Point2D
Constructs a
RadialGradientPaint with a default
NO_CYCLE repeating method and
SRGB color space, using the center as the focus point.
|
|
RadialGradientPaint(Point2D
Constructs a
RadialGradientPaint with a default
SRGB color space, using the center as the focus point.
|
|
RadialGradientPaint(Point2D
Constructs a
RadialGradientPaint with a default
SRGB color space.
|
|
RadialGradientPaint(Point2D
Constructs a
RadialGradientPaint.
|
|
RadialGradientPaint(Rectangle2D
Constructs a
RadialGradientPaint with a default
SRGB color space.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
AccessibleComponent.getBackground()
Gets the background color of this object.
|
Color |
AccessibleComponent.getForeground()
Gets the foreground color of this object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AccessibleComponent.setBackground(Color
Sets the background color of this object.
|
void |
AccessibleComponent.setForeground(Color
Sets the foreground color of this object.
|
| Modifier and Type | Field and Description |
|---|---|
protected Color |
JTable.gridColor
The color of the grid.
|
protected Color |
JTable.selectionBackground
The background color of selected cells.
|
protected Color |
JTable.selectionForeground
The foreground color of selected cells.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
DebugGraphics.getColor()
Returns the Color used for text drawing operations.
|
Color |
JColorChooser.getColor()
Gets the current color value from the color chooser.
|
Color |
UIDefaults.getColor(Object
If the value of
key is a
Color return it, otherwise return
null.
|
static Color |
UIManager.getColor(Object
Returns a color from the defaults.
|
Color |
UIDefaults.getColor(Object
If the value of
key for the given
Locale is a
Color return it, otherwise return
null.
|
static Color |
UIManager.getColor(Object
Returns a color from the defaults that is appropriate for the given locale.
|
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
Shows a modal color-chooser dialog and blocks until the dialog is hidden.
|
| Modifier and Type | Method and Description |
|---|---|
static Border |
BorderFactory.createBevelBorder(int type, Color
Creates a beveled border of the specified type, using the specified highlighting and shadowing.
|
static Border |
BorderFactory.createBevelBorder(int type, Color
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
Creates a border with an "etched" look using the specified highlighting and shading colors.
|
static Border |
BorderFactory.createEtchedBorder(int type, Color
Creates a border with an "etched" look using the specified highlighting and shading colors.
|
static Border |
BorderFactory.createLineBorder(Color
Creates a line border withe the specified color.
|
static Border |
BorderFactory.createLineBorder(Color
Creates a line border with the specified color and width.
|
static Border |
BorderFactory.createLineBorder(Color
Creates a line border with the specified color, thickness, and corner shape.
|
static MatteBorder |
BorderFactory.createMatteBorder(int top, int left, int bottom, int right, Color
Creates a matte-look border using a solid color.
|
static Border |
BorderFactory.createSoftBevelBorder(int type, Color
Creates a beveled border of the specified type with softened corners, using the specified highlighting and shadowing.
|
static Border |
BorderFactory.createSoftBevelBorder(int type, Color
Creates a beveled border of the specified type with softened corners, using the specified colors for the inner and outer edges of the highlight and the shadow areas.
|
static TitledBorder |
BorderFactory.createTitledBorder(Border
Adds a title to an existing border, with the specified positioning, font and color.
|
boolean |
DebugGraphics.drawImage(Image
Overrides
Graphics.drawImage.
|
boolean |
DebugGraphics.drawImage(Image
Overrides
Graphics.drawImage.
|
boolean |
DebugGraphics.drawImage(Image
Overrides
Graphics.drawImage.
|
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setBackground(Color
Set the background color of this object.
|
void |
JTable.AccessibleJTable.AccessibleJTableCell.setBackground(Color
Sets the background color of this object.
|
void |
JList.AccessibleJList.AccessibleJListChild.setBackground(Color
|
void |
JComponent.setBackground(Color
Sets the background color of this component.
|
void |
JTabbedPane.setBackgroundAt(int index, Color
Sets the background color at
index to
background which can be
null, in which case the tab's background color will default to the background color of the
tabbedpane.
|
void |
DebugGraphics.setColor(Color
Sets the color to be used for drawing and filling lines and shapes.
|
void |
JColorChooser.setColor(Color
Sets the current color of the color chooser to the specified color.
|
static void |
DebugGraphics.setFlashColor(Color
Sets the Color used to flash drawing operations.
|
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setForeground(Color
|
void |
JTable.AccessibleJTable.AccessibleJTableCell.setForeground(Color
Sets the foreground color of this object.
|
void |
JList.AccessibleJList.AccessibleJListChild.setForeground(Color
|
void |
JComponent.setForeground(Color
Sets the foreground color of this component.
|
void |
JTabbedPane.setForegroundAt(int index, Color
Sets the foreground color at
index to
foreground which can be
null, in which case the tab's foreground color will default to the foreground color of this
tabbedpane.
|
void |
JTable.setGridColor(Color
Sets the color used to draw grid lines to
gridColor and redisplays.
|
void |
JTable.setSelectionBackground(Color
Sets the background color for selected cells.
|
void |
JList.setSelectionBackground(Color
Sets the color used to draw the background of selected items, which cell renderers can use fill selected cells.
|
void |
JTable.setSelectionForeground(Color
Sets the foreground color for selected cells.
|
void |
JList.setSelectionForeground(Color
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
Overrides
Graphics.setXORMode.
|
static Color |
JColorChooser.showDialog(Component
Shows a modal color-chooser dialog and blocks until the dialog is hidden.
|
| Constructor and Description | |
|---|---|
JColorChooser(Color
Creates a color chooser pane with the specified initial color.
|
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
Color |
EtchedBorder.getHighlightColor()
Returns the highlight color of the etched border.
|
Color |
EtchedBorder.getHighlightColor(Component
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
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
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
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
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
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TitledBorder.setTitleColor(Color
Sets the title-color of the titled border.
|
| Constructor and Description | |
|---|---|
BevelBorder(int bevelType, Color
Creates a bevel border with the specified type, highlight and shadow colors.
|
|
BevelBorder(int bevelType, Color
Creates a bevel border with the specified type, highlight and shadow colors.
|
|
EtchedBorder(Color
Creates a lowered etched border with the specified highlight and shadow colors.
|
|
EtchedBorder(int etchType, Color
Creates an etched border with the specified etch-type, highlight and shadow colors.
|
|
LineBorder(Color
Creates a line border with the specified color and a thickness = 1.
|
|
LineBorder(Color
Creates a line border with the specified color and thickness.
|
|
LineBorder(Color
Creates a line border with the specified color, thickness, and corner shape.
|
|
MatteBorder(Insets
Creates a matte border with the specified insets and color.
|
|
MatteBorder(int top, int left, int bottom, int right, Color
Creates a matte border with the specified insets and color.
|
|
SoftBevelBorder(int bevelType, Color
Creates a bevel border with the specified type, highlight and shadow colors.
|
|
SoftBevelBorder(int bevelType, Color
Creates a bevel border with the specified type, highlight shadow colors.
|
|
TitledBorder(Border
Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color.
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
AbstractColorChooserPanel.getColorFromModel()
Returns the color that is currently selected.
|
Color |
ColorSelectionModel.getSelectedColor()
Returns the selected
Color which should be non-
null.
|
Color |
DefaultColorSelectionModel.getSelectedColor()
Returns the selected
Color which should be non-
null.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ColorSelectionModel.setSelectedColor(Color
Sets the selected color to
color.
|
void |
DefaultColorSelectionModel.setSelectedColor(Color
Sets the selected color to
color.
|
| Constructor and Description | |
|---|---|
DefaultColorSelectionModel(Color
Creates a
DefaultColorSelectionModel with the current color set to
color, which should be non-
null.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ColorUIResource
|
| Constructor and Description | |
|---|---|
BevelBorderUIResource(int bevelType, Color
|
|
BevelBorderUIResource(int bevelType, Color
|
|
ColorUIResource(Color
|
|
EtchedBorderUIResource(Color
|
|
EtchedBorderUIResource(int etchType, Color
|
|
LineBorderUIResource(Color
|
|
LineBorderUIResource(Color
|
|
MatteBorderUIResource(int top, int left, int bottom, int right, Color
|
|
TitledBorderUIResource(Border
|
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BasicGraphicsUtils.drawBezel(Graphics
|
static void |
BasicGraphicsUtils.drawEtchedRect(Graphics
|
static void |
BasicGraphicsUtils.drawGroove(Graphics
|
static void |
BasicGraphicsUtils.drawLoweredBezel(Graphics
|
protected void |
BasicMenuItemUI.paintBackground(Graphics
Draws the background of the menu item.
|
protected void |
BasicMenuItemUI.paintMenuItem(Graphics
|
void |
BasicToolBarUI.DragWindow.setBorderColor(Color
|
void |
BasicToolBarUI.setDockingColor(Color
Sets the color displayed when over a docking area
|
void |
BasicToolBarUI.setFloatingColor(Color
Sets the color displayed when over a floating area
|
protected void |
BasicTreeUI.setHashColor(Color
|
| Constructor and Description | |
|---|---|
BasicArrowButton(int direction, Color
Creates a
BasicArrowButton whose arrow is drawn in the specified direction and with the specified colors.
|
|
ButtonBorder(Color
|
|
FieldBorder(Color
|
|
MenuBarBorder(Color
|
|
RadioButtonBorder(Color
|
|
RolloverButtonBorder(Color
|
|
SplitPaneBorder(Color
|
|
ToggleButtonBorder(Color
|
| Modifier and Type | Field and Description |
|---|---|
protected static Color |
MetalSliderUI.darkShadowColor
|
protected Color |
MetalButtonUI.disabledTextColor
|
protected Color |
MetalRadioButtonUI.disabledTextColor
|
protected Color |
MetalToggleButtonUI.disabledTextColor
|
protected Color |
MetalButtonUI.focusColor
|
protected Color |
MetalRadioButtonUI.focusColor
|
protected Color |
MetalToggleButtonUI.focusColor
|
protected static Color |
MetalSliderUI.highlightColor
|
protected Color |
MetalButtonUI.selectColor
|
protected Color |
MetalRadioButtonUI.selectColor
|
protected Color |
MetalToggleButtonUI.selectColor
|
protected Color |
MetalTabbedPaneUI.selectColor
|
protected Color |
MetalTabbedPaneUI.selectHighlight
|
protected Color |
MetalTabbedPaneUI.tabAreaBackground
|
protected static Color |
MetalSliderUI.thumbColor
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
MetalTabbedPaneUI.getColorForGap(int currentRun, int x, int y)
|
protected Color |
MetalButtonUI.getDisabledTextColor()
|
protected Color |
MetalRadioButtonUI.getDisabledTextColor()
|
protected Color |
MetalToggleButtonUI.getDisabledTextColor()
|
protected Color |
MetalButtonUI.getFocusColor()
|
protected Color |
MetalRadioButtonUI.getFocusColor()
|
protected Color |
MetalToggleButtonUI.getFocusColor()
|
protected Color |
MetalButtonUI.getSelectColor()
|
protected Color |
MetalRadioButtonUI.getSelectColor()
|
protected Color |
MetalToggleButtonUI.getSelectColor()
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
AbstractRegionPainter.decodeColor(Color
Decodes and returns a color, which is derived from a offset between two other colors.
|
protected Color |
AbstractRegionPainter.decodeColor(String
Decodes and returns a color, which is derived from a base color in UI defaults.
|
protected Color |
NimbusStyle.getColorForState(SynthContext
Returns the color for the specified state.
|
protected Color |
AbstractRegionPainter.getComponentColor(JComponent
Get a color property from the given JComponent.
|
protected Color |
NimbusLookAndFeel.getDerivedColor(Color
Decodes and returns a color, which is derived from a offset between two other colors.
|
protected Color |
NimbusLookAndFeel.getDerivedColor(Color
Decodes and returns a color, which is derived from an offset between two other colors.
|
Color |
NimbusLookAndFeel.getDerivedColor(String
Get a derived color, derived colors are shared instances and is color value will change when its parent UIDefault color changes.
|
| Modifier and Type | Method and Description |
|---|---|
protected Color |
AbstractRegionPainter.decodeColor(Color
Decodes and returns a color, which is derived from a offset between two other colors.
|
protected LinearGradientPaint |
AbstractRegionPainter.decodeGradient(float x1, float y1, float x2, float y2, float[] midpoints, Color
Given parameters for creating a LinearGradientPaint, this method will create and return a linear gradient paint.
|
protected RadialGradientPaint |
AbstractRegionPainter.decodeRadialGradient(float x, float y, float r, float[] midpoints, Color
Given parameters for creating a RadialGradientPaint, this method will create and return a radial gradient paint.
|
protected Color |
AbstractRegionPainter.getComponentColor(JComponent
Get a color property from the given JComponent.
|
protected Color |
NimbusLookAndFeel.getDerivedColor(Color
Decodes and returns a color, which is derived from a offset between two other colors.
|
protected Color |
NimbusLookAndFeel.getDerivedColor(Color
Decodes and returns a color, which is derived from an offset between two other colors.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
SynthStyle.getColor(SynthContext
Returns the color for the specified state.
|
protected abstract Color |
SynthStyle.getColorForState(SynthContext
Returns the color for the specified state.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBackground()
|
Color |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getForeground()
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBackground(Color
|
void |
DefaultTableCellRenderer.setBackground(Color
Overrides
JComponent.setBackground to assign the unselected-background color to the specified color.
|
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setForeground(Color
|
void |
DefaultTableCellRenderer.setForeground(Color
Overrides
JComponent.setForeground to assign the unselected-foreground color to the specified color.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
GlyphView.getBackground()
Fetch the background color to use to render the glyphs.
|
Color |
LabelView.getBackground()
Fetches the background color to use to render the glyphs.
|
Color |
StyleContext.getBackground(AttributeSet
Takes a set of attributes and turn it into a background color specification.
|
Color |
DefaultStyledDocument.getBackground(AttributeSet
Gets the background color from an attribute set.
|
static Color |
StyleConstants.getBackground(AttributeSet
Gets the background color setting from the attribute list.
|
Color |
StyledDocument.getBackground(AttributeSet
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 |
GlyphView.getForeground()
Fetch the foreground color to use to render the glyphs.
|
Color |
LabelView.getForeground()
Fetches the foreground color to use to render the glyphs.
|
Color |
StyleContext.getForeground(AttributeSet
Takes a set of attributes and turn it into a foreground color specification.
|
Color |
DefaultStyledDocument.getForeground(AttributeSet
Gets the foreground color from an attribute set.
|
static Color |
StyleConstants.getForeground(AttributeSet
Gets the foreground color setting from the attribute list.
|
Color |
StyledDocument.getForeground(AttributeSet
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
LabelView.setBackground(Color
Sets the background color for the view.
|
static void |
StyleConstants.setBackground(MutableAttributeSet
Sets the background color.
|
void |
JTextComponent.setCaretColor(Color
Sets the current color used to render the caret.
|
void |
JTextComponent.setDisabledTextColor(Color
Sets the current color used to render the disabled text.
|
static void |
StyleConstants.setForeground(MutableAttributeSet
Sets the foreground color.
|
void |
JTextComponent.setSelectedTextColor(Color
Sets the current color used to render the selected text.
|
void |
JTextComponent.setSelectionColor(Color
Sets the current color used to render the selection.
|
| Constructor and Description | |
|---|---|
DefaultHighlightPainter(Color
Constructs a new highlight painter.
|
|
ForegroundAction(String
Creates a new ForegroundAction.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
StyleSheet.getBackground(AttributeSet
Takes a set of attributes and turn it into a background color specification.
|
Color |
StyleSheet.getForeground(AttributeSet
Takes a set of attributes and turn it into a foreground color specification.
|
Color |
StyleSheet.stringToColor(String
Converts a color string such as "RED" or "#NNNNNN" to a Color.
|
| Modifier and Type | Field and Description |
|---|---|
protected Color |
DefaultTreeCellRenderer.backgroundNonSelectionColor
Color to use for the background when the node isn't selected.
|
protected Color |
DefaultTreeCellRenderer.backgroundSelectionColor
Color to use for the background when a node is selected.
|
protected Color |
DefaultTreeCellEditor.borderSelectionColor
True if the border selection color should be drawn.
|
protected Color |
DefaultTreeCellRenderer.borderSelectionColor
Color to use for the focus indicator when the node has focus.
|
protected Color |
DefaultTreeCellRenderer.textNonSelectionColor
Color to use for the foreground for non-selected nodes.
|
protected Color |
DefaultTreeCellRenderer.textSelectionColor
Color to use for the foreground for selected nodes.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultTreeCellRenderer.setBackground(Color
Subclassed to map
ColorUIResources to null.
|
void |
DefaultTreeCellRenderer.setBackgroundNonSelectionColor(Color
Sets the background color to be used for non selected nodes.
|
void |
DefaultTreeCellRenderer.setBackgroundSelectionColor(Color
Sets the color to use for the background if node is selected.
|
void |
DefaultTreeCellEditor.setBorderSelectionColor(Color
Sets the color to use for the border.
|
void |
DefaultTreeCellRenderer.setBorderSelectionColor(Color
Sets the color to use for the border.
|
void |
DefaultTreeCellRenderer.setTextNonSelectionColor(Color
Sets the color the text is drawn with when the node isn't selected.
|
void |
DefaultTreeCellRenderer.setTextSelectionColor(Color
Sets the color the text is drawn with when the node is selected.
|