public class SvgRect extends AbstractSvgNode implements SvgNode
XMLContainerImpl.sMode
mContentAndSubtagList
Constructor and Description |
---|
SvgRect() |
SvgRect(Rectangle inRect) |
SvgRect(Rectangle2D inRect) |
SvgRect(XMLTag inXMLTag) |
Modifier and Type | Method and Description |
---|---|
SvgRect |
addStyle(String inValue) |
void |
draw(Graphics2D g2) |
Rectangle2D |
getBoundsBox() |
Float |
getHeight() |
Integer |
getRx() |
Integer |
getRy() |
Float |
getWidth() |
Float |
getX() |
Float |
getY() |
SvgRect |
setFill(Color inColor) |
SvgRect |
setFillOpacity(float inOpacity)
Specifies a value for the fill opacity of this rectangle.
|
SvgRect |
setHeight(double inValue) |
SvgRect |
setHeight(float inValue) |
SvgRect |
setHeight(int inValue) |
SvgRect |
setOnMouseDown(String inValue) |
SvgRect |
setOnMouseOut(String inValue) |
SvgRect |
setOnMouseOver(String inValue) |
SvgRect |
setOpacity(float inOpacity)
Specifies a value for the opacity of this rectangle (both its fill and stroke).
|
SvgRect |
setPosition(Point2D inValue)
Specifies the upper left corner of the bounding rectangle.
|
SvgRect |
setRx(int inValue) |
SvgRect |
setRy(int inValue) |
SvgRect |
setStroke(Color inColor) |
SvgRect |
setStrokeOpacity(float inOpacity)
Specifies a value for the stroke opacity of this rectangle.
|
SvgRect |
setStrokeWidth(int inValue) |
SvgRect |
setStyle(String inValue) |
SvgRect |
setTransform(String inValue) |
SvgRect |
setWidth(double inValue) |
SvgRect |
setWidth(float inValue) |
SvgRect |
setWidth(int inValue) |
String |
toString() |
addClass, adjustBoundsForTransform, applyTransform, applyTransforms, drawSubnodes, getAdjustedFont, getCenterPoint, getClassAttribute, getCssTransform, getG2Composite, getG2Paint, getG2Stroke, getG2StrokeColor, getTransform, initFromXMLTag, rangeCheckOpacityValue, setClass, setFilter, setId, setOnClick, setOnMouseUp, 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
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 SvgRect()
public SvgRect(Rectangle2D inRect)
public SvgRect setOpacity(float inOpacity)
inOpacity
- A numeric value between 0.0 (completely transparent) and 1.0 (completely opaque).public SvgRect setFillOpacity(float inOpacity)
inOpacity
- A numeric value between 0.0 (completely transparent) and 1.0 (completely opaque).public SvgRect setStrokeOpacity(float inOpacity)
inOpacity
- A numeric value between 0.0 (completely transparent) and 1.0 (completely opaque).public SvgRect setStrokeWidth(int inValue)
public SvgRect addStyle(String inValue)
addStyle
in interface SvgNode
addStyle
in class AbstractSvgNode
public SvgRect setStyle(String inValue)
setStyle
in class AbstractSvgNode
public SvgRect setTransform(String inValue)
setTransform
in interface SvgNode
setTransform
in class AbstractSvgNode
public SvgRect setOnMouseOver(String inValue)
setOnMouseOver
in class AbstractSvgNode
public SvgRect setOnMouseOut(String inValue)
setOnMouseOut
in class AbstractSvgNode
public SvgRect setOnMouseDown(String inValue)
setOnMouseDown
in class AbstractSvgNode
public SvgRect setPosition(Point2D inValue)
AbstractSvgNode
setPosition
in interface SvgNode
setPosition
in class AbstractSvgNode
public Rectangle2D getBoundsBox()
getBoundsBox
in interface SvgNode
getBoundsBox
in class AbstractSvgNode
public void draw(Graphics2D g2)
draw
in class AbstractSvgNode
jataylor@hairyfatguy.com