|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGaCreateService
The interface IGaCreateService provides services for the creation of all available graphics algorithm's. E.g. Polygon, Rectangle, Text, ...
Method Summary | |
---|---|
MultiText |
createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer)
Creates a MultiText graphics algorithm with the default font
(Arial, size 8). |
MultiText |
createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
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,
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,
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,
String value,
String fontName,
int fontSize)
Creates a MultiText graphics algorithm with the given text and
font. |
MultiText |
createMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value,
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,
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,
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,
String value)
Creates a plain MultiText graphics algorithm with the given text. |
PlatformGraphicsAlgorithm |
createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
String id)
Creates the plain PlatformGraphicsAlgorithm . |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer)
Creates a plain Polygon graphics algorithm. |
Polygon |
createPlainPolygon(GraphicsAlgorithmContainer gaContainer,
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,
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,
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,
String value)
Creates a plain Text graphics algorithm with the given text. |
PlatformGraphicsAlgorithm |
createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
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. |
List<Point> |
createPointList(int[] xy)
Creates a list of Point datatypes for the given x/y coordinates. |
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,
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,
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,
String id)
Creates a Style with the given id. |
Text |
createText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value,
String fontName,
int fontSize)
Creates a Text graphics algorithm with the given text and font. |
Text |
createText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value,
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,
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. |
Method Detail |
---|
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 algorithm
MultiText createDefaultMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, 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 text
Text 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 algorithm
Text createDefaultText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, 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 text
MultiText 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 algorithm
MultiText 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 algorithm
Style
,
createStyle(StyleContainer, String)
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer, 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 text
MultiText createPlainMultiText(GraphicsAlgorithmContainer gaContainer, 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 text
Style
,
createStyle(StyleContainer, String)
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, 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 field
MultiText createMultiText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, 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 not
Text 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 algorithm
Text 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 algorithm
Style
,
createStyle(StyleContainer, String)
Text createText(GraphicsAlgorithmContainer gaContainer, 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 text
Text createPlainText(GraphicsAlgorithmContainer gaContainer, 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 text
Style
,
createStyle(StyleContainer, String)
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, 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 field
Text createText(Diagram diagram, GraphicsAlgorithmContainer gaContainer, String value, 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 not
Ellipse 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 algorithm
Ellipse 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 algorithm
Style
,
createStyle(StyleContainer, String)
Image createImage(GraphicsAlgorithmContainer gaContainer, 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 id
Image createPlainImage(GraphicsAlgorithmContainer gaContainer, 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 id
Style
,
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 rectangle
PlatformGraphicsAlgorithm createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, 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 id
PlatformGraphicsAlgorithm createPlainPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer, 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 id
Style
,
createStyle(StyleContainer, String)
Point createPoint(int x, int y)
Point
datatype for the given x/y coordinates.
x
- the x coordinatey
- the y coordinate
Point 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 supported
List<Point> createPointList(int[] xy)
Point
datatypes for the given x/y coordinates.
xy
- The x/y coordinates: [x0, y0, ...,xN, yN]
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 algorithm
Polygon 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 algorithm
Style
,
createStyle(StyleContainer, String)
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer, 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 point
Polygon createPlainPolygon(GraphicsAlgorithmContainer gaContainer, 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 point
Style
,
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 algorithm
Polyline 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 algorithm
Style
,
createStyle(StyleContainer, String)
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer, 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 point
Polyline createPlainPolyline(GraphicsAlgorithmContainer gaContainer, 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 point
Style
,
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 algorithm
Rectangle 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 algorithm
Style
,
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 height
RoundedRectangle 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 height
Style
,
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 diagram
IColorConstant createShiftedColor(IColorConstant colorConstant, int shift)
Color
constant darker or lighter.
colorConstant
- the color constant to be changedshift
- negative shifts means darken the color
Style createStyle(StyleContainer styleContainer, 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 id
Style createPlainStyle(StyleContainer styleContainer, 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 id
Style
,
createStyle(StyleContainer, String)
TextStyleRegion createTextStyleRegion(AbstractText abstractText)
TextStyleRegion
. The style is aggregated under the
given abstract text.
abstractText
- container text
TextStyleRegion
,
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 end
TextStyleRegion
TextStyle createTextStyle(TextStyleRegion region)
TextStyle
. The style is aggregated under the given text
style region.
region
- container region
TextStyle
,
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 style
TextStyle
,
createStyle(StyleContainer, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |