org.jbpm.designer.server.diagram
Constructor and Description |
---|
Shape(String resourceId)
set a new id for the shape
|
Shape(String resourceId,
StencilType stencil)
Constructs a new shape with id and stencil
|
Modifier and Type | Method and Description |
---|---|
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
|
public Shape(String resourceId, StencilType stencil)
resourceId
- unique shape id, generated by the editorstencil
- StencilType with stencilIdpublic Shape(String resourceId)
resourceId
- public Shape getParent()
public void setParent(Shape parent)
parent
- the parent to setpublic 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 propertypublic 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 namepublic StencilType getStencil()
public void setStencil(StencilType stencil)
stencil
- the stencil to setpublic 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 appendpublic 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 void setGlossaryIds(ArrayList<String> glossaryIds)
glossaryIds
- the glossaryIds to setpublic boolean addGlossaryIds(String id)
public boolean addIncoming(Shape current)
public double getHeight()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.