|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPeCreateService
The interface IPeCreateService provides services for the creation of all available pictogram elements. E.g. Shapes, Connections, Anchors, ...
Method Summary | |
---|---|
BoxRelativeAnchor |
createBoxRelativeAnchor(AnchorContainer anchorContainer)
Creates a box relative anchor inside the given anchor container. |
ChopboxAnchor |
createChopboxAnchor(AnchorContainer anchorContainer)
Creates a chop box anchor inside the given anchor container. |
ConnectionDecorator |
createConnectionDecorator(Connection connection,
boolean active,
double location,
boolean isRelative)
Creates a connection decorator and adds it to the given connection. |
ContainerShape |
createContainerShape(ContainerShape parentContainerShape,
boolean active)
Creates a container shape inside the given parent container shape. |
Diagram |
createDiagram(String diagramTypeId,
String diagramName,
boolean snap)
Creates a diagram. |
Diagram |
createDiagram(String diagramTypeId,
String diagramName,
int gridUnit,
boolean snap)
Creates a diagram. |
Diagram |
createDiagram(String diagramTypeId,
String diagramName,
int horizontalGridUnit,
int verticalGridUnit,
boolean snap)
Creates a diagram. |
FixPointAnchor |
createFixPointAnchor(AnchorContainer anchorContainer)
Creates a fix point anchor inside the given anchor container. |
FreeFormConnection |
createFreeFormConnection(Diagram diagram)
Creates a free form connection inside the given diagram. |
ManhattanConnection |
createManhattanConnection(Diagram diagram)
Creates a manhattan connection inside the given diagram. |
Shape |
createShape(ContainerShape parentContainerShape,
boolean active)
Creates a shape inside the given parent container shape. |
Method Detail |
---|
BoxRelativeAnchor createBoxRelativeAnchor(AnchorContainer anchorContainer)
anchorContainer
- the anchors parent
ChopboxAnchor createChopboxAnchor(AnchorContainer anchorContainer)
anchorContainer
- the anchors parent
ConnectionDecorator createConnectionDecorator(Connection connection, boolean active, double location, boolean isRelative)
connection
- the connectionactive
- TRUE, if decorator is active, FALSE otherwiselocation
- location of the decorator (must be between 0 and 1)isRelative
- true if the decorator should be positioned relative to the
connection's midpoint
ContainerShape createContainerShape(ContainerShape parentContainerShape, boolean active)
parentContainerShape
- the parent container shapeactive
- true
, if the created shape should be active,
false
otherwise. An active shape can be selected
in the diagram editor and it is also relevant for layouting:
an active shape opens a coordinate system which can be used
for layouting its PictogramElement
children, while an
inactive one does not provide one but uses the coordinate
system of its next active parent for layouting its children.
By default all shapes should be active, inactive shapes should be used for grouping purposes or for linking a group of graphical objects to the domain world only.
For those familiar with GEF: only for active shapes a GEF EditPart will be created by the Graphiti framework, not for inactive ones.
Diagram createDiagram(String diagramTypeId, String diagramName, boolean snap)
diagramTypeId
- the type id of the diagramdiagramName
- the name of the diagramsnap
- TRUE enables snap to grid
createDiagram(String diagramTypeId, String diagramName, int
gridUnit, boolean snap)
Diagram createDiagram(String diagramTypeId, String diagramName, int gridUnit, boolean snap)
diagramTypeId
- the type id of the diagramdiagramName
- the name of the diagramgridUnit
- grid size (in both directions) in pixel; if 0 then no grid
will be drawnsnap
- TRUE enables snap to grid
Diagram createDiagram(String diagramTypeId, String diagramName, int horizontalGridUnit, int verticalGridUnit, boolean snap)
diagramTypeId
- the type id of the diagramdiagramName
- the name of the diagramhorizontalGridUnit
- horizontal grid size in pixel; if 0 then no grid will be drawnverticalGridUnit
- vertical grid size in pixel; if 0 then no grid will be drawnsnap
- TRUE enables snap to grid
FixPointAnchor createFixPointAnchor(AnchorContainer anchorContainer)
anchorContainer
- the anchors parent
FreeFormConnection createFreeFormConnection(Diagram diagram)
diagram
- the diagram
ManhattanConnection createManhattanConnection(Diagram diagram)
diagram
- the diagram
Shape createShape(ContainerShape parentContainerShape, boolean active)
parentContainerShape
- the parent container shapeactive
- true
, if the created shape should be active,
false
otherwise. An active shape can be selected
in the diagram editor and it is also relevant for layouting:
an active shape opens a coordinate system which can be used
for layouting its PictogramElement
children, while an
inactive one does not provide one but uses the coordinate
system of its next active parent for layouting its children.
By default all shapes should be active, inactive shapes should be used for grouping purposes or for linking a group of graphical objects to the domain world only.
For those familiar with GEF: only for active shapes a GEF EditPart will be created by the Graphiti framework, not for inactive ones.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |