com.threerings.opengl.gui.config
Class StyleConfig.Original

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

public static class StyleConfig.Original
extends StyleConfig.Implementation

An original implementation.


Field Summary
 BackgroundConfig background
          The background configuration.
 BorderConfig border
          The border configuration.
 Color4f color
          The foreground color.
 String cursor
          The cursor.
 Color4f effectColor
          The effect color.
 int effectSize
          The effect size.
 String feedbackSound
          The feedback sound, if any.
 String font
          The font.
 int fontSize
          The font size.
 FontConfig.Style fontStyle
          The font style.
 IconConfig icon
          The icon configuration.
 int lineSpacing
          The line spacing.
 InsetsConfig padding
          The padding.
 BackgroundConfig selectionBackground
          The selection background.
 DimensionConfig size
          The preferred size.
 StyleConfig.TextAlignment textAlignment
          The text alignment.
 StyleConfig.TextEffect textEffect
          The text effect.
 ConfigReference<StyleConfig> tooltipStyle
          The tooltip style.
 StyleConfig.VerticalAlignment verticalAlignment
          The vertical alignment .
 
Constructor Summary
StyleConfig.Original()
           
 
Method Summary
 StyleConfig.Original getOriginal(GlContext ctx)
          Returns a reference to the config's underlying original implementation.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
 void invalidate()
          Invalidates any cached data.
 
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

color

@Editable(mode="alpha",
          hgroup="c")
public Color4f color
The foreground color.


cursor

@Editable(editor="config",
          mode="cursor",
          nullable=true,
          hgroup="c")
public String cursor
The cursor.


font

@Editable(editor="config",
          mode="font",
          nullable=true,
          hgroup="f")
public String font
The font.


fontStyle

@Editable(hgroup="f")
public FontConfig.Style fontStyle
The font style.


fontSize

@Editable(min=1.0,
          hgroup="f")
public int fontSize
The font size.


textEffect

@Editable(hgroup="e")
public StyleConfig.TextEffect textEffect
The text effect.


effectSize

@Editable(hgroup="e")
public int effectSize
The effect size.


effectColor

@Editable(mode="alpha",
          hgroup="e")
public Color4f effectColor
The effect color.


textAlignment

@Editable(hgroup="a")
public StyleConfig.TextAlignment textAlignment
The text alignment.


verticalAlignment

@Editable(hgroup="a")
public StyleConfig.VerticalAlignment verticalAlignment
The vertical alignment .


lineSpacing

@Editable(hgroup="a")
public int lineSpacing
The line spacing.


feedbackSound

@Editable(editor="resource",
          nullable=true)
@FileConstraints(description="m.sound_files_desc",
                 extensions=".ogg",
                 directory="sound_dir")
public String feedbackSound
The feedback sound, if any.


padding

@Editable
public InsetsConfig padding
The padding.


background

@Editable(nullable=true)
public BackgroundConfig background
The background configuration.


icon

@Editable(nullable=true)
public IconConfig icon
The icon configuration.


border

@Editable(nullable=true)
public BorderConfig border
The border configuration.


size

@Editable(nullable=true)
public DimensionConfig size
The preferred size.


tooltipStyle

@Editable(nullable=true)
public ConfigReference<StyleConfig> tooltipStyle
The tooltip style.


selectionBackground

@Editable(nullable=true)
public BackgroundConfig selectionBackground
The selection background.

Constructor Detail

StyleConfig.Original

public StyleConfig.Original()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: StyleConfig.Implementation
Adds the implementation's update references to the provided set.

Specified by:
getUpdateReferences in class StyleConfig.Implementation

getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Description copied from class: StyleConfig.Implementation
Adds the implementation's update resources to the provided set.

Overrides:
getUpdateResources in class StyleConfig.Implementation

getOriginal

public StyleConfig.Original getOriginal(GlContext ctx)
Description copied from class: StyleConfig.Implementation
Returns a reference to the config's underlying original implementation.

Specified by:
getOriginal in class StyleConfig.Implementation

invalidate

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

Overrides:
invalidate in class StyleConfig.Implementation


Copyright © 2011. All Rights Reserved.