|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPeService
The interface IPeService provides convenient services for the creation and layout of pictogram elements.
Method Summary | |
---|---|
void |
deletePictogramElement(PictogramElement pe)
Deletes the given pictogram element (and with it all aggregated elements!). |
PictogramElement |
getActiveContainerPe(GraphicsAlgorithm ga)
Gets the active container pe. |
PictogramElement |
getActiveContainerPe(PictogramElement pictogramElement)
Gets the active container pe. |
List<Connection> |
getAllConnections(Anchor anchor)
Returns all connections of an anchor. |
List<Connection> |
getAllConnections(AnchorContainer anchorContainer)
Returns all connections of an anchor container. |
Collection<PictogramElement> |
getAllContainedPictogramElements(PictogramElement pe)
Gets the all contained pictogram elements. |
Collection<Shape> |
getAllContainedShapes(ContainerShape cs)
Returns all the contained container shapes. |
Anchor |
getChopboxAnchor(AnchorContainer anchorContainer)
Gets the chopbox anchor. |
Diagram |
getDiagramForAnchor(Anchor anchor)
Returns the diagram for the given anchor. |
Diagram |
getDiagramForPictogramElement(PictogramElement pe)
Returns the diagram for the given pictogram element. |
Diagram |
getDiagramForShape(Shape shape)
Returns the diagram for the given shape. |
EObject[] |
getElementsNotInDiagram(EObject[] elements,
Diagram diagram)
From the given elements, returns all elements that are not linked by a PictogramLink in the given Diagram. |
List<Connection> |
getIncomingConnections(AnchorContainer anchorContainer)
Returns the incoming connections of an anchor container. |
Object[] |
getLinkedPictogramElements(EObject[] elements,
Diagram diagram)
Return all the pictogram elements of the given Diagram which have at least one link to one of the given elements. |
List<Connection> |
getOutgoingConnections(AnchorContainer anchorContainer)
Returns the outgoing connections of an anchor container. |
Collection<PictogramElement> |
getPictogramElementChildren(PictogramElement pe)
Returns a pictogram element's children. |
PictogramElement |
getPictogramElementParent(PictogramElement pe)
Gets the pictogram element parent. |
Property |
getProperty(PropertyContainer propertyContainer,
String key)
Returns the property of a given property container for a specific key. |
String |
getPropertyValue(PropertyContainer propertyContainer,
String key)
Returns the first element of the property values of a given property container for a specific key. |
void |
moveBendpoints(IExecutionInfo executionInfo)
Move bendpoints. |
boolean |
removeProperty(PropertyContainer propertyContainer,
String key)
Removes the property of a given property container for a specific key. |
void |
sendToBack(Shape shape)
Reorders parent's children to make the given shape the backmost one. |
void |
sendToFront(Shape shape)
Reorders parent's children to make the given shape the frontmost one. |
void |
setPropertyValue(PropertyContainer propertyContainer,
String key,
String value)
Sets/modifies the property's value of a given property container for a specific key. |
Methods inherited from interface org.eclipse.graphiti.services.IPeCreateService |
---|
createBoxRelativeAnchor, createChopboxAnchor, createCompositeConnection, createConnectionDecorator, createContainerShape, createCurvedConnection, createDiagram, createDiagram, createDiagram, createFixPointAnchor, createFreeFormConnection, createManhattanConnection, createShape |
Methods inherited from interface org.eclipse.graphiti.services.IPeLayoutService |
---|
getConnectionMidpoint, getGaBoundsForAnchor, getLocationInfo, getLocationRelativeToDiagram, getLocationRelativeToDiagram |
Method Detail |
---|
void deletePictogramElement(PictogramElement pe)
pe
- the pictogram element to deletePictogramElement getActiveContainerPe(GraphicsAlgorithm ga)
ga
- the ga
PictogramElement getActiveContainerPe(PictogramElement pictogramElement)
pictogramElement
- the pictogram element
List<Connection> getAllConnections(Anchor anchor)
anchor
- the anchor
List<Connection> getAllConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor container
Collection<PictogramElement> getAllContainedPictogramElements(PictogramElement pe)
pe
- the pe
Collection<Shape> getAllContainedShapes(ContainerShape cs)
cs
- the container shape
Anchor getChopboxAnchor(AnchorContainer anchorContainer)
anchorContainer
- the anchor container
Diagram getDiagramForAnchor(Anchor anchor)
anchor
- the anchor
Diagram getDiagramForPictogramElement(PictogramElement pe)
pe
- the pe
Diagram getDiagramForShape(Shape shape)
shape
- the shape
EObject[] getElementsNotInDiagram(EObject[] elements, Diagram diagram)
elements
- the elementsdiagram
- the diag
List<Connection> getIncomingConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor container
Object[] getLinkedPictogramElements(EObject[] elements, Diagram diagram)
elements
- the elementsdiagram
- the diag
List<Connection> getOutgoingConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor container
Collection<PictogramElement> getPictogramElementChildren(PictogramElement pe)
pe
- the given pictogram element
PictogramElement getPictogramElementParent(PictogramElement pe)
pe
- the pe
Property getProperty(PropertyContainer propertyContainer, String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property key
String getPropertyValue(PropertyContainer propertyContainer, String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property key
void moveBendpoints(IExecutionInfo executionInfo)
executionInfo
- the execution infoboolean removeProperty(PropertyContainer propertyContainer, String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property key
void sendToBack(Shape shape)
shape
- shape to make the backmost onevoid sendToFront(Shape shape)
shape
- shape to make the frontmost onevoid setPropertyValue(PropertyContainer propertyContainer, String key, String value)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property keyvalue
- The new property value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |