public class SvgPath extends AbstractSvgNode implements SvgNode
XMLContainerImpl.sMode
mContentAndSubtagList
Constructor and Description |
---|
SvgPath() |
SvgPath(String inPathData) |
SvgPath(XMLTag inXMLTag) |
Modifier and Type | Method and Description |
---|---|
SvgPath |
addPathCommand(SvgPathCmd inValue) |
SvgPath |
addStyle(String inValue) |
void |
draw(Graphics2D g2) |
static SvgPath |
generateCurlyBracket(Point2D inPoint1,
Point2D inPoint2,
int inWidth)
Generates the path for a curly brace between two specified points.
|
Rectangle |
getBoundsBox() |
String |
getData() |
List<SvgPathCmd> |
getPathCommands() |
SvgPath |
setData(String inValue) |
SvgPath |
setFill(Color inColor) |
SvgPath |
setOnMouseDown(String inValue) |
SvgPath |
setOnMouseOut(String inValue) |
SvgPath |
setOnMouseOver(String inValue) |
SvgPath |
setStroke(Color inColor) |
SvgPath |
setStrokeWidth(int inValue) |
SvgPath |
setStyle(String inValue) |
SvgPath |
setTransform(String inValue) |
String |
toString() |
addClass, adjustBoundsForTransform, applyTransform, applyTransforms, drawSubnodes, getAdjustedFont, getCenterPoint, getClassAttribute, getCssTransform, getG2Composite, getG2Paint, getG2Stroke, getG2StrokeColor, getTransform, initFromXMLTag, rangeCheckOpacityValue, setClass, setFilter, setId, setOnClick, setOnMouseUp, setPosition, setTitle
addSubtag, addSubtag, addXMLNamespaceDeclaration, clone, compareTo, equals, findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getEndTag, getNamespace, getQualifiedTagName, getStartTag, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setDefaultXMLNamespaceDeclaration, setNamespace, setSortAttributesBeforeWriting, setTagName, setTagName, sortAttributes, toIndentedXML, toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML, toXML, useDoubleQuotes, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getContentPlusSubtagList, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagById, getRequiredSubtagById, getRequiredSubtagByName, getRequiredSubtagByName, getSubtagByAttribute, getSubtagByAttribute, getSubtags, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByAttribute, getSubtagsByClass, getSubtagsByClass, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, hasContentOrSubtags, indexOf, innerHTML, removeSubtag, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByAttribute, removeSubtagsByClass, removeSubtagsByClass, removeSubtagsByName, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCenterPoint, getTransform, setPosition
findNodesByAttributeValue, findNodesByAttributeValue, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getNamespace, getTagName, hasAttribute, hasAttribute, hasAttributes, isEmptyTag, removeAttribute, removeAttribute, replaceCharacterEntities, setAttribute, setAttribute, setAttribute, setAttributes, setNamespace, setTagName, setTagName, toIndentedXML, verifyTagName, verifyTagName, verifyTagName, verifyTagName
addContent, addContentWithoutEscaping, addSubtag, addSubtags, clearContent, clearSubtags, getContent, getNextSibling, getOptionalSubtagByName, getOptionalSubtagByName, getParentNode, getPreviousSibling, getRequiredSubtagByName, getRequiredSubtagByName, getSubtags, getSubtagsByName, getSubtagsByName, getSubtagsByName, getSubtagsByName, getTotalTagCount, getUnescapedContent, getXMLNodeSubtags, hasContent, indexOf, removeSubtag, removeSubtagsByName, removeSubtagsByName, setContent, setParentNode, setSubtags
clone, toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXML
public SvgPath()
public SvgPath setStrokeWidth(int inValue)
public SvgPath addStyle(String inValue)
addStyle
in interface SvgNode
addStyle
in class AbstractSvgNode
public SvgPath setStyle(String inValue)
setStyle
in class AbstractSvgNode
public SvgPath setTransform(String inValue)
setTransform
in interface SvgNode
setTransform
in class AbstractSvgNode
public SvgPath setOnMouseOver(String inValue)
setOnMouseOver
in class AbstractSvgNode
public SvgPath setOnMouseOut(String inValue)
setOnMouseOut
in class AbstractSvgNode
public SvgPath setOnMouseDown(String inValue)
setOnMouseDown
in class AbstractSvgNode
public SvgPath addPathCommand(SvgPathCmd inValue)
public List<SvgPathCmd> getPathCommands()
public Rectangle getBoundsBox()
getBoundsBox
in interface SvgNode
getBoundsBox
in class AbstractSvgNode
public void draw(Graphics2D g2)
draw
in class AbstractSvgNode
public static SvgPath generateCurlyBracket(Point2D inPoint1, Point2D inPoint2, int inWidth)
inPoint1
- "from" pointinPoint2
- "to" pointinWidth
- width of the curly brace