lt.monarch.math.geom
Class AxisLine3D

java.lang.Object
  extended by java.awt.geom.Line2D
      extended by java.awt.geom.Line2D.Double
          extended by lt.monarch.math.geom.Line2D
              extended by lt.monarch.math.geom.Line3D
                  extended by lt.monarch.math.geom.AxisLine3D
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable, Primitive, Primitive2D, Primitive3D

public class AxisLine3D
extends Line3D

An object for representing 3d chart axis.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class java.awt.geom.Line2D
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.math.geom.Line3D
color, z1, z2
 
Fields inherited from class java.awt.geom.Line2D.Double
x1, x2, y1, y2
 
Constructor Summary
Constructor and Description
AxisLine3D(Point3D pt1, Point3D pt2)
          Constructs a new instance of AxisLine3D with the end points specified.
 
Method Summary
Modifier and Type Method and Description
 void addLabelText(Text3D text3d)
          Appends a text3d object which represents a label.
 void addTickLine(Line3D line)
          Appends a tick line.
 java.util.List<Text3D> getLabels()
          Retrieves a list of labels.
 java.util.List<Line3D> getTicks()
          Retrieves a list of tick lines.
 Text3D getTitle()
          Retrieves the title text 3d object.
 void setLabels(java.util.List<Text3D> labels)
          Sets a list of labels.
 void setTitle(Text3D text3d)
          Sets the title text 3d object.
 
Methods inherited from class lt.monarch.math.geom.Line3D
get3DPoints, getColor, getSelectionId, setColor, setLine, setSelectionID
 
Methods inherited from class lt.monarch.math.geom.Line2D
contains, dispose, finalize, get2DPoints, getIntersection
 
Methods inherited from class java.awt.geom.Line2D.Double
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine
 
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lt.monarch.math.geom.Primitive
dispose, getBounds2D
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

AxisLine3D

public AxisLine3D(Point3D pt1,
                  Point3D pt2)
Constructs a new instance of AxisLine3D with the end points specified.

Parameters:
pt1 - - the stating point of line
pt2 - - the ending point of line
Method Detail

addLabelText

public void addLabelText(Text3D text3d)
Appends a text3d object which represents a label.

Parameters:
text3d - - text

addTickLine

public void addTickLine(Line3D line)
Appends a tick line.

Parameters:
line - - line

getLabels

public java.util.List<Text3D> getLabels()
Retrieves a list of labels.

Returns:
- a list of labels

setLabels

public void setLabels(java.util.List<Text3D> labels)
Sets a list of labels.

Parameters:
labels - - a list of labels

getTicks

public java.util.List<Line3D> getTicks()
Retrieves a list of tick lines.

Returns:
- a list of lines

getTitle

public Text3D getTitle()
Retrieves the title text 3d object.

Returns:
- the text 3d object

setTitle

public void setTitle(Text3D text3d)
Sets the title text 3d object.

Parameters:
text3d - - the title text