|
||||||||||
| 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. |
MultiText |
createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value)
Creates a multitext graphics algorithm with 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(GraphicsAlgorithmContainer gaContainer)
Creates a multitext graphics algorithm. |
MultiText |
createMultiText(GraphicsAlgorithmContainer gaContainer,
String value)
Creates a multitext graphics algorithm with the given text. |
PlatformGraphicsAlgorithm |
createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
String id)
Creates the platform graphics algorithm. |
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 rounded rectangle 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(GraphicsAlgorithmContainer gaContainer)
Creates a text graphics algorithm. |
Text |
createText(GraphicsAlgorithmContainer gaContainer,
String value)
Creates a text graphics algorithm with the given text. |
| Method Detail |
|---|
MultiText createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setFont(DEFAULT_FONT);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
diagram - the diagram to manage the fontgaContainer - the container for the new graphics algorithm
MultiText createDefaultMultiText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setFont(DEFAULT_FONT);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
diagram - the diagram to manage the fontgaContainer - the container for the new graphics algorithmvalue - initial text
Text createDefaultText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setFont(DEFAULT_FONT);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
diagram - the diagram to manage the fontgaContainer - the container for the new graphics algorithm
Text createDefaultText(Diagram diagram,
GraphicsAlgorithmContainer gaContainer,
String value)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setFont(DEFAULT_FONT);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
diagram - the diagram to manage the fontgaContainer - the container for the new graphics algorithmvalue - initial text
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
gaContainer - the container for the new graphics algorithm
MultiText createMultiText(GraphicsAlgorithmContainer gaContainer,
String value)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
gaContainer - the container for the new graphics algorithmvalue - initial text
Text createText(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
gaContainer - the container for the new graphics algorithm
Text createText(GraphicsAlgorithmContainer gaContainer,
String value)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
text.setAngle(0);
text.setHorizontalAlignment(Orientation.ALIGNMENT_LEFT);
text.setVerticalAlignment(Orientation.ALIGNMENT_CENTER);
gaContainer - the container for the new graphics algorithmvalue - initial text
Ellipse createEllipse(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithm
Image createImage(GraphicsAlgorithmContainer gaContainer,
String imageId)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
image.setId(imageId);
image.setProportional(false);
image.setStretchH(false);
image.setStretchV(false);
gaContainer - the container for the new graphics algorithmimageId - the image id
Rectangle createInvisibleRectangle(PictogramElement pe)
pe - the pictogram element to create the rectangle
PlatformGraphicsAlgorithm createPlatformGraphicsAlgorithm(GraphicsAlgorithmContainer gaContainer,
String id)
gaContainer - the container for the new graphics algorithmid - the id
Point createPoint(int x,
int y)
x - the x coordinatey - the y coordinate
Point createPoint(int x,
int y,
int before,
int after)
x - the x coordinatey - the y coordinatebefore - the distance before, if supportedafter - the distance after, if supported
List<Point> createPointList(int[] xy)
xy - The x/y coordinates: [x0, y0, ...,xN, yN]
List<Point> createPointList(int[] xy,
int[] beforeAfter)
xy - The x/y coordinates: [x0, y0, ..., xN, yN]beforeAfter - The before/after parameters: [before0, after0, ..., beforeN,
afterN]
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithm
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer,
Collection<Point> points)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithmpoints - collection of point
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithmxy - The x/y coordinates: [x0, y0, ..., xN, yN]
Polygon createPolygon(GraphicsAlgorithmContainer gaContainer,
int[] xy,
int[] beforeAfter)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(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 createPolyline(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(false);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithm
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer,
Collection<Point> points)
The following values are set by default:
graphicsAlgorithm.setFilled(false);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithmpoints - collection of point
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer,
int[] xy)
The following values are set by default:
graphicsAlgorithm.setFilled(false);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithmxy - The x/y coordinates: [x0, y0, ..., xN, yN]
Polyline createPolyline(GraphicsAlgorithmContainer gaContainer,
int[] xy,
int[] beforeAfter)
The following values are set by default:
graphicsAlgorithm.setFilled(false);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(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]
Rectangle createRectangle(GraphicsAlgorithmContainer gaContainer)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithm
RoundedRectangle createRoundedRectangle(GraphicsAlgorithmContainer gaContainer,
int cornerWidth,
int cornerHeight)
The following values are set by default:
graphicsAlgorithm.setFilled(true);
graphicsAlgorithm.setLineStyle(LineStyleEnum.SOLID);
graphicsAlgorithm.setLineVisible(true);
graphicsAlgorithm.setLineWidth(1);
graphicsAlgorithm.setTransparency(0);
gaContainer - the container for the new graphics algorithmcornerWidth - the corner widthcornerHeight - the corner height
Color createShiftedColor(Color color,
int shift,
Diagram diagram)
color - the color to be changedshift - negative shifts means darken the colordiagram - the diagram
IColorConstant createShiftedColor(IColorConstant colorConstant,
int shift)
colorConstant - the color constant to be changedshift - negative shifts means darken the color
Style createStyle(StyleContainer styleContainer,
String id)
styleContainer - container styleid - style id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||