com.threerings.opengl.gui.config
Class ComponentConfig.ColorPicker

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.gui.config.ComponentConfig
          extended by com.threerings.opengl.gui.config.ComponentConfig.ColorPicker
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ComponentConfig

public static class ComponentConfig.ColorPicker
extends ComponentConfig

Allows the selection of a color from a colorization class.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.config.ComponentConfig
ComponentConfig.Button, ComponentConfig.ChatOverlay, ComponentConfig.CheckBox, ComponentConfig.ColorPicker, ComponentConfig.ComboBox, ComponentConfig.Container, ComponentConfig.HTMLView, ComponentConfig.Label, ComponentConfig.List, ComponentConfig.Orientation, ComponentConfig.PasswordField, ComponentConfig.RenderableView, ComponentConfig.ScrollBar, ComponentConfig.ScrollPane, ComponentConfig.Slider, ComponentConfig.Spacer, ComponentConfig.Spinner, ComponentConfig.StatusLabel, ComponentConfig.TabbedPane, ComponentConfig.TextArea, ComponentConfig.TextComponent, ComponentConfig.TextEditor, ComponentConfig.TextField, ComponentConfig.ToggleButton, ComponentConfig.UserInterface, ComponentConfig.ViewModel
 
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
 
Methods inherited from class com.threerings.opengl.gui.config.ComponentConfig
getComponent, invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

colorClass

@Editable(hgroup="c")
public String colorClass
The name of the colorization class.


starters

@Editable(hgroup="c")
public boolean starters
Whether or not to limit the options to starter colors.


swatchWidth

@Editable(min=1.0,
          hgroup="s")
public int swatchWidth
The dimensions of the color swatches.


swatchHeight

@Editable(min=1.0,
          hgroup="s")
public int swatchHeight
The dimensions of the color swatches.


selected

@Editable(min=0.0)
public int selected
The index of the initially selected color.

Constructor Detail

ComponentConfig.ColorPicker

public ComponentConfig.ColorPicker()


Copyright © 2011. All Rights Reserved.