public class SVGRoot extends Group
| Modifier and Type | Field and Description |
|---|---|
static int |
PA_X_MAX |
static int |
PA_X_MID |
static int |
PA_X_MIN |
static int |
PA_X_NONE |
static int |
PA_Y_MAX |
static int |
PA_Y_MID |
static int |
PA_Y_MIN |
static int |
PA_Y_NONE |
static int |
PS_MEET |
static int |
PS_SLICE |
static String |
TAG_NAME |
strokeWidthScalarVECTOR_EFFECT_NON_SCALING_STROKE, VECTOR_EFFECT_NONEchildren, cssClass, diagram, id, inlineStyles, parent, presAttribs, serialVersionUID, SVG_NS, trackManager, xmlBase| Constructor and Description |
|---|
SVGRoot()
Creates a new instance of SVGRoot
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Called by internal processes to rebuild the geometry of this node from
it's presentation attributes, style attributes and animated tracks.
|
AffineTransform |
calcViewportTransform(Rectangle targetViewport) |
void |
doPick(Point2D point,
boolean boundingBox,
List<List<SVGElement>> retVec) |
void |
doPick(Rectangle2D pickArea,
AffineTransform ltw,
boolean boundingBox,
List<List<SVGElement>> retVec) |
protected void |
doRender(Graphics2D g) |
Rectangle2D |
getBoundingBox()
Retrieves the cached bounding box of this group
|
float |
getDeviceHeight() |
Rectangle2D |
getDeviceRect(Rectangle2D rect) |
float |
getDeviceWidth() |
SVGRoot |
getRoot() |
Shape |
getShape()
Retrieves the cached bounding box of this group
|
StyleSheet |
getStyleSheet() |
String |
getTagName() |
protected void |
prepareViewport() |
void |
renderToViewport(Graphics2D g) |
void |
setStyleSheet(StyleSheet styleSheet) |
boolean |
updateTime(double curTime)
Updates all attributes in this diagram associated with a time event.
|
calcBoundingBox, calcShape, loaderAddChild, outsideClipincludeStrokeInBounds, renderShapebeginLayer, finishLayer, renderboundsToParent, getXForm, shapeToParentaddAttribute, buildPath, getChild, getChild, getChildren, getId, getInlineAttributes, getNumChildren, getParent, getParentContext, getPath, getPres, getPresAbsolute, getPresentationAttributes, getStyle, getStyle, getStyle, getStyleAbsolute, getXMLBase, hasAttribute, indexOfChild, lerp, loaderAddText, loaderEndElement, loaderStartElement, parsePathList, parseSingleTransform, parseTransform, popParentContext, pushParentContext, removeAttribute, removeChild, setAttribute, setDiagram, swapChildrenpublic static final String TAG_NAME
public static final int PA_X_NONE
public static final int PA_X_MIN
public static final int PA_X_MID
public static final int PA_X_MAX
public static final int PA_Y_NONE
public static final int PA_Y_MIN
public static final int PA_Y_MID
public static final int PA_Y_MAX
public static final int PS_MEET
public static final int PS_SLICE
public String getTagName()
getTagName in class Grouppublic void build()
throws SVGException
SVGElementbuild in class RenderableElementSVGExceptionpublic SVGRoot getRoot()
getRoot in class SVGElementprotected void prepareViewport()
public void renderToViewport(Graphics2D g) throws SVGException
SVGExceptionprotected void doRender(Graphics2D g) throws SVGException
doRender in class GroupSVGExceptionpublic AffineTransform calcViewportTransform(Rectangle targetViewport)
public void doPick(Rectangle2D pickArea, AffineTransform ltw, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
doPick in class GroupSVGExceptionpublic void doPick(Point2D point, boolean boundingBox, List<List<SVGElement>> retVec) throws SVGException
doPick in class GroupSVGExceptionpublic Shape getShape()
Grouppublic Rectangle2D getBoundingBox() throws SVGException
GroupgetBoundingBox in class GroupSVGExceptionpublic float getDeviceWidth()
public float getDeviceHeight()
public Rectangle2D getDeviceRect(Rectangle2D rect)
public boolean updateTime(double curTime)
throws SVGException
updateTime in class GroupSVGExceptionpublic StyleSheet getStyleSheet()
public void setStyleSheet(StyleSheet styleSheet)
styleSheet - the styleSheet to setCopyright © 2022. All rights reserved.