public class SvgPath extends AbstractSvgNode implements SvgNode
XMLContainerImpl.sModemContentAndSubtagList| 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, setTitleaddSubtag, 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, verifyTagNameaddContent, 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, setSubtagsfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCenterPoint, getTransform, setPositionfindNodesByAttributeValue, 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, verifyTagNameaddContent, 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, setSubtagsclone, toIndentedXML, toIndentedXML, toIndentedXML, toXML, toXML, toXMLpublic SvgPath()
public SvgPath setStrokeWidth(int inValue)
public SvgPath addStyle(String inValue)
addStyle in interface SvgNodeaddStyle in class AbstractSvgNodepublic SvgPath setStyle(String inValue)
setStyle in class AbstractSvgNodepublic SvgPath setTransform(String inValue)
setTransform in interface SvgNodesetTransform in class AbstractSvgNodepublic SvgPath setOnMouseOver(String inValue)
setOnMouseOver in class AbstractSvgNodepublic SvgPath setOnMouseOut(String inValue)
setOnMouseOut in class AbstractSvgNodepublic SvgPath setOnMouseDown(String inValue)
setOnMouseDown in class AbstractSvgNodepublic SvgPath addPathCommand(SvgPathCmd inValue)
public List<SvgPathCmd> getPathCommands()
public Rectangle getBoundsBox()
getBoundsBox in interface SvgNodegetBoundsBox in class AbstractSvgNodepublic void draw(Graphics2D g2)
draw in class AbstractSvgNodepublic static SvgPath generateCurlyBracket(Point2D inPoint1, Point2D inPoint2, int inWidth)
inPoint1 - "from" pointinPoint2 - "to" pointinWidth - width of the curly brace
jataylor@hairyfatguy.com