|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel uic.widgets.ColorSelectionBase uic.widgets.ColorSelection
public class ColorSelection
A color selection dialog. This selection dialog aims to provide a selector much like the one used on various operating systems to make the user feel at home.
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 |
---|
Fields inherited from class uic.widgets.ColorSelectionBase |
---|
bAdd, bAddAction, blueSpin, bPick, bPickAction, colorPanel, greenSpin, HSV, htmlLineEdit, hueSpin, previewPanel, previewType, redSpin, saturationSpin, selector, tabs, textLabel1, textLabel1_2, textLabel1_3, textLabel1_4, textLabel1_5, textLabel1_6, textLabel2, valueSpin |
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 | |
---|---|
ColorSelection()
Create a new ColorSelection widget with the default color 'white'. |
|
ColorSelection(Color start)
Create a new ColorSelection widget which preselects the argument color. |
Method Summary | |
---|---|
void |
addPreviewPane(String name,
ColorButtons cb)
Add a set of color-swatches in the form of a ColorButtons instance to this selector. |
void |
bAddPressedSlot()
Called when the user pressed the 'add to...' button. |
void |
bPickPressedSlot()
|
Color |
getColor()
Returns the current selected color. |
void |
hsvSpinnerChangedSlot()
Is called when the user changes any hsv spinner. |
void |
htmlColorChangedSlot(String input)
Is called when the user changes the html color text. |
protected void |
previewTypeSelectedSlot(uic.widgets.ColorSelection.ColorButtonsWrapper buttons)
|
void |
rgbSpinnerChangedSlot()
Is called when the user changes any rgb spinner. |
static Color |
selectColorDialog(Window parent,
Color selected)
Show a color selection dialog with the argument color as a proposal. |
void |
setColor(Color newColor)
Set a color for this widget to display. |
TranslationInterface |
translate()
|
protected void |
updateColorSlot(Color newColor)
Is called when the user clicks on a color. |
Methods inherited from class uic.widgets.ColorSelectionBase |
---|
guiInit |
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 |
Constructor Detail |
---|
public ColorSelection()
public ColorSelection(Color start)
start
- the color to select on start.Method Detail |
---|
public void addPreviewPane(String name, ColorButtons cb)
protected void updateColorSlot(Color newColor)
public void rgbSpinnerChangedSlot()
public void hsvSpinnerChangedSlot()
public void htmlColorChangedSlot(String input)
public Color getColor()
public void setColor(Color newColor)
public static Color selectColorDialog(Window parent, Color selected)
parent
- a parent that will be blocked while this dialog is open.selected
- the proposal color.
public void bAddPressedSlot()
bAddPressedSlot
in class ColorSelectionBase
public void bPickPressedSlot()
bPickPressedSlot
in class ColorSelectionBase
protected void previewTypeSelectedSlot(uic.widgets.ColorSelection.ColorButtonsWrapper buttons)
public TranslationInterface translate()
translate
in class ColorSelectionBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |