public class ShapeSVG extends Shape
UNKNOWN_NAME
Constructor and Description |
---|
ShapeSVG()
Creates an empty SVG image with default properties: public,
located at (0,0) and not rotated.
|
ShapeSVG(boolean ispublic,
double x,
double y,
double rotation,
java.lang.String svg)
Creates an SVG image with specific properties
|
ShapeSVG(java.lang.String svg)
Creates an SVG image with default properties: public,
located at (0,0) and not rotated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double px,
double py)
|
java.lang.String |
getSVG()
Returns the current SVG image (XML format) or null
|
void |
removeSVG()
Removes SVG image (same effect as setting it to null).
|
void |
setSVG(java.lang.String svg)
Sets the new SVG image
|
canHandleClick, clone, executeUserAction, findSVGElement, getDrawMode, getGroup, getLevel, getName, getPresentable, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, postSVGShapeSpecificAttributes, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, resetSVGState, restoreOwner, setLevel, setPos, setPos, setPublic_xjal, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, postInitialize
public ShapeSVG()
public ShapeSVG(java.lang.String svg)
public ShapeSVG(boolean ispublic, double x, double y, double rotation, java.lang.String svg)
ispublic
- if true
, the shape is visible on container's presentationx
- the x coordinate of the SVG image upper left cornery
- the y coordinate of the SVG image upper left cornerrotation
- the rotation of the SVG image around Z-axis from +X to +Y, in radianssvg
- the SVG image (XML format)public java.lang.String getSVG()
public void setSVG(java.lang.String svg)
svg
- the new SVG image in XML format or null for no imagepublic void removeSVG()
public boolean contains(double px, double py)
Shape
Copyright © AnyLogic North America, LLC. All Rights Reserved.