lt.monarch.chart.text
Interface AbstractAxisLabel

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AxisLabel

public interface AbstractAxisLabel
extends java.io.Serializable

This interface is intended to be implemented by Axis2D labels.


Method Summary
Modifier and Type Method and Description
 double endPos()
          Returns the end position of the label.
 Rectangle2D getBounds()
          Returns label bounds
 int getIndex()
          Gets the index value of this label
 Area getLabelArea()
          Gets label bounding area
 java.lang.String getText()
          Returns label text
 boolean isKeyLabel()
          Indicates that label is key label
 int level()
          Returns a level of the label.
 void move(double deltax, double deltay)
          Moves the label the specified x and y offset.
 void moveToX(double posX)
          Moves the label to the specified X position.
 void moveToY(double posY)
          Moves the label to the specified Y position.
 void paint(AbstractGraphics g)
          Renders lebel on the Graphics context.
 double position()
          Returns a label position.
 double startPos()
          Returns the start position of the label.
 

Method Detail

level

int level()
Returns a level of the label.

Returns:
the level of the label

position

double position()
Returns a label position. For example label's horizontal or vertical center can be used as position.

Returns:
label's position

startPos

double startPos()
Returns the start position of the label.

Returns:
the start position of the label

endPos

double endPos()
Returns the end position of the label.

Returns:
the end position of the label

move

void move(double deltax,
          double deltay)
Moves the label the specified x and y offset.

Parameters:
deltax - x offset
deltay - y offset

moveToY

void moveToY(double posY)
Moves the label to the specified Y position.

Parameters:
posY - the Y position to move label to

moveToX

void moveToX(double posX)
Moves the label to the specified X position.

Parameters:
posX - the X position to move label to

getLabelArea

Area getLabelArea()
Gets label bounding area

Returns:
label bounding area

getText

java.lang.String getText()
Returns label text

Returns:
text string

getBounds

Rectangle2D getBounds()
Returns label bounds

Returns:
label bounds rectangle

isKeyLabel

boolean isKeyLabel()
Indicates that label is key label

Returns:
true if label is key label

getIndex

int getIndex()
Gets the index value of this label

Returns:
the index value

paint

void paint(AbstractGraphics g)
Renders lebel on the Graphics context.

Parameters:
g - graphics context