Constructor and Description |
---|
Diagram(String resourceId) |
Diagram(String resourceId,
StencilType stencil) |
Diagram(String resourceId,
StencilType stencil,
StencilSet stencilset)
Normal shape constructor with additional stencilset
|
Modifier and Type | Method and Description |
---|---|
boolean |
addShapes(Shape shape)
Add an additional shape to the diagram
|
boolean |
addSsextension(String ssExt)
Add an additional SSExtension
|
String |
getJSON() |
Shape |
getParent() |
ArrayList<Shape> |
getShapes()
returns all shapes of a diagram
|
ArrayList<String> |
getSsextensions()
Gives an ArrayList
|
StencilSet |
getStencilset()
Gives the stenilset of a diagram
|
void |
setShapes(ArrayList<Shape> shapes)
set a new ArrayList
|
void |
setSsextensions(ArrayList<String> ssextensions)
set a new StencilSet-Extension ArrayList
|
void |
setStencilset(StencilSet stencilset)
Set a new StencilSet
|
addGlossaryIds, addIncoming, addOutgoing, equals, getBounds, getChildShapes, getDockers, getGlossaryIds, getHeight, getIncomings, getLowerRight, getOutgoing, getOutgoings, getProperties, getProperty, getResourceId, getStencil, getStencilId, getTarget, getUpperLeft, getWidth, hashCode, putProperty, setBounds, setChildShapes, setDockers, setGlossaryIds, setIncomings, setOutgoing, setOutgoings, setParent, setProperties, setResourceId, setStencil, setTarget
public Diagram(String resourceId, StencilType stencil, StencilSet stencilset)
resourceId
- resourceId of the diagram shapestencil
- stencil usually Diagramstencilset
- StencilSet with url and namespacepublic Diagram(String resourceId, StencilType stencil)
resourceId
- stencil
- public Diagram(String resourceId)
resourceId
- public StencilSet getStencilset()
public void setStencilset(StencilSet stencilset)
stencilset
- the stencilset to set type StencilSetpublic ArrayList<String> getSsextensions()
public void setSsextensions(ArrayList<String> ssextensions)
ssextensions
- the ssextensions to setpublic boolean addSsextension(String ssExt)
ssExt
- the ssextension to setpublic void setShapes(ArrayList<Shape> shapes)
shapes
- the shapes to setpublic boolean addShapes(Shape shape)
shape
- the shape to setpublic String getJSON()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.