JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class Justify

java.lang.Object
  |
  +--com.klg.jclass.chart3d.Justify

public class Justify
extends Object

Class internal to JClass Chart 3D. Used to store information about annotation placment and justification.


Field Summary
 boolean above
          Moves annotation above the axis.
protected  double easeway
          The amount of space between the axis and the extent of the annotation.
protected  boolean flipX
          Rotates 180 degrees about X axis.
protected  boolean flipY
          Rotates 180 degrees about Y axis.
protected  int rotate
          Rotates annotation 0, 90, 180, or 270 degrees.
protected  boolean spinTitle
          Rotates title 180 degrees about the Z axis.
protected  boolean vertical
          Draws annotation vertical (orthogonal to axis) or horizontal (parallel to axis).
 
Constructor Summary
Justify()
          Null constructor.
 
Method Summary
 boolean doFlipX()
          Returns whether to rotate the annotation 180 degrees about the X axis.
 boolean doFlipY()
          Returns whether to rotate the annotation 180 degrees about the Y axis.
 boolean doSpinTitle()
          Returns whether to spin the title 180 degrees about the Z axis.
protected  double getEaseway()
          Returns the amount of space between the axis and the extent of the annotation.
 int getRotate()
          Returns whether to rotate text 0, 90, 180, or 270 degrees.
 boolean isAbove()
          Returns whether the annotation is above the axis.
 boolean isVertical()
          Returns whether the annotation is orthogonal to the axis (vertical is true) or parallel to the axis (vertical is false).
 void setAbove(boolean above)
          Sets whether the annotation is above the axis.
 void setEaseway(double easeway)
          Sets the amount of space between the axis and the extent of the annotation.
 void setFlipX(boolean flipX)
          Sets whether to rotate the annotation 180 degrees about the X axis.
 void setFlipY(boolean flipY)
          Sets whether to rotate the annotation 180 degrees about the Y axis.
 void setRotate(int rotate)
          Sets whether to rotate text 0, 90, 180, or 270 degrees.
 void setSpinTitle(boolean spinTitle)
          Sets whether to to spin the title 180 degrees about the Z axis.
protected  void setVertical(boolean vertical)
          Sets whether the annotation is orthogonal to the axis (vertical is true) or parallel to the axis (vertical is false).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rotate

protected int rotate
Rotates annotation 0, 90, 180, or 270 degrees.


above

public boolean above
Moves annotation above the axis.


vertical

protected boolean vertical
Draws annotation vertical (orthogonal to axis) or horizontal (parallel to axis).


flipX

protected boolean flipX
Rotates 180 degrees about X axis.


flipY

protected boolean flipY
Rotates 180 degrees about Y axis.


spinTitle

protected boolean spinTitle
Rotates title 180 degrees about the Z axis.


easeway

protected double easeway
The amount of space between the axis and the extent of the annotation.

Constructor Detail

Justify

public Justify()
Null constructor. All values at default.

Method Detail

getRotate

public int getRotate()
Returns whether to rotate text 0, 90, 180, or 270 degrees.

Returns:
Text rotation enum. One of Transform.ROTATE_NONE, Transform.ROTATE_90, Transform.ROTATE_180, or Transform.ROTATE_270.

setRotate

public void setRotate(int rotate)
Sets whether to rotate text 0, 90, 180, or 270 degrees.

Parameters:
rotate - enum which indicates whether to rotate text 0, 90, 180, or 270 degrees

isAbove

public boolean isAbove()
Returns whether the annotation is above the axis.

Returns:
Is the annotation above the axis?

setAbove

public void setAbove(boolean above)
Sets whether the annotation is above the axis.

Parameters:
above - true if the annotation is above the axis

isVertical

public boolean isVertical()
Returns whether the annotation is orthogonal to the axis (vertical is true) or parallel to the axis (vertical is false).

Returns:
Is the annotation orthogonal or parallel to the axis?

setVertical

protected void setVertical(boolean vertical)
Sets whether the annotation is orthogonal to the axis (vertical is true) or parallel to the axis (vertical is false).

Parameters:
vertical - true if the annotation is orthogonal to the axis

doFlipX

public boolean doFlipX()
Returns whether to rotate the annotation 180 degrees about the X axis.

Returns:
Rotate the annotation 180 degrees about the X axis?

setFlipX

public void setFlipX(boolean flipX)
Sets whether to rotate the annotation 180 degrees about the X axis.

Parameters:
flipX - true if the annotation is rotated 180 about the X axis

doFlipY

public boolean doFlipY()
Returns whether to rotate the annotation 180 degrees about the Y axis.

Returns:
Rotate the annotation 180 degrees about the Y axis?

setFlipY

public void setFlipY(boolean flipY)
Sets whether to rotate the annotation 180 degrees about the Y axis.

Parameters:
flipY - true if the annotation is rotated 180 about the Y axis

doSpinTitle

public boolean doSpinTitle()
Returns whether to spin the title 180 degrees about the Z axis.

Returns:
Spin the title 180 degrees about the Z axis?

setSpinTitle

public void setSpinTitle(boolean spinTitle)
Sets whether to to spin the title 180 degrees about the Z axis.

Parameters:
spinTitle - true if the title is to be rotated 180 degrees about the Z axis

getEaseway

protected double getEaseway()
Returns the amount of space between the axis and the extent of the annotation.

Returns:
the current value of easeway

setEaseway

public void setEaseway(double easeway)
Sets the amount of space between the axis and the extent of the annotation.

Parameters:
easeway - the new value of easeway

Copyright © 2004 Quest Software Inc..
All rights reserved.