|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.vizzini.tool.colordesigner.ColorPanel
public class ColorPanel
Provides a user interface for WheelColor objects.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Dimension |
BUTTON_DIMENSION
Color button dimension. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ColorPanel(String title,
Iterator colorIter)
Construct this object. |
|
ColorPanel(String title,
Iterator colorIter,
boolean showAnalogous,
boolean showComplement)
Construct this object. |
|
ColorPanel(String title,
WheelColor[] colors)
Construct this object. |
|
ColorPanel(String title,
WheelColor[] colors,
boolean showAnalogous,
boolean showComplement)
Construct this object. |
|
| Method Summary | |
|---|---|
protected void |
addColor(WheelColor color)
Add a representation of the given color to the given panel. |
protected void |
addColors(Iterator colorIter)
Add the colors from the given iterator. |
protected void |
addColors(WheelColor[] colors)
Add the given colors. |
protected JPanel |
createColorButton(Color color)
Create a new color button. |
protected void |
init(String title,
boolean showAnalogous,
boolean showComplement)
Construct this object. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Dimension BUTTON_DIMENSION
| Constructor Detail |
|---|
public ColorPanel(String title,
WheelColor[] colors)
title - Panel title.colors - Colors.
public ColorPanel(String title,
Iterator colorIter)
title - Panel title.colorIter - Color iterator.
public ColorPanel(String title,
WheelColor[] colors,
boolean showAnalogous,
boolean showComplement)
title - Panel title.colors - Colors.showAnalogous - Flag indicating whether to show analogous colors.showComplement - Flag indicating whether to show complementary
colors.
public ColorPanel(String title,
Iterator colorIter,
boolean showAnalogous,
boolean showComplement)
title - Panel title.colorIter - Color iterator.showAnalogous - Flag indicating whether to show analogous colors.showComplement - Flag indicating whether to show complementary
colors.| Method Detail |
|---|
protected void addColor(WheelColor color)
color - Color.protected void addColors(WheelColor[] colors)
colors - Colors.protected void addColors(Iterator colorIter)
colorIter - Color iterator.protected JPanel createColorButton(Color color)
color - Color.
protected void init(String title,
boolean showAnalogous,
boolean showComplement)
title - Panel title.showAnalogous - Flag indicating whether to show analogous colors.showComplement - Flag indicating whether to show complementary
colors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |