JIDE 3.5.15

com.jidesoft.chart.style
Class LabelStyle

java.lang.Object
  extended by com.jidesoft.chart.style.AbstractStyle
      extended by com.jidesoft.chart.style.LabelStyle

public class LabelStyle
extends AbstractStyle

Contains style information for a label


Constructor Summary
LabelStyle()
          Create a new LabelStyle using the default font and font size
LabelStyle(Color color, Font font)
          Create a new Label Style using the specified color and font
LabelStyle(Color color, Font font, double rotation)
          Create a new Label Style using the specified color, font and rotation
LabelStyle(double rotation)
          Create a new Label Style using the default font and font size, and specifying a rotation for the label
LabelStyle(Font font)
          Create a new Label Style using the specified font
 
Method Summary
 boolean equals(Object obj)
           
 Font getFont()
          Returns the currently specified font
 Double getRotation()
          Retrieve the rotation specified for the label
 int hashCode()
           
 void setFont(Font font)
          Specify the font to use for the label
 void setRotation(Double rotation)
          Specify the rotation of a label (in radians)
 
Methods inherited from class com.jidesoft.chart.style.AbstractStyle
getColor, getPaint, setColor, setPaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelStyle

public LabelStyle()
Create a new LabelStyle using the default font and font size


LabelStyle

public LabelStyle(Font font)
Create a new Label Style using the specified font

Parameters:
font - the font to use for the label

LabelStyle

public LabelStyle(double rotation)
Create a new Label Style using the default font and font size, and specifying a rotation for the label

Parameters:
rotation - the rotation of the label in radians

LabelStyle

public LabelStyle(Color color,
                  Font font)
Create a new Label Style using the specified color and font

Parameters:
color - the color for the label
font - the font to use for the label

LabelStyle

public LabelStyle(Color color,
                  Font font,
                  double rotation)
Create a new Label Style using the specified color, font and rotation

Parameters:
color - the color to use for the label
font - the font to use for the label
rotation - the rotation of the label in radians
Method Detail

getFont

public Font getFont()
Returns the currently specified font

Returns:
the currently specified font

setFont

public void setFont(Font font)
Specify the font to use for the label

Parameters:
font - the new font to use for the label

getRotation

public Double getRotation()
Retrieve the rotation specified for the label

Returns:
the currently specified rotation, given in radians

setRotation

public void setRotation(Double rotation)
Specify the rotation of a label (in radians)

Parameters:
rotation - the rotation of the label

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractStyle

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractStyle

JIDE 3.5.15