Package com.storedobject.svg
Class TransformedNode
java.lang.Object
com.storedobject.svg.Node
com.storedobject.svg.TransformedNode
- Direct Known Subclasses:
DuplicatedNode,MovableNode
A node that is transformed using a
Transformer.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.svg.Node
Node.Anchor, Node.Margin, Node.Mover, Node.Scale, Node.ScaleTo -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTransformedNode(Node embedded) Constructor.TransformedNode(Node embedded, Transformer transformer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild()Build the content.final booleanisBuilt()Check if the content is built.transform(Transformer transformer) Set the transformer.Methods inherited from class com.storedobject.svg.Node
add, add, add, createDocument, duplicate, equals, escapeXml, flipHorizontally, flipVertically, getCoordinates, getHeight, getId, getSvg, getWidth, getX1, getX2, getY1, getY2, hashCode, ID, IDValue, margin, margin, margin, moveTo, moveTo, scale, scale, scaleTo, scaleToHeight, scaleToWidth, toString, toString
-
Constructor Details
-
TransformedNode
-
TransformedNode
Constructor.- Parameters:
embedded- The node to transform.transformer- The transformer to use.
-
-
Method Details
-
transform
Set the transformer.Note: If the transformer is already set, it will not be changed and this call is ignored.
- Parameters:
transformer- Transformer.- Returns:
- Self.
-
build
-
isBuilt
-