|
|||||||||
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.CircleTag
public class CircleTag
This class handles the SVG <circle> tag. It has methods to set the center and radius, along with the inherited default methods. It is also responsible
for creating points, which are nothing more than circles of very small radius with the same stroke and fill colors. Since points are so simple, they
are returned as String and not CircleTag
. The only things configurable about them are color and radius and those have specific setters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cox.jmatt.java.MathTools.markup.svg.StyleTag |
---|
StyleTag.TagKeys |
Field Summary | |
---|---|
static double |
DEFAULT_POINT_RADIUS
Default radius size for points. |
Fields inherited from class cox.jmatt.java.MathTools.markup.Tag |
---|
myTagName |
Constructor Summary | |
---|---|
CircleTag()
Standard constructor for a default CircleTag . |
|
CircleTag(java.lang.Double pX,
java.lang.Double pY,
java.lang.Double pRadius)
Full constructor, all data supplied. |
Method Summary | |
---|---|
void |
configureTag(java.lang.String pPrefix,
java.util.Properties pPizza)
Pizza-configure this tag. |
CircleTag |
copyOf()
Copy this class. |
java.lang.String |
getNewPoint(double pX,
double pY)
Instance method to create a point. |
static java.lang.String |
getPoint(double pX,
double pY)
Create and return a point as a String. |
void |
reset()
Overridden to handle point settings as well. |
CircleTag |
setData(java.lang.Double pX,
java.lang.Double pY,
java.lang.Double pRadius)
Use this method to set or change the center or radius of the circle. |
void |
setNewPointData(double pSize,
java.lang.String pColor)
Instance version. |
static void |
setPointData(double pSize,
java.lang.String pColor)
Set the color and size of all points creates subsequently. |
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, configureTagFromGlobalPizza, makeTag, openTag, setID, toString, validString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_POINT_RADIUS
Constructor Detail |
---|
public CircleTag()
CircleTag
. All data is at default value.
public CircleTag(java.lang.Double pX, java.lang.Double pY, java.lang.Double pRadius)
Method Detail |
---|
public CircleTag setData(java.lang.Double pX, java.lang.Double pY, java.lang.Double pRadius)
pX
- The X-coordinate of the center.pY
- The Y-coordinate of the center.pRadius
- The radius of the circle.public void reset()
reset
in class Tag
public CircleTag copyOf()
public void configureTag(java.lang.String pPrefix, java.util.Properties pPizza)
Pizza-configure this tag. The prefix for this tag is 'markup.svg.Circle.' and the recognized values are:
Any errors parsing values cause that particular value to be skipped.
configureTag
in class Tag
pPizza
- A Properties object holding configuration data for the subclass instance.public static final void setPointData(double pSize, java.lang.String pColor)
pSize
- The radius of the point. Minimum value of DEFAULT_POINT_RADIUS.pColor
- The stroke and fill color as a String.public void setNewPointData(double pSize, java.lang.String pColor)
public static java.lang.String getPoint(double pX, double pY)
public java.lang.String getNewPoint(double pX, double pY)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |