lt.monarch.chart.style
Class TextStyle<Tag extends AbstractPaintTags>

java.lang.Object
  extended by lt.monarch.chart.style.AbstractStyle<Tag>
      extended by lt.monarch.chart.style.TextStyle<Tag>
All Implemented Interfaces:
java.io.Serializable

public class TextStyle<Tag extends AbstractPaintTags>
extends AbstractStyle<Tag>

Text3D style class, where style entityStyle are mapped to style sheet.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.style.AbstractStyle
dirty
 
Constructor Summary
Constructor and Description
TextStyle(Style style)
          Default Text3D style constructor
 
Method Summary
Modifier and Type Method and Description
 void dispose()
          Disposes style object
 java.awt.Color getColor()
          Gets background color from the stylesheet
 java.awt.Color getColor(Tag tag)
          Gets background color from the stylesheet
 java.awt.Font getFont()
          Gets font from the stylesheet
 java.awt.Font getFont(Tag tag)
          Gets font from the stylesheet
 void setColor(java.awt.Color color)
          Set text color to the stylesheet
 void setColor(Tag tag, java.awt.Color color)
          Set text color to the stylesheet
 void setFont(java.awt.Font font)
          Sets font to the stylesheet
 void setFont(Tag tag, java.awt.Font font)
          Sets font to the stylesheet
 
Methods inherited from class lt.monarch.chart.style.AbstractStyle
finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextStyle

public TextStyle(Style style)
Default Text3D style constructor

Parameters:
style - style object
Method Detail

setFont

public void setFont(java.awt.Font font)
Sets font to the stylesheet

Parameters:
font - font to set

getFont

public java.awt.Font getFont()
Gets font from the stylesheet

Returns:
font object

getFont

public java.awt.Font getFont(Tag tag)
Gets font from the stylesheet

Parameters:
tag - painting tag
Returns:
font object

setFont

public void setFont(Tag tag,
                    java.awt.Font font)
Sets font to the stylesheet

Parameters:
tag - painting tag
font - font to set

setColor

public void setColor(java.awt.Color color)
Set text color to the stylesheet

Parameters:
color - text color

getColor

public java.awt.Color getColor()
Gets background color from the stylesheet

Returns:
text color

setColor

public void setColor(Tag tag,
                     java.awt.Color color)
Set text color to the stylesheet

Parameters:
tag - painting tag
color - text color

getColor

public java.awt.Color getColor(Tag tag)
Gets background color from the stylesheet

Parameters:
tag - painting tag
Returns:
text color

dispose

public void dispose()
Description copied from class: AbstractStyle
Disposes style object

Overrides:
dispose in class AbstractStyle<Tag extends AbstractPaintTags>