public interface IPeService extends IPeCreateService, IPeLayoutService
Modifier and Type | Method and Description |
---|---|
void |
deletePictogramElement(PictogramElement pe)
Deletes the given pictogram element (and with it all aggregated
elements!).
|
void |
deletePictogramElementIgnoringCrossReferences(java.lang.Iterable<PictogramElement> pes)
Deletes the given pictogram elements (and with it all aggregated
elements!).
|
void |
deletePictogramElementIgnoringCrossReferences(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.
|
java.util.List<Connection> |
getAllConnections(Anchor anchor)
Returns all connections of an anchor.
|
java.util.List<Connection> |
getAllConnections(AnchorContainer anchorContainer)
Returns all connections of an anchor container.
|
java.util.Collection<PictogramElement> |
getAllContainedPictogramElements(PictogramElement pe)
Gets the all contained pictogram elements.
|
java.util.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.
|
org.eclipse.emf.ecore.EObject[] |
getElementsNotInDiagram(org.eclipse.emf.ecore.EObject[] elements,
Diagram diagram)
From the given elements, returns all elements that are not linked by a
PictogramLink in the given Diagram.
|
java.util.List<Connection> |
getIncomingConnections(AnchorContainer anchorContainer)
Returns the incoming connections of an anchor container.
|
java.lang.Object[] |
getLinkedPictogramElements(org.eclipse.emf.ecore.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.
|
java.util.List<Connection> |
getOutgoingConnections(AnchorContainer anchorContainer)
Returns the outgoing connections of an anchor container.
|
java.util.Collection<PictogramElement> |
getPictogramElementChildren(PictogramElement pe)
Returns a pictogram element's children.
|
PictogramElement |
getPictogramElementParent(PictogramElement pe)
Gets the pictogram element parent.
|
Property |
getProperty(PropertyContainer propertyContainer,
java.lang.String key)
Returns the property of a given property container for a specific key.
|
java.lang.String |
getPropertyValue(PropertyContainer propertyContainer,
java.lang.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,
java.lang.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,
java.lang.String key,
java.lang.String value)
Sets/modifies the property's value of a given property container for a
specific key.
|
createBoxRelativeAnchor, createChopboxAnchor, createCompositeConnection, createConnectionDecorator, createContainerShape, createCurvedConnection, createDiagram, createDiagram, createDiagram, createDiagram, createFixPointAnchor, createFreeFormConnection, createManhattanConnection, createShape
getConnectionMidpoint, getGaBoundsForAnchor, getLocationInfo, getLocationRelativeToDiagram, getLocationRelativeToDiagram
void deletePictogramElement(PictogramElement pe)
deletePictogramElementIgnoringCrossReferences(Iterable)
and
deletePictogramElementIgnoringCrossReferences(PictogramElement)
instead.pe
- The pictogram element to deletevoid deletePictogramElementIgnoringCrossReferences(PictogramElement pe)
deletePictogramElement(PictogramElement)
. In case you need to
follow cross references as well and update them you will need to use
deletePictogramElement(PictogramElement)
instead.pe
- The pictogram element to deletevoid deletePictogramElementIgnoringCrossReferences(java.lang.Iterable<PictogramElement> pes)
deletePictogramElement(PictogramElement)
. In case you need to
follow cross references as well and update them you will need to use
deletePictogramElement(PictogramElement)
instead.pes
- The pictogram elements to deletePictogramElement getActiveContainerPe(GraphicsAlgorithm ga)
ga
- the gaPictogramElement getActiveContainerPe(PictogramElement pictogramElement)
pictogramElement
- the pictogram elementjava.util.List<Connection> getAllConnections(Anchor anchor)
anchor
- the anchorjava.util.List<Connection> getAllConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor containerjava.util.Collection<PictogramElement> getAllContainedPictogramElements(PictogramElement pe)
pe
- the pejava.util.Collection<Shape> getAllContainedShapes(ContainerShape cs)
cs
- the container shapeAnchor getChopboxAnchor(AnchorContainer anchorContainer)
anchorContainer
- the anchor containerDiagram getDiagramForAnchor(Anchor anchor)
anchor
- the anchorDiagram getDiagramForPictogramElement(PictogramElement pe)
pe
- the peDiagram getDiagramForShape(Shape shape)
shape
- the shapeorg.eclipse.emf.ecore.EObject[] getElementsNotInDiagram(org.eclipse.emf.ecore.EObject[] elements, Diagram diagram)
elements
- the elementsdiagram
- the diagjava.util.List<Connection> getIncomingConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor containerjava.lang.Object[] getLinkedPictogramElements(org.eclipse.emf.ecore.EObject[] elements, Diagram diagram)
elements
- the elementsdiagram
- the diagjava.util.List<Connection> getOutgoingConnections(AnchorContainer anchorContainer)
anchorContainer
- the anchor containerjava.util.Collection<PictogramElement> getPictogramElementChildren(PictogramElement pe)
pe
- the given pictogram elementPictogramElement getPictogramElementParent(PictogramElement pe)
pe
- the peProperty getProperty(PropertyContainer propertyContainer, java.lang.String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property keyjava.lang.String getPropertyValue(PropertyContainer propertyContainer, java.lang.String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property keyvoid moveBendpoints(IExecutionInfo executionInfo)
executionInfo
- the execution infoboolean removeProperty(PropertyContainer propertyContainer, java.lang.String key)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property keyvoid sendToBack(Shape shape)
shape
- shape to make the backmost onevoid sendToFront(Shape shape)
shape
- shape to make the frontmost onevoid setPropertyValue(PropertyContainer propertyContainer, java.lang.String key, java.lang.String value)
propertyContainer
- The property container (e.g. PictogramElement or
GraphicsAlgorithm)key
- The property keyvalue
- The new property value