Interface IGaCreateService
- All Known Subinterfaces:
ICreateService
,IGaService
- All Known Implementing Classes:
CreateServiceImpl
,GaServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultMultiText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer) Creates aMultiText
graphics algorithm with the default font (Arial, size 8).createDefaultMultiText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Creates aMultiText
graphics algorithm with the default font (Arial, size 8) and the given text.createDefaultText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer) Creates aText
graphics algorithm with the default font (Arial, size 8).createDefaultText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Creates aText
graphics algorithm with the default font (Arial, size 8) and the given text.createEllipse
(GraphicsAlgorithmContainer gaContainer) Creates anEllipse
graphics algorithm.createImage
(GraphicsAlgorithmContainer gaContainer, String imageId) Creates aImage
graphics algorithm with the given image id.Create an invisibleRectangle
.createMultiText
(GraphicsAlgorithmContainer gaContainer) Creates aMultiText
graphics algorithm.createMultiText
(GraphicsAlgorithmContainer gaContainer, String value) Creates aMultiText
graphics algorithm with the given text.createMultiText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aMultiText
graphics algorithm with the given text and font.createMultiText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aMultiText
graphics algorithm with the given text and font.createPlainEllipse
(GraphicsAlgorithmContainer gaContainer) Creates a plainEllipse
graphics algorithm.createPlainImage
(GraphicsAlgorithmContainer gaContainer, String imageId) Creates a plainImage
graphics algorithm with the given image id.createPlainMultiText
(GraphicsAlgorithmContainer gaContainer) Creates a plainMultiText
graphics algorithm.createPlainMultiText
(GraphicsAlgorithmContainer gaContainer, String value) Creates a plainMultiText
graphics algorithm with the given text.createPlainPlatformGraphicsAlgorithm
(GraphicsAlgorithmContainer gaContainer, String id) Creates the plainPlatformGraphicsAlgorithm
.createPlainPolygon
(GraphicsAlgorithmContainer gaContainer) Creates a plainPolygon
graphics algorithm.createPlainPolygon
(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates a plainPolygon
graphics algorithm with the given points.createPlainPolygon
(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates a plainPolygon
graphics algorithm with the given points.createPlainPolygon
(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates a plainPolygon
graphics algorithm with the given points.createPlainPolyline
(GraphicsAlgorithmContainer gaContainer) Creates a plainPolyline
graphics 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 plainPolyline
graphics algorithm with the given points.createPlainPolyline
(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates a plainPolyline
graphics algorithm with the given points.createPlainRectangle
(GraphicsAlgorithmContainer gaContainer) Creates a plainRectangle
graphics algorithm.createPlainRoundedRectangle
(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates a plainRoundedRectangle
graphics algorithm with the given corner dimensions.createPlainStyle
(StyleContainer styleContainer, String id) Creates aStyle
with the given id.createPlainText
(GraphicsAlgorithmContainer gaContainer) Creates a plainText
graphics algorithm with empty text.createPlainText
(GraphicsAlgorithmContainer gaContainer, String value) Creates a plainText
graphics algorithm with the given text.createPlatformGraphicsAlgorithm
(GraphicsAlgorithmContainer gaContainer, String id) Creates thePlatformGraphicsAlgorithm
.createPoint
(int x, int y) Creates aPoint
datatype for the given x/y coordinates.createPoint
(int x, int y, int before, int after) Creates aPoint
datatype for the given x/y coordinates.createPointList
(int[] xy) Creates a list ofPoint
datatypes for the given x/y coordinates.createPointList
(int[] xy, int[] beforeAfter) Creates a list ofPoint
datatypes for the given x/y coordinates.createPolygon
(GraphicsAlgorithmContainer gaContainer) Creates aPolygon
graphics algorithm.createPolygon
(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates aPolygon
graphics algorithm with the given points.createPolygon
(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates aPolygon
graphics algorithm with the given points.createPolygon
(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates aPolygon
graphics algorithm with the given points.createPolyline
(GraphicsAlgorithmContainer gaContainer) Creates aPolyline
graphics algorithm.createPolyline
(GraphicsAlgorithmContainer gaContainer, int[] xy) Creates aPolyline
graphics algorithm with the given points.createPolyline
(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter) Creates aPolyline
graphics algorithm with the given points.createPolyline
(GraphicsAlgorithmContainer gaContainer, Collection<Point> points) Creates aPolyline
graphics algorithm with the given points.createRectangle
(GraphicsAlgorithmContainer gaContainer) Creates aRectangle
graphics algorithm.createRoundedRectangle
(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates aRoundedRectangle
graphics algorithm with the given corner dimensions.createShiftedColor
(Color color, int shift, Diagram diagram) Shifts theColor
darker or lighter.createShiftedColor
(IColorConstant colorConstant, int shift) Shifts theColor
constant darker or lighter.createStyle
(StyleContainer styleContainer, String id) Creates aStyle
with the given id.createText
(GraphicsAlgorithmContainer gaContainer) Creates aText
graphics algorithm with empty text.createText
(GraphicsAlgorithmContainer gaContainer, String value) Creates aText
graphics algorithm with the given text.createText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aText
graphics algorithm with the given text and font.createText
(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aText
graphics algorithm with the given text and font.createTextStyle
(TextStyleRegion region) Creates aTextStyle
.createTextStyle
(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle) Creates aTextStyle
with the given values.createTextStyleRegion
(AbstractText abstractText) Creates aTextStyleRegion
.createTextStyleRegion
(AbstractText abstractText, int start, int end) Creates aTextStyleRegion
with the given bounds.
-
Method Details
-
createDefaultMultiText
Creates aMultiText
graphics algorithm with the default font (Arial, size 8). Use this method only if you want to use the default text, otherwise usecreateMultiText(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- Parameters:
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithm- Returns:
- the new multiline text
-
createDefaultMultiText
MultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value) Creates aMultiText
graphics 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 usecreateMultiText(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- Parameters:
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new multiline text
-
createDefaultText
Creates aText
graphics algorithm with the default font (Arial, size 8). Use this method only if you want to use the default text, otherwise usecreateText(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- Parameters:
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithm- Returns:
- the new text
-
createDefaultText
Creates aText
graphics 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 usecreateText(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- Parameters:
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new text
-
createMultiText
Creates aMultiText
graphics 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: ""- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new multiline text
-
createPlainMultiText
Creates a plainMultiText
graphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new multiline text
- Since:
- 0.9
- See Also:
-
createMultiText
Creates aMultiText
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new multiline text
-
createPlainMultiText
Creates a plainMultiText
graphics algorithm with the given text. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new multiline text
- Since:
- 0.9
- See Also:
-
createMultiText
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aMultiText
graphics 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- Parameters:
diagram
- the diagram that shall be used for managing the font for the new text fieldgaContainer
- the container for the new graphics algorithmvalue
- initial textfontName
- the name of the font to use for the new text fieldfontSize
- the size of the font to use for the new text field- Returns:
- the new multiline text
- Since:
- 0.9
-
createMultiText
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aMultiText
graphics 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- Parameters:
diagram
- the diagram that shall be used for managing the font for the new text fieldgaContainer
- the container for the new graphics algorithmvalue
- initial textfontName
- the name of the font to use for the new text fieldfontSize
- the size of the font to use for the new text fieldisFontItalic
- flag if the font to use for the new text field should be italic or notisFontBold
- flag if the font to use for the new text field should be bold or not- Returns:
- the new multiline text
- Since:
- 0.9
-
createText
Creates aText
graphics 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: ""- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new text
-
createPlainText
Creates a plainText
graphics algorithm with empty text. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new text
- Since:
- 0.9
- See Also:
-
createText
Creates aText
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new text
-
createPlainText
Creates a plainText
graphics algorithm with the given text. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmvalue
- initial text- Returns:
- the new text
- Since:
- 0.9
- See Also:
-
createText
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize) Creates aText
graphics 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- Parameters:
diagram
- the diagram that shall be used for managing the font for the new text fieldgaContainer
- the container for the new graphics algorithmvalue
- initial textfontName
- the name of the font to use for the new text fieldfontSize
- the size of the font to use for the new text field- Returns:
- the new text
- Since:
- 0.9
-
createText
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, String fontName, int fontSize, boolean isFontItalic, boolean isFontBold) Creates aText
graphics 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- Parameters:
diagram
- the diagram that shall be used for managing the font for the new text fieldgaContainer
- the container for the new graphics algorithmvalue
- initial textfontName
- the name of the font to use for the new text fieldfontSize
- the size of the font to use for the new text fieldisFontItalic
- flag if the font to use for the new text field should be italic or notisFontBold
- flag if the font to use for the new text field should be bold or not- Returns:
- the new text
- Since:
- 0.9
-
createEllipse
Creates anEllipse
graphics algorithm.The following values are set by default:
lineWidth: 1
lineStyle: SOLID
transparency: 0.0
width: 0
height: 0
x: 0
y: 0- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new ellipse
-
createPlainEllipse
Creates a plainEllipse
graphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new ellipse
- Since:
- 0.9
- See Also:
-
createImage
Creates aImage
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmimageId
- the image id- Returns:
- the new image
-
createPlainImage
Creates a plainImage
graphics algorithm with the given image id. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmimageId
- the image id- Returns:
- the new image
- Since:
- 0.9
- See Also:
-
createInvisibleRectangle
Create 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- Parameters:
pe
- the pictogram element to create the rectangle- Returns:
- the rectangle
-
createPlatformGraphicsAlgorithm
PlatformGraphicsAlgorithm createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Creates 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- Parameters:
gaContainer
- the container for the new graphics algorithmid
- the id- Returns:
- the platform graphics algorithm
-
createPlainPlatformGraphicsAlgorithm
PlatformGraphicsAlgorithm createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, String id) Creates the plainPlatformGraphicsAlgorithm
. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmid
- the id- Returns:
- the platform graphics algorithm
- Since:
- 0.9
- See Also:
-
createPoint
Creates aPoint
datatype for the given x/y coordinates.- Parameters:
x
- the x coordinatey
- the y coordinate- Returns:
- the new point
-
createPoint
Creates aPoint
datatype 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.- Parameters:
x
- the x coordinatey
- the y coordinatebefore
- the distance before, if supportedafter
- the distance after, if supported- Returns:
- the new point
-
createPointList
Creates a list ofPoint
datatypes for the given x/y coordinates.- Parameters:
xy
- The x/y coordinates: [x0, y0, ...,xN, yN]- Returns:
- the point list
-
createPointList
Creates a list ofPoint
datatypes 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.- Parameters:
xy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN, afterN]- Returns:
- the point list
-
createPolygon
Creates aPolygon
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new polygon
-
createPlainPolygon
Creates a plainPolygon
graphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new polygon
- Since:
- 0.9
- See Also:
-
createPolygon
Creates aPolygon
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmpoints
- collection of point- Returns:
- the new polygon
-
createPlainPolygon
Creates a plainPolygon
graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmpoints
- collection of point- Returns:
- the new polygon
- Since:
- 0.9
- See Also:
-
createPolygon
Creates aPolygon
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]- Returns:
- the new polygon
-
createPlainPolygon
Creates a plainPolygon
graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]- Returns:
- the new polygon
- Since:
- 0.9
- See Also:
-
createPolygon
Creates aPolygon
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN, afterN]- Returns:
- the new polygon
-
createPlainPolygon
Creates a plainPolygon
graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN, afterN]- Returns:
- the new polygon
- Since:
- 0.9
- See Also:
-
createPolyline
Creates aPolyline
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new polyline
-
createPlainPolyline
Creates a plainPolyline
graphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new polyline
- Since:
- 0.9
- See Also:
-
createPolyline
Creates aPolyline
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmpoints
- collection of point- Returns:
- the new polyline
-
createPlainPolyline
Creates a plainPolyline
graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmpoints
- collection of point- Returns:
- the new polyline
- Since:
- 0.9
- See Also:
-
createPolyline
Creates aPolyline
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]- Returns:
- the new polyline
-
createPlainPolyline
Creates a plain polyline graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]- Returns:
- the new polyline
- Since:
- 0.9
- See Also:
-
createPolyline
Creates aPolyline
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN, afterN]- Returns:
- the new polyline
-
createPlainPolyline
Creates a plainPolyline
graphics algorithm with the given points. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN, afterN]- Returns:
- the new polyline
- Since:
- 0.9
- See Also:
-
createRectangle
Creates aRectangle
graphics algorithm.The following values are set by default:
lineWidth: 1
lineStyle: SOLID
transparency: 0.0
width: 0
height: 0
x: 0
y: 0- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new rectangle
-
createPlainRectangle
Creates a plainRectangle
graphics algorithm. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithm- Returns:
- the new rectangle
- Since:
- 0.9
- See Also:
-
createRoundedRectangle
RoundedRectangle createRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates aRoundedRectangle
graphics 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- Parameters:
gaContainer
- the container for the new graphics algorithmcornerWidth
- the corner widthcornerHeight
- the corner height- Returns:
- the new rounded rectangle
-
createPlainRoundedRectangle
RoundedRectangle createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight) Creates a plainRoundedRectangle
graphics algorithm with the given corner dimensions. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
gaContainer
- the container for the new graphics algorithmcornerWidth
- the corner widthcornerHeight
- the corner height- Returns:
- the new rounded rectangle
- Since:
- 0.9
- See Also:
-
createShiftedColor
Shifts theColor
darker or lighter.- Parameters:
color
- the color to be changedshift
- negative shifts means darken the colordiagram
- the diagram- Returns:
- a new color datatype with the shiftet values
-
createShiftedColor
Shifts theColor
constant darker or lighter.- Parameters:
colorConstant
- the color constant to be changedshift
- negative shifts means darken the color- Returns:
- the color constant with the shifted values
-
createStyle
Creates aStyle
with 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<- Parameters:
styleContainer
- container styleid
- style id- Returns:
- the newly created style
-
createPlainStyle
Creates aStyle
with the given id. The style is aggregated under the given container style. Default values have been reset, so you can use your styles, seeAbstractStyle
.- Parameters:
styleContainer
- container styleid
- style id- Returns:
- the newly created style
- Since:
- 0.9
- See Also:
-
createTextStyleRegion
Creates aTextStyleRegion
. The style is aggregated under the given abstract text.- Parameters:
abstractText
- container text- Returns:
- the newly created text style region
- Since:
- 0.10
- See Also:
-
createTextStyleRegion
Creates aTextStyleRegion
with the given bounds. The style is aggregated under the given abstract text.- Parameters:
abstractText
- container textstart
- region startend
- retion end- Returns:
- the newly created text style region
- Since:
- 0.10
- See Also:
-
createTextStyle
Creates aTextStyle
. The style is aggregated under the given text style region.- Parameters:
region
- container region- Returns:
- the newly created text style
- Since:
- 0.10
- See Also:
-
createTextStyle
TextStyle createTextStyle(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle) Creates aTextStyle
with the given values. The style is aggregated under the given text style region.- Parameters:
region
- container regionunderline
- the is underlinedstrikeout
- the is stroke outunderlineStyle
- the underline style- Returns:
- the newly created text style
- Since:
- 0.10
- See Also:
-