|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.graphing.xml.RenderableXML
cox.jmatt.java.MathTools.graphing.xml.AxisXML
public class AxisXML
This class is the XML package's Axis implementation. When rendered, it generates an <Axis> tag with an optional ID attribute, name attribute, and
type attribute, if these fields are defined. If no parameters are set the tag itself is empty: The scale and tick marks are represented as String attributes.
If the Axis is created with its name specified, that becomes its name. The setType()
method determines its type and the ID is supplied as the
key when it is added to a GraphPaper.
All Object arguments are assumed to be String. This is enforced.
Field Summary |
---|
Fields inherited from class cox.jmatt.java.MathTools.graphing.xml.RenderableXML |
---|
myID, myName, myParams, myType |
Constructor Summary | |
---|---|
AxisXML()
Standard constructor for an unnamed Axis. |
|
AxisXML(java.lang.String pName)
Constructor used to create a named Axis. |
Method Summary | |
---|---|
java.lang.Object |
render(java.lang.Object pContext)
Print this Axis as an XML tag. |
boolean |
setScale(java.lang.Object pScale)
Set or clear the scale for this Axis. |
boolean |
setTickMarks(java.lang.Object pMarks)
Set or clear the tick marks for this Axis. |
Methods inherited from class cox.jmatt.java.MathTools.graphing.xml.RenderableXML |
---|
setID, setParameter, setType, testCondition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cox.jmatt.java.MathTools.graphing.Renderable |
---|
setParameter, setType, testCondition |
Constructor Detail |
---|
public AxisXML()
public AxisXML(java.lang.String pName)
Method Detail |
---|
public boolean setScale(java.lang.Object pScale)
setScale
in interface Axis
pScale
- The Object representing the scale used for this Axis.
public boolean setTickMarks(java.lang.Object pMarks)
setTickMarks
in interface Axis
pMarks
- The Object representing the tick-mark configuration to be used for this Axis.
public java.lang.Object render(java.lang.Object pContext)
render
in interface Renderable
render
in class RenderableXML
pContext
- The Context Object to be used for rendering.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |