Located in compilation unit of javax.
| Modifier and Type | Field and Description |
|---|---|
| protected Color[] | |
| protected Dimension | |
| protected Dimension | |
| private int | |
| private int | |
| protected Dimension |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Color | |
| public Color | |
| public Dimension | getPreferredSize()
Overrides javax. If the |
| public Color | |
| public String | getToolTipText(MouseEvent e)
Overrides javax. Returns the string to be used as the tooltip for event. |
| protected void | |
| protected void | |
| public void | paintComponent(Graphics g)
Overrides javax. Calls the UI delegate's paint method, if the UI delegate
is non- |
| public void |
| colors | back to summary |
|---|---|
| protected Color[] colors | |
| gap | back to summary |
|---|---|
| protected Dimension gap | |
| numSwatches | back to summary |
|---|---|
| protected Dimension numSwatches | |
| selCol | back to summary |
|---|---|
| private int selCol | |
| selRow | back to summary |
|---|---|
| private int selRow | |
| swatchSize | back to summary |
|---|---|
| protected Dimension swatchSize | |
| SwatchPanel | back to summary |
|---|---|
| public SwatchPanel() | |
| getColorForCell | back to summary |
|---|---|
| private Color getColorForCell(int column, int row) | |
| getColorForLocation | back to summary |
|---|---|
| public Color getColorForLocation(int x, int y) | |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides javax. Doc from javax. If the | |
| getSelectedColor | back to summary |
|---|---|
| public Color getSelectedColor() | |
| getToolTipText | back to summary |
|---|---|
| public String getToolTipText(MouseEvent e) Overrides javax. Doc from javax. Returns the string to be used as the tooltip for event.
By default this returns any string set using
| |
| initColors | back to summary |
|---|---|
| protected void initColors() | |
| initValues | back to summary |
|---|---|
| protected void initValues() | |
| paintComponent | back to summary |
|---|---|
| public void paintComponent(Graphics g) Overrides javax. Doc from javax. Calls the UI delegate's paint method, if the UI delegate
is non-
If you override this in a subclass you should not make permanent
changes to the passed in
The passed in | |
| setSelectedColorFromLocation | back to summary |
|---|---|
| public void setSelectedColorFromLocation(int x, int y) | |