Class CreateServiceImpl
- All Implemented Interfaces:
- ICreateService,- IGaCreateService,- IPeCreateService
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateBoxRelativeAnchor(AnchorContainer anchorContainer) Creates a box relative anchor inside the given anchor container.createChopboxAnchor(AnchorContainer anchorContainer) Creates a chop box anchor inside the given anchor container.createCompositeConnection(Diagram diagram) Creates a composite connection (a connection that is made of several other connections) inside the given diagram.createConnectionDecorator(Connection connection, boolean active, double location, boolean isRelative) Creates a connection decorator and adds it to the given connection.createContainerShape(ContainerShape parentContainerShape, boolean active) Creates a container shape inside the given parent container shape.createCurvedConnection(double[] controllPoints, Diagram diagram) Creates a curved connection (Bezier curve) inside the given diagram.createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer) Creates aMultiTextgraphics algorithm with the default font (Arial, size 8).createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Creates aMultiTextgraphics algorithm with the default font (Arial, size 8) and the given text.createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer) Creates aTextgraphics algorithm with the default font (Arial, size 8).createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Creates aTextgraphics algorithm with the default font (Arial, size 8) and the given text.createDiagram(String diagramTypeId, String diagramName) Creates a diagram.createDiagram(String diagramTypeId, String diagramName, boolean snap) Creates a diagram.createDiagram(String diagramTypeId, String diagramName, int gridUnit, boolean snap) Creates a diagram.createDiagram(String diagramTypeId, String diagramName, int horizontalGridUnit, int verticalGridUint, boolean snap) Creates a diagram.createEllipse(GraphicsAlgorithmContainer gaContainer) Creates anEllipsegraphics algorithm.createFixPointAnchor(AnchorContainer anchorContainer) Creates a fix point anchor inside the given anchor container.createFreeFormConnection(Diagram diagram) Creates a free form connection inside the given diagram.createImage(GraphicsAlgorithmContainer gaContainer, String imageId) Creates aImagegraphics algorithm with the given image id.Create an invisibleRectangle.createManhattanConnection(Diagram diagram) Creates a manhattan connection inside the given diagram.createMultiText(GraphicsAlgorithmContainer gaContainer) Creates aMultiTextgraphics algorithm.createMultiText(GraphicsAlgorithmContainer gaContainer, String value) Creates aMultiTextgraphics algorithm with the given text.createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aMultiTextgraphics algorithm with the given text and font.createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aMultiTextgraphics algorithm with the given text and font.createPlainEllipse(GraphicsAlgorithmContainer gaContainer) Creates a plainEllipsegraphics algorithm.createPlainImage(GraphicsAlgorithmContainer gaContainer, String imageId) Creates a plainImagegraphics algorithm with the given image id.createPlainMultiText(GraphicsAlgorithmContainer gaContainer) Creates a plainMultiTextgraphics algorithm.createPlainMultiText(GraphicsAlgorithmContainer gaContainer, String value) Creates a plainMultiTextgraphics algorithm with the given text.createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Creates the plainPlatformGraphicsAlgorithm.createPlainPolygon(GraphicsAlgorithmContainer gaContainer) Creates a plainPolygongraphics algorithm.createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates a plainPolygongraphics algorithm with the given points.createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates a plainPolygongraphics algorithm with the given points.createPlainPolygon(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates a plainPolygongraphics algorithm with the given points.createPlainPolyline(GraphicsAlgorithmContainer gaContainer) Creates a plainPolylinegraphics algorithm.createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates a plain polyline graphics algorithm with the given points.createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates a plainPolylinegraphics algorithm with the given points.createPlainPolyline(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates a plainPolylinegraphics algorithm with the given points.createPlainRectangle(GraphicsAlgorithmContainer gaContainer) Creates a plainRectanglegraphics algorithm.createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates a plainRoundedRectanglegraphics algorithm with the given corner dimensions.createPlainStyle(StyleContainer styleContainer, String id) Creates aStylewith the given id.createPlainText(GraphicsAlgorithmContainer gaContainer) Creates a plainTextgraphics algorithm with empty text.createPlainText(GraphicsAlgorithmContainer gaContainer, String value) Creates a plainTextgraphics algorithm with the given text.createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Creates thePlatformGraphicsAlgorithm.createPoint(int x, int y) Creates aPointdatatype for the given x/y coordinates.createPoint(int x, int y, int before, int after) Creates aPointdatatype for the given x/y coordinates.createPointList(int[] xy) Creates a list ofPointdatatypes for the given x/y coordinates.createPointList(int[] xy, int[] beforeAfter) Creates a list ofPointdatatypes for the given x/y coordinates.createPolygon(GraphicsAlgorithmContainer gaContainer) Creates aPolygongraphics algorithm.createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates aPolygongraphics algorithm with the given points.createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates aPolygongraphics algorithm with the given points.createPolygon(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates aPolygongraphics algorithm with the given points.createPolyline(GraphicsAlgorithmContainer gaContainer) Creates aPolylinegraphics algorithm.createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates aPolylinegraphics algorithm with the given points.createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates aPolylinegraphics algorithm with the given points.createPolyline(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates aPolylinegraphics algorithm with the given points.createRectangle(GraphicsAlgorithmContainer gaContainer) Creates aRectanglegraphics algorithm.createRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates aRoundedRectanglegraphics algorithm with the given corner dimensions.createShape(ContainerShape parentContainerShape, boolean active) Creates a shape inside the given parent container shape.createShiftedColor(Color color, int shift, Diagram diagram) Shifts theColordarker or lighter.createShiftedColor(IColorConstant colorConstant, int shift) Shifts theColorconstant darker or lighter.createStyle(StyleContainer styleContainer, String id) Creates aStylewith the given id.createText(GraphicsAlgorithmContainer gaContainer) Creates aTextgraphics algorithm with empty text.createText(GraphicsAlgorithmContainer gaContainer, String value) Creates aTextgraphics algorithm with the given text.createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aTextgraphics algorithm with the given text and font.createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aTextgraphics algorithm with the given text and font.createTextStyle(TextStyleRegion region) Creates aTextStyle.createTextStyle(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle) Creates aTextStylewith the given values.createTextStyleRegion(AbstractText abstractText) Creates aTextStyleRegion.createTextStyleRegion(AbstractText abstractText, int start, int end) Creates aTextStyleRegionwith the given bounds.protected IGaServiceprotected IPeService
- 
Constructor Details- 
CreateServiceImplpublic CreateServiceImpl()
 
- 
- 
Method Details- 
createDefaultMultiTextpublic MultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Description copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm with the default font (Arial, size 8) and the given text. Use this method only if you want to use the default text, otherwise useIGaCreateService.createMultiText(GraphicsAlgorithmContainer, String)The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: Arial
 size: 8
 italic: false
 bold: false- Specified by:
- createDefaultMultiTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram to manage the font
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new multiline text
 
- 
createDefaultMultiTextDescription copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm with the default font (Arial, size 8). Use this method only if you want to use the default text, otherwise useIGaCreateService.createMultiText(GraphicsAlgorithmContainer)The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value:""
 name: Arial
 size: 8
 italic: false
 bold: false- Specified by:
- createDefaultMultiTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram to manage the font
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new multiline text
 
- 
createDefaultTextpublic Text createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Description copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with the default font (Arial, size 8) and the given text. Use this method only if you want to use the default text, otherwise useIGaCreateService.createText(GraphicsAlgorithmContainer, String)The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: Arial
 size: 8
 italic: false
 bold: false- Specified by:
- createDefaultTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram to manage the font
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new text
 
- 
createDefaultTextDescription copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with the default font (Arial, size 8). Use this method only if you want to use the default text, otherwise useIGaCreateService.createText(GraphicsAlgorithmContainer)The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value:""
 name: Arial
 size: 8
 italic: false
 bold: false- Specified by:
- createDefaultTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram to manage the font
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new text
 
- 
createEllipseDescription copied from interface:IGaCreateServiceCreates anEllipsegraphics algorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createEllipsein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new ellipse
 
- 
createPlainEllipseDescription copied from interface:IGaCreateServiceCreates a plainEllipsegraphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainEllipsein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new ellipse
- See Also:
 
- 
createImageDescription copied from interface:IGaCreateServiceCreates aImagegraphics algorithm with the given image id.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: true
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 id: TEST
 stretchH: false
 stretchV: false
 proportional: false- Specified by:
- createImagein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- imageId- the image id
- Returns:
- the new image
 
- 
createPlainImageDescription copied from interface:IGaCreateServiceCreates a plainImagegraphics algorithm with the given image id. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainImagein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- imageId- the image id
- Returns:
- the new image
- See Also:
 
- 
createInvisibleRectangleDescription copied from interface:IGaCreateServiceCreate an invisibleRectangle.The following values are set by default when it is shown: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 lineVisible: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createInvisibleRectanglein interface- IGaCreateService
- Parameters:
- pe- the pictogram element to create the rectangle
- Returns:
- the rectangle
 
- 
createMultiTextDescription copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm with the given text.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value- Specified by:
- createMultiTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new multiline text
 
- 
createPlainMultiTextDescription copied from interface:IGaCreateServiceCreates a plainMultiTextgraphics algorithm with the given text. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainMultiTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new multiline text
- See Also:
 
- 
createMultiTextDescription copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: ""- Specified by:
- createMultiTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new multiline text
 
- 
createPlainMultiTextDescription copied from interface:IGaCreateServiceCreates a plainMultiTextgraphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainMultiTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new multiline text
- See Also:
 
- 
createMultiTextpublic MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Description copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm with the given text and font. The font will be displayed in straight (no italics or bold) and will be managed within the given diagram; in case the font already exists it will be reused, otherwise the corresponding font instance will be created.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: fontNamel
 size: fontSize
 italic: false
 bold: false- Specified by:
- createMultiTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram that shall be used for managing the font for the new text field
- gaContainer- the container for the new graphics algorithm
- value- initial text
- fontName- the name of the font to use for the new text field
- fontSize- the size of the font to use for the new text field
- Returns:
- the new multiline text
 
- 
createMultiTextpublic MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Description copied from interface:IGaCreateServiceCreates aMultiTextgraphics algorithm with the given text and font. The font will be managed within the given diagram; in case the font already exists it will be reused, otherwise the corresponding font instance will be created.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: fontNamel
 size: fontSize
 italic: isFontItalic
 bold: isFontBold- Specified by:
- createMultiTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram that shall be used for managing the font for the new text field
- gaContainer- the container for the new graphics algorithm
- value- initial text
- fontName- the name of the font to use for the new text field
- fontSize- the size of the font to use for the new text field
- isFontItalic- flag if the font to use for the new text field should be italic or not
- isFontBold- flag if the font to use for the new text field should be bold or not
- Returns:
- the new multiline text
 
- 
createPlatformGraphicsAlgorithmpublic PlatformGraphicsAlgorithm createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Description copied from interface:IGaCreateServiceCreates thePlatformGraphicsAlgorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 id: id- Specified by:
- createPlatformGraphicsAlgorithmin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- id- the id
- Returns:
- the platform graphics algorithm
 
- 
createPlainPlatformGraphicsAlgorithmpublic PlatformGraphicsAlgorithm createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Description copied from interface:IGaCreateServiceCreates the plainPlatformGraphicsAlgorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPlatformGraphicsAlgorithmin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- id- the id
- Returns:
- the platform graphics algorithm
- See Also:
 
- 
createPointDescription copied from interface:IGaCreateServiceCreates aPointdatatype for the given x/y coordinates. The additional before/after parameters defined at which distance before/after the point a rounded curve will start/end. Note, that before/after parameters have only an effect, if the graphics algorithm support them, e.g. polygon and polyline.- Specified by:
- createPointin interface- IGaCreateService
- Parameters:
- x- the x coordinate
- y- the y coordinate
- before- the distance before, if supported
- after- the distance after, if supported
- Returns:
- the new point
 
- 
createPointDescription copied from interface:IGaCreateServiceCreates aPointdatatype for the given x/y coordinates.- Specified by:
- createPointin interface- IGaCreateService
- Parameters:
- x- the x coordinate
- y- the y coordinate
- Returns:
- the new point
 
- 
createPointListDescription copied from interface:IGaCreateServiceCreates a list ofPointdatatypes for the given x/y coordinates. Note, that before/after parameters have only an effect, if the graphics algorithm support them, e.g. polygon and polyline.- Specified by:
- createPointListin interface- IGaCreateService
- Parameters:
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- beforeAfter- The before/after parameters: [before0, after0, ..., beforeN, afterN]
- Returns:
- the point list
 
- 
createPointListDescription copied from interface:IGaCreateServiceCreates a list ofPointdatatypes for the given x/y coordinates.- Specified by:
- createPointListin interface- IGaCreateService
- Parameters:
- xy- The x/y coordinates: [x0, y0, ...,xN, yN]
- Returns:
- the point list
 
- 
createPolygonDescription copied from interface:IGaCreateServiceCreates aPolygongraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: true
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- points- collection of point
- Returns:
- the new polygon
 
- 
createPlainPolygonDescription copied from interface:IGaCreateServiceCreates a plainPolygongraphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- points- collection of point
- Returns:
- the new polygon
- See Also:
 
- 
createPolygonDescription copied from interface:IGaCreateServiceCreates aPolygongraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: true
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- beforeAfter- The before/after parameters: [before0, after0, ..., beforeN, afterN]
- Returns:
- the new polygon
 
- 
createPlainPolygonpublic Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Description copied from interface:IGaCreateServiceCreates a plainPolygongraphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- beforeAfter- The before/after parameters: [before0, after0, ..., beforeN, afterN]
- Returns:
- the new polygon
- See Also:
 
- 
createPolygonDescription copied from interface:IGaCreateServiceCreates aPolygongraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: true
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- Returns:
- the new polygon
 
- 
createPlainPolygonDescription copied from interface:IGaCreateServiceCreates a plainPolygongraphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- Returns:
- the new polygon
- See Also:
 
- 
createPolygonDescription copied from interface:IGaCreateServiceCreates aPolygongraphics algorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: true
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new polygon
 
- 
createPlainPolygonDescription copied from interface:IGaCreateServiceCreates a plainPolygongraphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolygonin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new polygon
- See Also:
 
- 
createPolylineDescription copied from interface:IGaCreateServiceCreates aPolylinegraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- points- collection of point
- Returns:
- the new polyline
 
- 
createPlainPolylinepublic Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Description copied from interface:IGaCreateServiceCreates a plainPolylinegraphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- points- collection of point
- Returns:
- the new polyline
- See Also:
 
- 
createPolylineDescription copied from interface:IGaCreateServiceCreates aPolylinegraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- beforeAfter- The before/after parameters: [before0, after0, ..., beforeN, afterN]
- Returns:
- the new polyline
 
- 
createPlainPolylinepublic Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Description copied from interface:IGaCreateServiceCreates a plainPolylinegraphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- beforeAfter- The before/after parameters: [before0, after0, ..., beforeN, afterN]
- Returns:
- the new polyline
- See Also:
 
- 
createPolylineDescription copied from interface:IGaCreateServiceCreates aPolylinegraphics algorithm with the given points.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- Returns:
- the new polyline
 
- 
createPlainPolylineDescription copied from interface:IGaCreateServiceCreates a plain polyline graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- xy- The x/y coordinates: [x0, y0, ..., xN, yN]
- Returns:
- the new polyline
- See Also:
 
- 
createPolylineDescription copied from interface:IGaCreateServiceCreates aPolylinegraphics algorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new polyline
 
- 
createPlainPolylineDescription copied from interface:IGaCreateServiceCreates a plainPolylinegraphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainPolylinein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new polyline
- See Also:
 
- 
createRectangleDescription copied from interface:IGaCreateServiceCreates aRectanglegraphics algorithm.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0- Specified by:
- createRectanglein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new rectangle
 
- 
createPlainRectangleDescription copied from interface:IGaCreateServiceCreates a plainRectanglegraphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainRectanglein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new rectangle
- See Also:
 
- 
createRoundedRectanglepublic RoundedRectangle createRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Description copied from interface:IGaCreateServiceCreates aRoundedRectanglegraphics algorithm with the given corner dimensions.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 cornerHeight: cornerHeight
 cornerWidth: cornerWidth- Specified by:
- createRoundedRectanglein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- cornerWidth- the corner width
- cornerHeight- the corner height
- Returns:
- the new rounded rectangle
 
- 
createPlainRoundedRectanglepublic RoundedRectangle createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Description copied from interface:IGaCreateServiceCreates a plainRoundedRectanglegraphics algorithm with the given corner dimensions. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainRoundedRectanglein interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- cornerWidth- the corner width
- cornerHeight- the corner height
- Returns:
- the new rounded rectangle
- See Also:
 
- 
createShiftedColorDescription copied from interface:IGaCreateServiceShifts theColordarker or lighter.- Specified by:
- createShiftedColorin interface- IGaCreateService
- Parameters:
- color- the color to be changed
- shift- negative shifts means darken the color
- diagram- the diagram
- Returns:
- a new color datatype with the shiftet values
 
- 
createShiftedColorDescription copied from interface:IGaCreateServiceShifts theColorconstant darker or lighter.- Specified by:
- createShiftedColorin interface- IGaCreateService
- Parameters:
- colorConstant- the color constant to be changed
- shift- negative shifts means darken the color
- Returns:
- the color constant with the shifted values
 
- 
createStyleDescription copied from interface:IGaCreateServiceCreates aStylewith the given id. The style is aggregated under the given container style.The following values are set by default: lineStyle: SOLID 
 id: id
 horizontalAlignment: ALIGNMENT_CENTER
 verticalAlignment: ALIGNMENT_CENTER<br<- Specified by:
- createStylein interface- IGaCreateService
- Parameters:
- styleContainer- container style
- id- style id
- Returns:
- the newly created style
 
- 
createPlainStyleDescription copied from interface:IGaCreateServiceCreates aStylewith the given id. The style is aggregated under the given container style. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainStylein interface- IGaCreateService
- Parameters:
- styleContainer- container style
- id- style id
- Returns:
- the newly created style
- See Also:
 
- 
createTextDescription copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with the given text.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value- Specified by:
- createTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new text
 
- 
createPlainTextDescription copied from interface:IGaCreateServiceCreates a plainTextgraphics algorithm with the given text. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- value- initial text
- Returns:
- the new text
- See Also:
 
- 
createTextDescription copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with empty text.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: ""- Specified by:
- createTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new text
 
- 
createPlainTextDescription copied from interface:IGaCreateServiceCreates a plainTextgraphics algorithm with empty text. Default values have been reset, so you can use your styles, seeAbstractStyle.- Specified by:
- createPlainTextin interface- IGaCreateService
- Parameters:
- gaContainer- the container for the new graphics algorithm
- Returns:
- the new text
- See Also:
 
- 
createTextpublic Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Description copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with the given text and font. The font will be displayed in straight (no italics or bold) and will be managed within the given diagram; in case the font already exists it will be reused, otherwise the corresponding font instance will be created.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: fontNamel
 size: fontSize
 italic: false
 bold: false- Specified by:
- createTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram that shall be used for managing the font for the new text field
- gaContainer- the container for the new graphics algorithm
- value- initial text
- fontName- the name of the font to use for the new text field
- fontSize- the size of the font to use for the new text field
- Returns:
- the new text
 
- 
createTextpublic Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Description copied from interface:IGaCreateServiceCreates aTextgraphics algorithm with the given text and font. The font will be managed within the given diagram; in case the font already exists it will be reused, otherwise the corresponding font instance will be created.The following values are set by default: lineWidth: 1 
 lineStyle: SOLID
 filled: false
 transparency: 0.0
 width: 0
 height: 0
 x: 0
 y: 0
 horizontalAlignment: ALIGNMENT_LEFT
 verticalAlignment: ALIGNMENT_CENTER
 angle: 0
 value: value
 name: fontNamel
 size: fontSize
 italic: isFontItalic
 bold: isFontBold- Specified by:
- createTextin interface- IGaCreateService
- Parameters:
- diagram- the diagram that shall be used for managing the font for the new text field
- gaContainer- the container for the new graphics algorithm
- value- initial text
- fontName- the name of the font to use for the new text field
- fontSize- the size of the font to use for the new text field
- isFontItalic- flag if the font to use for the new text field should be italic or not
- isFontBold- flag if the font to use for the new text field should be bold or not
- Returns:
- the new text
 
- 
createBoxRelativeAnchorDescription copied from interface:IPeCreateServiceCreates a box relative anchor inside the given anchor container.- Specified by:
- createBoxRelativeAnchorin interface- IPeCreateService
- Parameters:
- anchorContainer- the anchors parent
- Returns:
- the new box relative anchor
 
- 
createChopboxAnchorDescription copied from interface:IPeCreateServiceCreates a chop box anchor inside the given anchor container.- Specified by:
- createChopboxAnchorin interface- IPeCreateService
- Parameters:
- anchorContainer- the anchors parent
- Returns:
- the new chop box anchor
 
- 
createConnectionDecoratorpublic ConnectionDecorator createConnectionDecorator(Connection connection, boolean active, double location, boolean isRelative) Description copied from interface:IPeCreateServiceCreates a connection decorator and adds it to the given connection.- Specified by:
- createConnectionDecoratorin interface- IPeCreateService
- Parameters:
- connection- the connection
- active- TRUE, if decorator is active, FALSE otherwise
- location- location of the decorator (must be between 0 and 1)
- isRelative- true if the decorator should be positioned relative to the connection's midpoint
- Returns:
- the new connection decorator
 
- 
createContainerShapeDescription copied from interface:IPeCreateServiceCreates a container shape inside the given parent container shape.- Specified by:
- createContainerShapein interface- IPeCreateService
- Parameters:
- parentContainerShape- the parent container shape
- active-- true, if the created shape should be active,- falseotherwise. An active shape can be selected in the diagram editor and it is also relevant for layouting: an active shape opens a coordinate system relative to its next active parent which can be used for layouting its- PictogramElementchildren, while an inactive one uses the coordinate system of its next direct 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. 
- Returns:
- the new container shape
 
- 
createDiagramDescription copied from interface:IPeCreateServiceCreates a diagram. Snapping to the grid is disabled by default.- Specified by:
- createDiagramin interface- IPeCreateService
- Parameters:
- diagramTypeId- the type id of the diagram
- diagramName- the name of the diagram
- Returns:
- the new diagram
- See Also:
 
- 
createDiagramDescription copied from interface:IPeCreateServiceCreates a diagram.- Specified by:
- createDiagramin interface- IPeCreateService
- Parameters:
- diagramTypeId- the type id of the diagram
- diagramName- the name of the diagram
- snap- TRUE enables snap to grid
- Returns:
- the new diagram
- See Also:
 
- 
createDiagramDescription copied from interface:IPeCreateServiceCreates a diagram.- Specified by:
- createDiagramin interface- IPeCreateService
- Parameters:
- diagramTypeId- the type id of the diagram
- diagramName- the name of the diagram
- gridUnit- grid size (in both directions) in pixel; if 0 then no grid will be drawn
- snap- TRUE enables snap to grid
- Returns:
- the new diagram
 
- 
createDiagrampublic Diagram createDiagram(String diagramTypeId, String diagramName, int horizontalGridUnit, int verticalGridUint, boolean snap) Description copied from interface:IPeCreateServiceCreates a diagram.- Specified by:
- createDiagramin interface- IPeCreateService
- Parameters:
- diagramTypeId- the type id of the diagram
- diagramName- the name of the diagram
- horizontalGridUnit- horizontal grid size in pixel; if 0 then no grid will be drawn
- verticalGridUint- vertical grid size in pixel; if 0 then no grid will be drawn
- snap- TRUE enables snap to grid
- Returns:
- the new diagram
 
- 
createFixPointAnchorDescription copied from interface:IPeCreateServiceCreates a fix point anchor inside the given anchor container.- Specified by:
- createFixPointAnchorin interface- IPeCreateService
- Parameters:
- anchorContainer- the anchors parent
- Returns:
- the new fix point anchor
 
- 
createFreeFormConnectionDescription copied from interface:IPeCreateServiceCreates a free form connection inside the given diagram.- Specified by:
- createFreeFormConnectionin interface- IPeCreateService
- Parameters:
- diagram- the diagram
- Returns:
- the new free form connection
 
- 
createManhattanConnectionDescription copied from interface:IPeCreateServiceCreates a manhattan connection inside the given diagram.- Specified by:
- createManhattanConnectionin interface- IPeCreateService
- Parameters:
- diagram- the diagram
- Returns:
- the new free form connection
 
- 
createCurvedConnectionDescription copied from interface:IPeCreateServiceCreates a curved connection (Bezier curve) inside the given diagram.- Specified by:
- createCurvedConnectionin interface- IPeCreateService
- Parameters:
- controllPoints- an array of double value pairs defining the control points (two values - x and y - define the point) of the Bezier curve
- diagram- the diagram
- Returns:
- the new curved connection
 
- 
createCompositeConnectionDescription copied from interface:IPeCreateServiceCreates a composite connection (a connection that is made of several other connections) inside the given diagram.CompositeConnections can be used to combine any number ofCurvedConnections into one semantical connection using itsCompositeConnection.getChildren()relation. Note that the composite connection itself needs to have an associatedGraphicsAlgorithm(usually aPolyline) for its visualization, although it might be invisible and only the child connections have a visible polyline as their visualization.
 Note that this is an experimental API and might change without further notice.- Specified by:
- createCompositeConnectionin interface- IPeCreateService
- Parameters:
- diagram- the diagram
- Returns:
- the new composite connection
 
- 
createShapeDescription copied from interface:IPeCreateServiceCreates a shape inside the given parent container shape.- Specified by:
- createShapein interface- IPeCreateService
- Parameters:
- parentContainerShape- the parent container shape
- active-- true, if the created shape should be active,- falseotherwise. 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- PictogramElementchildren, 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. 
- Returns:
- the new shape
 
- 
createTextStyleRegionDescription copied from interface:IGaCreateServiceCreates aTextStyleRegion. The style is aggregated under the given abstract text.- Specified by:
- createTextStyleRegionin interface- IGaCreateService
- Parameters:
- abstractText- container text
- Returns:
- the newly created text style region
- See Also:
 
- 
createTextStyleRegionDescription copied from interface:IGaCreateServiceCreates aTextStyleRegionwith the given bounds. The style is aggregated under the given abstract text.- Specified by:
- createTextStyleRegionin interface- IGaCreateService
- Parameters:
- abstractText- container text
- start- region start
- end- retion end
- Returns:
- the newly created text style region
- See Also:
 
- 
createTextStyleDescription copied from interface:IGaCreateServiceCreates aTextStyle. The style is aggregated under the given text style region.- Specified by:
- createTextStylein interface- IGaCreateService
- Parameters:
- region- container region
- Returns:
- the newly created text style
- See Also:
 
- 
createTextStylepublic TextStyle createTextStyle(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle) Description copied from interface:IGaCreateServiceCreates aTextStylewith the given values. The style is aggregated under the given text style region.- Specified by:
- createTextStylein interface- IGaCreateService
- Parameters:
- region- container region
- underline- the is underlined
- strikeout- the is stroke out
- underlineStyle- the underline style
- Returns:
- the newly created text style
- See Also:
 
- 
getGaService
- 
getPeService
 
-