|
jBPM Designer - Backend 6.0.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.designer.server.diagram.Shape
public class Shape
Constructor Summary | |
---|---|
Shape(String resourceId)
set a new id for the shape |
|
Shape(String resourceId,
StencilType stencil)
Constructs a new shape with id and stencil |
Method Summary | |
---|---|
boolean |
addGlossaryIds(String id)
|
boolean |
addIncoming(Shape current)
|
boolean |
addOutgoing(Shape out)
Adds a new shape to the outgoings |
boolean |
equals(Object obj)
|
Bounds |
getBounds()
Returns the bounds of a shape. |
ArrayList<Shape> |
getChildShapes()
|
ArrayList<Point> |
getDockers()
Gives the point list of dockers for a shape, dockers usually appears on edges |
ArrayList<String> |
getGlossaryIds()
|
double |
getHeight()
|
ArrayList<Shape> |
getIncomings()
|
Point |
getLowerRight()
|
ArrayList<Shape> |
getOutgoing()
Deprecated. |
ArrayList<Shape> |
getOutgoings()
Give an array of outgoing shapes |
Shape |
getParent()
|
HashMap<String,String> |
getProperties()
return a HashMap with all properties, name as key, value as value |
String |
getProperty(String name)
Gives the value of the property with the given name |
String |
getResourceId()
returns the unique shape id, generated by the editor |
StencilType |
getStencil()
Gives the Stencil object of the shape |
String |
getStencilId()
Gives the stencil id of an object |
Shape |
getTarget()
Gives the target of shape, which defined another associated shape |
Point |
getUpperLeft()
|
double |
getWidth()
|
int |
hashCode()
|
String |
putProperty(String key,
String value)
changes an existing property with the same name, or adds a new one |
void |
setBounds(Bounds bounds)
Set a new bounds for a shape |
void |
setChildShapes(ArrayList<Shape> childShapes)
|
void |
setDockers(ArrayList<Point> dockers)
set a ArrayList with all attached dockers for a shape, dockers usually appears on edges A docker is a point on the canvas |
void |
setGlossaryIds(ArrayList<String> glossaryIds)
|
void |
setIncomings(ArrayList<Shape> cur)
|
void |
setOutgoing(ArrayList<Shape> outgoing)
Deprecated. |
void |
setOutgoings(ArrayList<Shape> outgoings)
Set a new array of outgoing shapes |
void |
setParent(Shape parent)
|
void |
setProperties(HashMap<String,String> properties)
set a new property hash map |
void |
setResourceId(String resourceId)
set unique shape id, usually generated by the editor |
void |
setStencil(StencilType stencil)
Set a new Stencil Object for the shape |
void |
setTarget(Shape target)
Set a new target shape for a shape |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Shape(String resourceId, StencilType stencil)
resourceId
- unique shape id, generated by the editorstencil
- StencilType with stencilIdpublic Shape(String resourceId)
resourceId
- Method Detail |
---|
public Shape getParent()
public void setParent(Shape parent)
parent
- the parent to setpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String getStencilId()
Stencil
getStencilId
in interface Stencil
public String getResourceId()
public void setResourceId(String resourceId)
resourceId
- the resourceId to setpublic String getProperty(String name)
name
- name of the property
public HashMap<String,String> getProperties()
public void setProperties(HashMap<String,String> properties)
properties
- the properties to setpublic String putProperty(String key, String value)
key
- property name with which the specified value is to be
associatedvalue
- value to be associated with the specified property name
public StencilType getStencil()
public void setStencil(StencilType stencil)
stencil
- the stencil to setpublic ArrayList<Shape> getChildShapes()
public void setChildShapes(ArrayList<Shape> childShapes)
childShapes
- the childShapes to set@Deprecated public ArrayList<Shape> getOutgoing()
@Deprecated public void setOutgoing(ArrayList<Shape> outgoing)
public ArrayList<Shape> getOutgoings()
public void setOutgoings(ArrayList<Shape> outgoings)
outgoings
- the outgoing shapes to setpublic boolean addOutgoing(Shape out)
outgoing
- shape to append
public ArrayList<Point> getDockers()
public void setDockers(ArrayList<Point> dockers)
dockers
- the list of points to setpublic Shape getTarget()
public void setTarget(Shape target)
target
- the target shape to setpublic Bounds getBounds()
public void setBounds(Bounds bounds)
bounds
- the bounds to setpublic Point getUpperLeft()
getUpperLeft
in interface Bounded
public Point getLowerRight()
getLowerRight
in interface Bounded
public ArrayList<String> getGlossaryIds()
public void setGlossaryIds(ArrayList<String> glossaryIds)
glossaryIds
- the glossaryIds to setpublic boolean addGlossaryIds(String id)
public boolean addIncoming(Shape current)
public ArrayList<Shape> getIncomings()
public void setIncomings(ArrayList<Shape> cur)
public double getHeight()
getHeight
in interface Bounded
public double getWidth()
getWidth
in interface Bounded
|
jBPM Designer - Backend 6.0.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |