lt.monarch.chart.text
Class RotatedLabelPainter

java.lang.Object
  extended by lt.monarch.chart.text.TextPainter
      extended by lt.monarch.chart.text.RotatedLabelPainter
All Implemented Interfaces:
java.io.Serializable, AbstractTextPainter
Direct Known Subclasses:
LabelTextPainter, LadderTextPainter

public abstract class RotatedLabelPainter
extends TextPainter

Text painter for rotating labels

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.text.TextPainter
boundingBox, hAlignment, text, vAlignment, xMargin, yMargin
 
Constructor Summary
Constructor and Description
RotatedLabelPainter()
           
 
Method Summary
Modifier and Type Method and Description
abstract  Area getFullArea(java.awt.FontMetrics fm)
          Returns the area where is label.
protected abstract  java.awt.Dimension getFullSize(java.awt.FontMetrics fm)
          Returns full not rotated text size.
abstract  Rectangle2D getPreferredBounds(java.awt.FontMetrics fm)
          Gets preferred bounds
abstract  float getRelativePosition()
          Returns relative position for the label
abstract  double getRotationAngle()
          Gets rotation angle for label in radians
abstract  Point2D getRotationPoint()
          Returns rotation point
abstract  void setRelativePosition(float relativePosition)
          Sets relative position for the label
abstract  void setRotationAngle(double rotationAngle)
          Sets rotation angle for the label in radians
abstract  void setRotationPoint(Point2D rotationPoint)
          Sets rotation point
 
Methods inherited from class lt.monarch.chart.text.TextPainter
dispose, findBounds, getBounds, getHorizontalAlignment, getHorizontalMargin, getMarginInPixels, getMinimumHeight, getMinimumSize, getMinimumSize, getText, getVerticalAlignment, getVerticalMargin, getWrappingEnabled, paint, setHorizontalAlignment, setHorizontalMargin, setMargin, setText, setText, setVerticalAlignment, setVerticalMargin, setWrappingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotatedLabelPainter

public RotatedLabelPainter()
Method Detail

setRotationAngle

public abstract void setRotationAngle(double rotationAngle)
Sets rotation angle for the label in radians

Parameters:
rotationAngle - rotation angle for label

getRotationAngle

public abstract double getRotationAngle()
Gets rotation angle for label in radians

Returns:
rotation angle in radians

setRotationPoint

public abstract void setRotationPoint(Point2D rotationPoint)
Sets rotation point

Parameters:
rotationPoint - rotation point

getRotationPoint

public abstract Point2D getRotationPoint()
Returns rotation point

Returns:
rotation point

getPreferredBounds

public abstract Rectangle2D getPreferredBounds(java.awt.FontMetrics fm)
Gets preferred bounds

Parameters:
fm - FontMetrics
Returns:
preferred bounds

setRelativePosition

public abstract void setRelativePosition(float relativePosition)
Sets relative position for the label

Parameters:
relativePosition - relative position for the label

getRelativePosition

public abstract float getRelativePosition()
Returns relative position for the label

Returns:
relative position for the label

getFullArea

public abstract Area getFullArea(java.awt.FontMetrics fm)
Returns the area where is label.

Parameters:
fm - font metrics
Returns:
the bounding area of label

getFullSize

protected abstract java.awt.Dimension getFullSize(java.awt.FontMetrics fm)
Returns full not rotated text size.

Parameters:
fm - font metrics
Returns:
full size dimension