|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.gui.config.ComponentConfig
com.threerings.opengl.gui.config.ComponentConfig.ColorPicker
public static class ComponentConfig.ColorPicker
Allows the selection of a color from a colorization class.
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
String |
colorClass
The name of the colorization class. |
int |
selected
The index of the initially selected color. |
boolean |
starters
Whether or not to limit the options to starter colors. |
int |
swatchHeight
The dimensions of the color swatches. |
int |
swatchWidth
The dimensions of the color swatches. |
| Fields inherited from class com.threerings.opengl.gui.config.ComponentConfig |
|---|
alpha, enabled, hoverable, preferredSize, style, tag, tooltipRelativeToMouse, tooltipText, visible |
| Constructor Summary | |
|---|---|
ComponentConfig.ColorPicker()
|
|
| Method Summary | |
|---|---|
protected void |
configure(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
Configures the specified component. |
protected Component |
maybeRecreate(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
Recreates the component if the supplied component doesn't match the configuration. |
| Methods inherited from class com.threerings.opengl.gui.config.ComponentConfig |
|---|
getClass, getComponent, getMessage, invalidate |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable(hgroup="c") public String colorClass
@Editable(hgroup="c") public boolean starters
@Editable(min=1.0,
hgroup="s")
public int swatchWidth
@Editable(min=1.0,
hgroup="s")
public int swatchHeight
@Editable(min=0.0) public int selected
| Constructor Detail |
|---|
public ComponentConfig.ColorPicker()
| Method Detail |
|---|
protected Component maybeRecreate(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
ComponentConfig
maybeRecreate in class ComponentConfig
protected void configure(GlContext ctx,
Scope scope,
MessageBundle msgs,
Component comp)
ComponentConfig
configure in class ComponentConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||