public interface IGaCreateService
Modifier and Type | Method and Description |
---|---|
MultiText |
createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer)
Creates a
MultiText graphics algorithm with the default font
(Arial, size 8). |
MultiText |
createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a
MultiText graphics algorithm with the default font
(Arial, size 8) and the given text. |
Text |
createDefaultText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer)
Creates a
Text graphics algorithm with the default font (Arial,
size 8). |
Text |
createDefaultText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a
Text graphics algorithm with the default font (Arial,
size 8) and the given text. |
Ellipse |
createEllipse(GraphicsAlgorithmContainer gaContainer)
Creates an
Ellipse graphics algorithm. |
Image |
createImage(GraphicsAlgorithmContainer gaContainer,
java.lang.String imageId)
Creates a
Image graphics algorithm with the given image id. |
Rectangle |
createInvisibleRectangle(PictogramElement pe)
Create an invisible
Rectangle . |
MultiText |
createMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
java.lang.String value,
java.lang.String fontName,
int fontSize)
Creates a
MultiText 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 a
MultiText graphics algorithm with the given text and
font. |
MultiText |
createMultiText(GraphicsAlgorithmContainer gaContainer)
Creates a
MultiText graphics algorithm. |
MultiText |
createMultiText(GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a
MultiText graphics algorithm with the given text. |
Ellipse |
createPlainEllipse(GraphicsAlgorithmContainer gaContainer)
Creates a plain
Ellipse graphics algorithm. |
Image |
createPlainImage(GraphicsAlgorithmContainer gaContainer,
java.lang.String imageId)
Creates a plain
Image graphics algorithm with the given image id. |
MultiText |
createPlainMultiText(GraphicsAlgorithmContainer gaContainer)
Creates a plain
MultiText graphics algorithm. |
MultiText |
createPlainMultiText(GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a plain
MultiText graphics algorithm with the given text. |
PlatformGraphicsAlgorithm |
createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
java.lang.String id)
Creates the plain
PlatformGraphicsAlgorithm . |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer)
Creates a plain
Polygon graphics algorithm. |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer,
java.util.Collection<Point> points)
Creates a plain
Polygon graphics algorithm with the given points. |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy)
Creates a plain
Polygon graphics algorithm with the given points. |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy,
int[] beforeAfter)
Creates a plain
Polygon graphics algorithm with the given points. |
Polyline |
createPlainPolyline(GraphicsAlgorithmContainer gaContainer)
Creates a plain
Polyline graphics algorithm. |
Polyline |
createPlainPolyline(GraphicsAlgorithmContainer gaContainer,
java.util.Collection<Point> points)
Creates a plain
Polyline graphics algorithm with the given
points. |
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 plain
Polyline graphics algorithm with the given
points. |
Rectangle |
createPlainRectangle(GraphicsAlgorithmContainer gaContainer)
Creates a plain
Rectangle graphics algorithm. |
RoundedRectangle |
createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer,
int cornerWidth,
int cornerHeight)
Creates a plain
RoundedRectangle graphics algorithm with the
given corner dimensions. |
Style |
createPlainStyle(StyleContainer styleContainer,
java.lang.String id)
Creates a
Style with the given id. |
Text |
createPlainText(GraphicsAlgorithmContainer gaContainer)
Creates a plain
Text graphics algorithm with empty text. |
Text |
createPlainText(GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a plain
Text graphics algorithm with the given text. |
PlatformGraphicsAlgorithm |
createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
java.lang.String id)
Creates the
PlatformGraphicsAlgorithm . |
Point |
createPoint(int x,
int y)
Creates a
Point datatype for the given x/y coordinates. |
Point |
createPoint(int x,
int y,
int before,
int after)
Creates a
Point datatype for the given x/y coordinates. |
java.util.List<Point> |
createPointList(int[] xy)
Creates a list of
Point datatypes for the given x/y coordinates. |
java.util.List<Point> |
createPointList(int[] xy,
int[] beforeAfter)
Creates a list of
Point datatypes for the given x/y coordinates. |
Polygon |
createPolygon(GraphicsAlgorithmContainer gaContainer)
Creates a
Polygon graphics algorithm. |
Polygon |
createPolygon(GraphicsAlgorithmContainer gaContainer,
java.util.Collection<Point> points)
Creates a
Polygon graphics algorithm with the given points. |
Polygon |
createPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy)
Creates a
Polygon graphics algorithm with the given points. |
Polygon |
createPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy,
int[] beforeAfter)
Creates a
Polygon graphics algorithm with the given points. |
Polyline |
createPolyline(GraphicsAlgorithmContainer gaContainer)
Creates a
Polyline graphics algorithm. |
Polyline |
createPolyline(GraphicsAlgorithmContainer gaContainer,
java.util.Collection<Point> points)
Creates a
Polyline graphics algorithm with the given points. |
Polyline |
createPolyline(GraphicsAlgorithmContainer gaContainer,
int[] xy)
Creates a
Polyline graphics algorithm with the given points. |
Polyline |
createPolyline(GraphicsAlgorithmContainer gaContainer,
int[] xy,
int[] beforeAfter)
Creates a
Polyline graphics algorithm with the given points. |
Rectangle |
createRectangle(GraphicsAlgorithmContainer gaContainer)
Creates a
Rectangle graphics algorithm. |
RoundedRectangle |
createRoundedRectangle(GraphicsAlgorithmContainer gaContainer,
int cornerWidth,
int cornerHeight)
Creates a
RoundedRectangle graphics algorithm with the given
corner dimensions. |
Color |
createShiftedColor(Color color,
int shift,
Diagram diagram)
Shifts the
Color darker or lighter. |
IColorConstant |
createShiftedColor(IColorConstant colorConstant,
int shift)
Shifts the
Color constant darker or lighter. |
Style |
createStyle(StyleContainer styleContainer,
java.lang.String id)
Creates a
Style with the given id. |
Text |
createText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
java.lang.String value,
java.lang.String fontName,
int fontSize)
Creates a
Text 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 a
Text graphics algorithm with the given text and font. |
Text |
createText(GraphicsAlgorithmContainer gaContainer)
Creates a
Text graphics algorithm with empty text. |
Text |
createText(GraphicsAlgorithmContainer gaContainer,
java.lang.String value)
Creates a
Text graphics algorithm with the given text. |
TextStyle |
createTextStyle(TextStyleRegion region)
Creates a
TextStyle . |
TextStyle |
createTextStyle(TextStyleRegion region,
boolean underline,
boolean strikeout,
UnderlineStyle underlineStyle)
Creates a
TextStyle with the given values. |
TextStyleRegion |
createTextStyleRegion(AbstractText abstractText)
Creates a
TextStyleRegion . |
TextStyleRegion |
createTextStyleRegion(AbstractText abstractText,
int start,
int end)
Creates a
TextStyleRegion with the given bounds. |
MultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
MultiText
graphics algorithm with the default font
(Arial, size 8). Use this method only if you want to use the default
text, otherwise use 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
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmMultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value)
MultiText
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 use
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
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmvalue
- initial textText createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer)
Text
graphics algorithm with the default font (Arial,
size 8). Use this method only if you want to use the default text,
otherwise use 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
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmText createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Text
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 use
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
diagram
- the diagram to manage the fontgaContainer
- the container for the new graphics algorithmvalue
- initial textMultiText createMultiText(GraphicsAlgorithmContainer gaContainer)
MultiText
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: ""
gaContainer
- the container for the new graphics algorithmMultiText createPlainMultiText(GraphicsAlgorithmContainer gaContainer)
MultiText
graphics algorithm. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
MultiText
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
gaContainer
- the container for the new graphics algorithmvalue
- initial textMultiText createPlainMultiText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
MultiText
graphics algorithm with the given text.
Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmvalue
- initial textStyle
,
createStyle(StyleContainer, String)
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize)
MultiText
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
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 fieldMultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize, boolean isFontItalic, boolean isFontBold)
MultiText
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
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 notText createText(GraphicsAlgorithmContainer gaContainer)
Text
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: ""
gaContainer
- the container for the new graphics algorithmText createPlainText(GraphicsAlgorithmContainer gaContainer)
Text
graphics algorithm with empty text. Default
values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
Text createText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Text
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
gaContainer
- the container for the new graphics algorithmvalue
- initial textText createPlainText(GraphicsAlgorithmContainer gaContainer, java.lang.String value)
Text
graphics algorithm with the given text.
Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmvalue
- initial textStyle
,
createStyle(StyleContainer, String)
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize)
Text
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
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 fieldText createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, java.lang.String value, java.lang.String fontName, int fontSize, boolean isFontItalic, boolean isFontBold)
Text
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
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 notEllipse createEllipse(GraphicsAlgorithmContainer gaContainer)
Ellipse
graphics algorithm.
The following values are set by default:
lineWidth: 1
lineStyle: SOLID
transparency: 0.0
width: 0
height: 0
x: 0
y: 0
gaContainer
- the container for the new graphics algorithmEllipse createPlainEllipse(GraphicsAlgorithmContainer gaContainer)
Ellipse
graphics algorithm. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
Image createImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
Image
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
gaContainer
- the container for the new graphics algorithmimageId
- the image idImage createPlainImage(GraphicsAlgorithmContainer gaContainer, java.lang.String imageId)
Image
graphics algorithm with the given image id.
Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmimageId
- the image idStyle
,
createStyle(StyleContainer, String)
Rectangle createInvisibleRectangle(PictogramElement pe)
Rectangle
.
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
pe
- the pictogram element to create the rectanglePlatformGraphicsAlgorithm createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, java.lang.String id)
PlatformGraphicsAlgorithm
.
The following values are set by default:
lineWidth: 1
lineStyle: SOLID
transparency: 0.0
width: 0
height: 0
x: 0
y: 0
id: id
gaContainer
- the container for the new graphics algorithmid
- the idPlatformGraphicsAlgorithm createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, java.lang.String id)
PlatformGraphicsAlgorithm
. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmid
- the idStyle
,
createStyle(StyleContainer, String)
Point createPoint(int x, int y)
Point
datatype for the given x/y coordinates.x
- the x coordinatey
- the y coordinatePoint createPoint(int x, int y, int before, int after)
Point
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.x
- the x coordinatey
- the y coordinatebefore
- the distance before, if supportedafter
- the distance after, if supportedjava.util.List<Point> createPointList(int[] xy)
Point
datatypes for the given x/y coordinates.xy
- The x/y coordinates: [x0, y0, ...,xN, yN]java.util.List<Point> createPointList(int[] xy, int[] beforeAfter)
Point
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.xy
- The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter
- The before/after parameters: [before0, after0, ..., beforeN,
afterN]Polygon createPolygon(GraphicsAlgorithmContainer gaContainer)
Polygon
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
gaContainer
- the container for the new graphics algorithmPolygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer)
Polygon
graphics algorithm. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Polygon
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
gaContainer
- the container for the new graphics algorithmpoints
- collection of pointPolygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Polygon
graphics algorithm with the given points.
Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmpoints
- collection of pointStyle
,
createStyle(StyleContainer, String)
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
Polygon
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
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy)
Polygon
graphics algorithm with the given points.
Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]Style
,
createStyle(StyleContainer, String)
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Polygon
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
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]Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Polygon
graphics algorithm with the given points.
Default values have been reset, so you can use your styles, see
AbstractStyle
.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]Style
,
createStyle(StyleContainer, String)
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer)
Polyline
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
gaContainer
- the container for the new graphics algorithmPolyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer)
Polyline
graphics algorithm. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Polyline
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
gaContainer
- the container for the new graphics algorithmpoints
- collection of pointPolyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, java.util.Collection<Point> points)
Polyline
graphics algorithm with the given
points. Default values have been reset, so you can use your styles, see
AbstractStyle
.gaContainer
- the container for the new graphics algorithmpoints
- collection of pointStyle
,
createStyle(StyleContainer, String)
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
Polyline
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
gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy)
AbstractStyle
.gaContainer
- the container for the new graphics algorithmxy
- The x/y coordinates: [x0, y0, ..., xN, yN]Style
,
createStyle(StyleContainer, String)
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Polyline
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
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]Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, int[] xy, int[] beforeAfter)
Polyline
graphics algorithm with the given
points. Default values have been reset, so you can use your styles, see
AbstractStyle
.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]Style
,
createStyle(StyleContainer, String)
Rectangle createRectangle(GraphicsAlgorithmContainer gaContainer)
Rectangle
graphics algorithm.
The following values are set by default:
lineWidth: 1
lineStyle: SOLID
transparency: 0.0
width: 0
height: 0
x: 0
y: 0
gaContainer
- the container for the new graphics algorithmRectangle createPlainRectangle(GraphicsAlgorithmContainer gaContainer)
Rectangle
graphics algorithm. Default values have
been reset, so you can use your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmStyle
,
createStyle(StyleContainer, String)
RoundedRectangle createRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight)
RoundedRectangle
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
gaContainer
- the container for the new graphics algorithmcornerWidth
- the corner widthcornerHeight
- the corner heightRoundedRectangle createPlainRoundedRectangle(GraphicsAlgorithmContainer gaContainer, int cornerWidth, int cornerHeight)
RoundedRectangle
graphics algorithm with the
given corner dimensions. Default values have been reset, so you can use
your styles, see AbstractStyle
.gaContainer
- the container for the new graphics algorithmcornerWidth
- the corner widthcornerHeight
- the corner heightStyle
,
createStyle(StyleContainer, String)
Color createShiftedColor(Color color, int shift, Diagram diagram)
Color
darker or lighter.color
- the color to be changedshift
- negative shifts means darken the colordiagram
- the diagramIColorConstant createShiftedColor(IColorConstant colorConstant, int shift)
Color
constant darker or lighter.colorConstant
- the color constant to be changedshift
- negative shifts means darken the colorStyle createStyle(StyleContainer styleContainer, java.lang.String id)
Style
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
styleContainer
- container styleid
- style idStyle createPlainStyle(StyleContainer styleContainer, java.lang.String id)
Style
with the given id. The style is aggregated under
the given container style. Default values have been reset, so you can use
your styles, see AbstractStyle
.styleContainer
- container styleid
- style idStyle
,
createStyle(StyleContainer, String)
TextStyleRegion createTextStyleRegion(AbstractText abstractText)
TextStyleRegion
. The style is aggregated under the
given abstract text.abstractText
- container textTextStyleRegion
,
createTextStyleRegion(AbstractText, int, int)
TextStyleRegion createTextStyleRegion(AbstractText abstractText, int start, int end)
TextStyleRegion
with the given bounds. The style is
aggregated under the given abstract text.abstractText
- container textstart
- region startend
- retion endTextStyleRegion
TextStyle createTextStyle(TextStyleRegion region)
TextStyle
. The style is aggregated under the given text
style region.region
- container regionTextStyle
,
createTextStyle(TextStyleRegion, boolean, boolean, UnderlineStyle)
TextStyle createTextStyle(TextStyleRegion region, boolean underline, boolean strikeout, UnderlineStyle underlineStyle)
TextStyle
with the given values. The style is
aggregated under the given text style region.region
- container regionunderline
- the is underlinedstrikeout
- the is stroke outunderlineStyle
- the underline styleTextStyle
,
createStyle(StyleContainer, String)