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

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.Label
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ComponentConfig.Button, ComponentConfig.StatusLabel
Enclosing class:
ComponentConfig

public static class ComponentConfig.Label
extends ComponentConfig

A label.


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
 Label.Fit fit
          Determines how to fit overlong text in the label.
 IconConfig icon
          The label's icon, if any.
 int iconTextGap
          The gap between icon and text.
 ComponentConfig.Orientation orientation
          The label orientation.
 int preferredWidth
          The label's preferred width, or zero for none.
 String text
          The label's text.
 int textRotation
          The rotation for the text.
 
Fields inherited from class com.threerings.opengl.gui.config.ComponentConfig
alpha, enabled, hoverable, preferredSize, style, tag, tooltipRelativeToMouse, tooltipText, visible
 
Constructor Summary
ComponentConfig.Label()
           
 
Method Summary
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.opengl.gui.config.ComponentConfig
getComponent
 
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

icon

@Editable(nullable=true)
public IconConfig icon
The label's icon, if any.


text

@Editable(hgroup="t")
public String text
The label's text.


iconTextGap

@Editable(hgroup="t")
public int iconTextGap
The gap between icon and text.


textRotation

@Editable(hgroup="t")
public int textRotation
The rotation for the text.


orientation

@Editable(hgroup="o")
public ComponentConfig.Orientation orientation
The label orientation.


fit

@Editable(hgroup="o")
public Label.Fit fit
Determines how to fit overlong text in the label.


preferredWidth

@Editable(min=0.0,
          hgroup="o")
public int preferredWidth
The label's preferred width, or zero for none.

Constructor Detail

ComponentConfig.Label

public ComponentConfig.Label()
Method Detail

invalidate

public void invalidate()
Description copied from class: ComponentConfig
Invalidates any cached data.

Overrides:
invalidate in class ComponentConfig


Copyright © 2011. All Rights Reserved.