|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcox.jmatt.java.MathTools.markup.Tag
cox.jmatt.java.MathTools.markup.svg.StyleTag
cox.jmatt.java.MathTools.markup.svg.PolygonTag
public class PolygonTag
This class provides both the <polygon> and <polyline>: tags. The difference is in closure: the polygon automatically connects the last point added to the first; the polyline does not. Apart from that there is no difference between the two tags.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag |
---|
StyleTag.TagKeys |
Field Summary |
---|
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
---|
myTagName |
Constructor Summary | |
---|---|
PolygonTag()
Only one constructor. |
Method Summary | |
---|---|
PolygonTag |
addPoints(java.lang.String pPoints)
Add a String of space-separated points directly. |
PolygonTag |
addVertex(double vX,
double vY)
Add a vertex (point) to the current polything. |
PolygonTag |
copyOf()
Copy this class. |
void |
reset()
Overridden to clear the internal point data also. |
PolygonTag |
setPolygon(boolean isClosed)
Determine whether this tag is a polygon or polyline. |
java.lang.String |
toString()
Overridden to add the points at the last possible instant. |
Methods inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag |
---|
_configureTag, _enableCopy, canHaveDefs, isInDefs, setDefaultPen, setDefaultStyle, setDefaultTransform, setPen, setStyle, setTransform |
Methods inherited from class cox.jmatt.java.MathTools.markup.Tag |
---|
_addAttribute, _addAttributes, _addNAttribute, _asBoolean, _asDouble, _asInt, _attributes, _clampNAttribute, _clampNAttribute, _content, _fixKey, _setContent, _setEnableXMLTag, badPizza, closeTag, configureTag, configureTagFromGlobalPizza, makeTag, openTag, setID, validString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PolygonTag()
Method Detail |
---|
public PolygonTag setPolygon(boolean isClosed)
reset()
method does not affect this! Returns a self-reference to allow
new PolygonTag().setPolygon(false)
to generate a polyline in one statement.
isClosed
- true for a polygon, false for a polyline.public PolygonTag addVertex(double vX, double vY)
public PolygonTag addPoints(java.lang.String pPoints)
public void reset()
reset
in class Tag
public PolygonTag copyOf()
public java.lang.String toString()
toString
in class Tag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |