Style Intelligence v12.0

inetsoft.graph
Class TextSpec

java.lang.Object
  extended by inetsoft.graph.TextSpec
All Implemented Interfaces:
Serializable, Cloneable

public class TextSpec
extends Object
implements Cloneable, Serializable

This class contains the formatting attributes for text labels.

See Also:
Serialized Form

Constructor Summary
TextSpec()
           
 
Method Summary
 Object clone()
          Create a clone of this object.
 boolean equals(Object obj)
          Check if equals another object.
 int getAlignment()
          Get the alignment of the text.
 Color getBackground()
          Get the background fill color.
 Color getColor()
          Get the text color.
 Color getColor(Object val)
          Get the text color for the specific value.
 Font getFont()
          Get the text font.
 Font getFont(Object val)
          Get the text font for the specific value.
 Format getFormat()
          Get the format for converting an object to a text string.
 double getRotation()
          Get the text rotation in degrees.
 void setAlignment(int align)
          Set the alignment of the text.
 void setBackground(Color bg)
          Set the background fill color.
 void setColor(Color color)
          Set the text color.
 void setColor(Object val, Color color)
          Set the text color for the specific value.
 void setFont(Font font)
          Set the text font.
 void setFont(Object val, Font font)
          Set the text font for the specific value.
 void setFormat(Format fmt)
          Set the format for converting an object to a text string.
 void setRotation(double rotation)
          Set the text rotation in degrees.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSpec

public TextSpec()
Method Detail

setColor

public void setColor(Color color)
Set the text color.


getColor

public Color getColor()
Get the text color.


setColor

public void setColor(Object val,
                     Color color)
Set the text color for the specific value.


getColor

public Color getColor(Object val)
Get the text color for the specific value.


setFont

public void setFont(Font font)
Set the text font.


getFont

public Font getFont()
Get the text font.


setFont

public void setFont(Object val,
                    Font font)
Set the text font for the specific value.


getFont

public Font getFont(Object val)
Get the text font for the specific value.


setBackground

public void setBackground(Color bg)
Set the background fill color.


getBackground

public Color getBackground()
Get the background fill color.


setFormat

public void setFormat(Format fmt)
Set the format for converting an object to a text string.


getFormat

public Format getFormat()
Get the format for converting an object to a text string.


setRotation

public void setRotation(double rotation)
Set the text rotation in degrees.


getRotation

public double getRotation()
Get the text rotation in degrees.


getAlignment

public int getAlignment()
Get the alignment of the text.


setAlignment

public void setAlignment(int align)
Set the alignment of the text.

Parameters:
align - alignment defined in GraphConstants.

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class Object

clone

public Object clone()
Create a clone of this object.

Overrides:
clone in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.