cox.jmatt.java.MathTools.markup.svg
Class LineTag
java.lang.Object
cox.jmatt.java.MathTools.markup.Tag
cox.jmatt.java.MathTools.markup.svg.StyleTag
cox.jmatt.java.MathTools.markup.svg.LineTag
public class LineTag
- extends StyleTag
This class generates SVG <line> tags; lines from one point to another. Once created all the data can be changed: endpoints, style and transforms.
Default values can also be set. Endpoint values are given as Object type Double; if one of these values is null it is ignored and not removed. This
allows one coordinate to be changed without affecting the others.
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
myTagName |
Constructor Summary |
LineTag()
Standard constructor. |
LineTag(java.lang.Double X1,
java.lang.Double Y1,
java.lang.Double X2,
java.lang.Double Y2)
Create a LineTag with all data present. |
Method Summary |
LineTag |
copyOf()
Copy this class. |
LineTag |
setData(java.lang.Double X1,
java.lang.Double Y1,
java.lang.Double X2,
java.lang.Double Y2)
Set line-specific data: the endpoints! This draws a line from (X1, Y1) to (X2, Y2). |
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, reset, setID, toString, validString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LineTag
public LineTag()
- Standard constructor. No endpoints set.
LineTag
public LineTag(java.lang.Double X1,
java.lang.Double Y1,
java.lang.Double X2,
java.lang.Double Y2)
- Create a LineTag with all data present.
copyOf
public LineTag copyOf()
- Copy this class.
setData
public LineTag setData(java.lang.Double X1,
java.lang.Double Y1,
java.lang.Double X2,
java.lang.Double Y2)
- Set line-specific data: the endpoints! This draws a line from (X1, Y1) to (X2, Y2).