Interface IGaCreateService
-
- All Known Subinterfaces:
ICreateService
,IGaService
- All Known Implementing Classes:
CreateServiceImpl
,GaServiceImpl
public interface IGaCreateService
The interface IGaCreateService provides services for the creation of all available graphics algorithm's. E.g. Polygon, Rectangle, Text, ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultiText
createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
Creates aMultiText
graphics algorithm with the default font (Arial, size 8).MultiText
createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates aMultiText
graphics algorithm with the default font (Arial, size 8) and the given text.Text
createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
Creates aText
graphics algorithm with the default font (Arial, size 8).Text
createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates aText
graphics algorithm with the default font (Arial, size 8) and the given text.Ellipse
createEllipse(GraphicsAlgorithmContainer gaContainer)
Creates anEllipse
graphics algorithm.Image
createImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
Creates aImage
graphics algorithm with the given image id.Rectangle
createInvisibleRectangle(PictogramElement pe)
Create an invisibleRectangle
.MultiText
createMultiText(GraphicsAlgorithmContainer gaContainer)
Creates aMultiText
graphics algorithm.MultiText
createMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates aMultiText
graphics algorithm with the given text.MultiText
createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize)
Creates aMultiText
graphics algorithm with the given text and font.MultiText
createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize, boolean isFontItalic, boolean isFontBold)
Creates aMultiText
graphics algorithm with the given text and font.Ellipse
createPlainEllipse(GraphicsAlgorithmContainer gaContainer)
Creates a plainEllipse
graphics algorithm.Image
createPlainImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
Creates a plainImage
graphics algorithm with the given image id.MultiText
createPlainMultiText(GraphicsAlgorithmContainer gaContainer)
Creates a plainMultiText
graphics algorithm.MultiText
createPlainMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates a plainMultiText
graphics algorithm with the given text.PlatformGraphicsAlgorithm
createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, java.lang.String id)
Creates the plainPlatformGraphicsAlgorithm
.Polygon
createPlainPolygon(GraphicsAlgorithmContainer gaContainer)
Creates a plainPolygon
graphics algorithm.Polygon
createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
Creates a plainPolygon
graphics algorithm with the given points.Polygon
createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Creates a plainPolygon
graphics algorithm with the given points.Polygon
createPlainPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Creates a plainPolygon
graphics algorithm with the given points.Polyline
createPlainPolyline(GraphicsAlgorithmContainer gaContainer)
Creates a plainPolyline
graphics algorithm.Polyline
createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
Creates a plain polyline graphics algorithm with the given points.Polyline
createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Creates a plainPolyline
graphics algorithm with the given points.Polyline
createPlainPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Creates a plainPolyline
graphics algorithm with the given points.Rectangle
createPlainRectangle(GraphicsAlgorithmContainer gaContainer)
Creates a plainRectangle
graphics algorithm.RoundedRectangle
createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight)
Creates a plainRoundedRectangle
graphics algorithm with the given corner dimensions.Style
createPlainStyle(StyleContainer styleContainer, java.lang.String id)
Creates aStyle
with the given id.Text
createPlainText(GraphicsAlgorithmContainer gaContainer)
Creates a plainText
graphics algorithm with empty text.Text
createPlainText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates a plainText
graphics algorithm with the given text.PlatformGraphicsAlgorithm
createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, java.lang.String id)
Creates thePlatformGraphicsAlgorithm
.Point
createPoint(int x, int y)
Creates aPoint
datatype for the given x/y coordinates.Point
createPoint(int x, int y, int before, int after)
Creates aPoint
datatype for the given x/y coordinates.java.util.List<Point>
createPointList(int[] xy)
Creates a list ofPoint
datatypes for the given x/y coordinates.java.util.List<Point>
createPointList(int[] xy, int[] beforeAfter)
Creates a list ofPoint
datatypes for the given x/y coordinates.Polygon
createPolygon(GraphicsAlgorithmContainer gaContainer)
Creates aPolygon
graphics algorithm.Polygon
createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
Creates aPolygon
graphics algorithm with the given points.Polygon
createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Creates aPolygon
graphics algorithm with the given points.Polygon
createPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Creates aPolygon
graphics algorithm with the given points.Polyline
createPolyline(GraphicsAlgorithmContainer gaContainer)
Creates aPolyline
graphics algorithm.Polyline
createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
Creates aPolyline
graphics algorithm with the given points.Polyline
createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Creates aPolyline
graphics algorithm with the given points.Polyline
createPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Creates aPolyline
graphics algorithm with the given points.Rectangle
createRectangle(GraphicsAlgorithmContainer gaContainer)
Creates aRectangle
graphics algorithm.RoundedRectangle
createRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight)
Creates aRoundedRectangle
graphics algorithm with the given corner dimensions.Color
createShiftedColor(Color color, int shift, Diagram diagram)
Shifts theColor
darker or lighter.IColorConstant
createShiftedColor(IColorConstant colorConstant, int shift)
Shifts theColor
constant darker or lighter.Style
createStyle(StyleContainer styleContainer, java.lang.String id)
Creates aStyle
with the given id.Text
createText(GraphicsAlgorithmContainer gaContainer)
Creates aText
graphics algorithm with empty text.Text
createText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Creates aText
graphics algorithm with the given text.Text
createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize)
Creates aText
graphics algorithm with the given text and font.Text
createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize, boolean isFontItalic, boolean isFontBold)
Creates aText
graphics algorithm with the given text and font.TextStyle
createTextStyle(TextStyleRegion region)
Creates aTextStyle
.TextStyle
createTextStyle(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle)
Creates aTextStyle
with the given values.TextStyleRegion
createTextStyleRegion(AbstractText abstractText)
Creates aTextStyleRegion
.TextStyleRegion
createTextStyleRegion(AbstractText abstractText, int start, int end)
Creates aTextStyleRegion
with the given bounds.
-
-
-
Method Detail
-
createDefaultMultiText
MultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
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, java.lang.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
Text createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
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
Text createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value)
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
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer)
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
MultiText createPlainMultiText(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
createMultiText
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
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
MultiText createPlainMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
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:
Style
,createStyle(StyleContainer, String)
-
createMultiText
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.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, java.lang.String value, java.lang.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
Text createText(GraphicsAlgorithmContainer gaContainer)
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
Text createPlainText(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
createText
Text createText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
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
Text createPlainText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
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:
Style
,createStyle(StyleContainer, String)
-
createText
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.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, java.lang.String value, java.lang.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
Ellipse createEllipse(GraphicsAlgorithmContainer gaContainer)
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
Ellipse createPlainEllipse(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
createImage
Image createImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
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
Image createPlainImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
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:
Style
,createStyle(StyleContainer, String)
-
createInvisibleRectangle
Rectangle createInvisibleRectangle(PictogramElement pe)
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, java.lang.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, java.lang.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:
Style
,createStyle(StyleContainer, String)
-
createPoint
Point createPoint(int x, int y)
Creates aPoint
datatype for the given x/y coordinates.- Parameters:
x
- the x coordinatey
- the y coordinate- Returns:
- the new point
-
createPoint
Point createPoint(int x, int y, int before, int after)
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
java.util.List<Point> createPointList(int[] xy)
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
java.util.List<Point> createPointList(int[] xy, int[] beforeAfter)
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
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer)
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
Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
createPolygon
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
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
Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
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:
Style
,createStyle(StyleContainer, String)
-
createPolygon
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
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
Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
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:
Style
,createStyle(StyleContainer, String)
-
createPolygon
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
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
Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
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:
Style
,createStyle(StyleContainer, String)
-
createPolyline
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer)
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
Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
createPolyline
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
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
Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
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:
Style
,createStyle(StyleContainer, String)
-
createPolyline
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
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
Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
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:
Style
,createStyle(StyleContainer, String)
-
createPolyline
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
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
Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
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:
Style
,createStyle(StyleContainer, String)
-
createRectangle
Rectangle createRectangle(GraphicsAlgorithmContainer gaContainer)
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
Rectangle createPlainRectangle(GraphicsAlgorithmContainer gaContainer)
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:
Style
,createStyle(StyleContainer, String)
-
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:
Style
,createStyle(StyleContainer, String)
-
createShiftedColor
Color createShiftedColor(Color color, int shift, Diagram diagram)
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
IColorConstant createShiftedColor(IColorConstant colorConstant, int shift)
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
Style createStyle(StyleContainer styleContainer, java.lang.String id)
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
- Parameters:
styleContainer
- container styleid
- style id- Returns:
- the newly created style
-
createPlainStyle
Style createPlainStyle(StyleContainer styleContainer, java.lang.String id)
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:
Style
,createStyle(StyleContainer, String)
-
createTextStyleRegion
TextStyleRegion createTextStyleRegion(AbstractText abstractText)
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:
TextStyleRegion
,createTextStyleRegion(AbstractText, int, int)
-
createTextStyleRegion
TextStyleRegion createTextStyleRegion(AbstractText abstractText, int start, int end)
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:
TextStyleRegion
-
createTextStyle
TextStyle createTextStyle(TextStyleRegion region)
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:
TextStyle
,createTextStyle(TextStyleRegion, boolean, boolean, UnderlineStyle)
-
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:
TextStyle
,createStyle(StyleContainer, String)
-
-