public abstract class ColorPaletteUI extends ComponentUI
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFERRED_CELL_HEIGHT_PROPERTY
The client property for the preferred cell height (as an integer).
|
static String |
PREFERRED_CELL_WIDTH_PROPERTY
The client property for the preferred cell width (as an integer).
|
static String |
RELATIVE_POINT_PROPERTY
The client property for the relative point.
|
| Constructor and Description |
|---|
ColorPaletteUI()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(JComponent
|
protected static MutableInteger |
getAdjustingLock(ColorPalette
|
Color |
getColor(ColorPalette
|
protected abstract ColorSet |
getColorSet(ColorPalette
|
protected Border |
getDefaultBorder()
|
protected Rectangle |
getImageBounds(ColorPalette
|
protected Insets |
getImageInsets(ColorPalette
|
Dimension |
getMaximumSize(JComponent
|
Dimension |
getMinimumSize(JComponent
|
Dimension |
getPreferredSize(JComponent
|
protected static int |
getRGBDistanceSquared(int rgb1, int rgb2)
|
void |
installUI(JComponent
|
protected boolean |
isRelativePointValid(ColorPalette
|
void |
paint(Graphics
|
protected void |
processKeyEvent(KeyEvent
|
protected void |
processMouseEvent(MouseEvent
|
void |
uninstallUI(JComponent
|
protected void |
updateColor(ColorPalette
Resets the UI to feature the color returned by
cp.getColor(), if possible.
|
createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updatepublic static final StringRELATIVE_POINT_PROPERTY
public static final StringPREFERRED_CELL_WIDTH_PROPERTY
public static final StringPREFERRED_CELL_HEIGHT_PROPERTY
public final ColorgetColor(ColorPalette cp, int x, int y)
public final boolean contains(JComponentc, int x, int y)
protected final RectanglegetImageBounds(ColorPalette cp)
protected abstract ColorSetgetColorSet(ColorPalette cp)
public DimensiongetMaximumSize(JComponent c)
public DimensiongetMinimumSize(JComponent c)
public DimensiongetPreferredSize(JComponent c)
protected InsetsgetImageInsets(ColorPalette cp)
public void installUI(JComponentc)
public void uninstallUI(JComponentc)
protected BordergetDefaultBorder()
protected void processKeyEvent(KeyEventkeyEvent, int dx, int dy)
protected void processMouseEvent(MouseEvente, float xFraction, float yFraction)
protected void updateColor(ColorPalettecp)
cp.getColor(), if possible.
protected static MutableIntegergetAdjustingLock(ColorPalette cp)
public void paint(Graphicsg0, JComponent c)
protected boolean isRelativePointValid(ColorPalettecp)
protected static int getRGBDistanceSquared(int rgb1,
int rgb2)