Package org.jbpm.designer.server.diagram
Class Diagram
- java.lang.Object
-
- org.jbpm.designer.server.diagram.Shape
-
- org.jbpm.designer.server.diagram.Diagram
-
-
Constructor Summary
Constructors Constructor Description Diagram(String resourceId)
Diagram(String resourceId, StencilType stencil)
Diagram(String resourceId, StencilType stencil, StencilSet stencilset)
Normal shape constructor with additional stencilset
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addShapes(Shape shape)
Add an additional shape to the diagramboolean
addSsextension(String ssExt)
Add an additional SSExtensionString
getJSON()
Shape
getParent()
ArrayList<Shape>
getShapes()
returns all shapes of a diagramArrayList<String>
getSsextensions()
Gives an ArrayListwhich contains all StencilSet- Extension identifier StencilSet
getStencilset()
Gives the stenilset of a diagramvoid
setShapes(ArrayList<Shape> shapes)
set a new ArrayListvoid
setSsextensions(ArrayList<String> ssextensions)
set a new StencilSet-Extension ArrayListvoid
setStencilset(StencilSet stencilset)
Set a new StencilSet-
Methods inherited from class org.jbpm.designer.server.diagram.Shape
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
-
-
-
-
Constructor Detail
-
Diagram
public Diagram(String resourceId, StencilType stencil, StencilSet stencilset)
Normal shape constructor with additional stencilset- Parameters:
resourceId
- resourceId of the diagram shapestencil
- stencil usually Diagramstencilset
- StencilSet with url and namespace
-
Diagram
public Diagram(String resourceId, StencilType stencil)
- Parameters:
resourceId
-stencil
-
-
Diagram
public Diagram(String resourceId)
- Parameters:
resourceId
-
-
-
Method Detail
-
getStencilset
public StencilSet getStencilset()
Gives the stenilset of a diagram- Returns:
- the stencilset
-
setStencilset
public void setStencilset(StencilSet stencilset)
Set a new StencilSet- Parameters:
stencilset
- the stencilset to set type StencilSet
-
getSsextensions
public ArrayList<String> getSsextensions()
Gives an ArrayListwhich contains all StencilSet- Extension identifier - Returns:
- the ssextensions
-
setSsextensions
public void setSsextensions(ArrayList<String> ssextensions)
set a new StencilSet-Extension ArrayList- Parameters:
ssextensions
- the ssextensions to set
-
addSsextension
public boolean addSsextension(String ssExt)
Add an additional SSExtension- Parameters:
ssExt
- the ssextension to set
-
setShapes
public void setShapes(ArrayList<Shape> shapes)
set a new ArrayList- Parameters:
shapes
- the shapes to set
-
addShapes
public boolean addShapes(Shape shape)
Add an additional shape to the diagram- Parameters:
shape
- the shape to set
-
getJSON
public String getJSON()
-
-