|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGaService
The interface IGaService provides convenient services for the creation and layout of graphics algorithm.
Method Summary | |
---|---|
void |
deleteFont(AbstractText abstractText)
Delete font. |
void |
deleteRenderingStyle(AbstractStyle abstractStyle)
Deletes the RenderingStyle from the given AbstractStyle. |
Style |
findStyle(StyleContainer styleContainer,
java.lang.String id)
Searches for a style with the given id. |
int |
getAngle(AbstractText at,
boolean checkStyles)
Gets the angle. |
Color |
getBackgroundColor(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the background color. |
Font |
getFont(AbstractText at,
boolean checkStyles)
Gets the font. |
Color |
getForegroundColor(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the foreground color. |
Orientation |
getHorizontalAlignment(AbstractText at,
boolean checkStyles)
Gets the horizontal alignment. |
LineStyle |
getLineStyle(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the line style. |
int |
getLineWidth(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the line width. |
RenderingStyle |
getRenderingStyle(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the rendering style. |
double |
getTransparency(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the transparency. |
Orientation |
getVerticalAlignment(AbstractText at,
boolean checkStyles)
Gets the vertical alignment. |
void |
ignoreAll(AbstractStyle abstractStyle)
Sets the provided AbstractStyle (could be a
GraphicsAlgorithm or a Style ) to ignore all locally set
attributes and instead use the ones provided by the style set to the
AbstractStyle . |
boolean |
isFilled(GraphicsAlgorithm ga,
boolean checkStyles)
Checks if is filled. |
boolean |
isLineVisible(GraphicsAlgorithm ga,
boolean checkStyles)
Checks if line is visible. |
boolean |
isProportional(Image image,
boolean checkStyles)
Checks if is proportional. |
boolean |
isStretchH(Image image,
boolean checkStyles)
Checks if is stretch h. |
boolean |
isStretchV(Image image,
boolean checkStyles)
Checks if is stretch v. |
Color |
manageColor(Diagram diagram,
IColorConstant colorConstant)
Provides a color instance with the given given color constant by either creating a new one and aggregating it to the diagram or finding it in the diagrams palette of colors. |
Color |
manageColor(Diagram diagram,
int red,
int green,
int blue)
Provides a color instance with the given RGB values by either creating a new one and aggregating it to the diagram or finding it in the diagrams palette of colors. |
void |
movePolylinePoint(Polyline polyline,
int index,
int deltaX,
int deltaY)
Move polyline point. |
void |
setRenderingStyle(AbstractStyle abstractStyle,
AdaptedGradientColoredAreas adaptedGradientColoredAreas)
Sets a RenderingStyle with given adapted gradient colored areas for the given AbstractStyle . |
Methods inherited from interface org.eclipse.graphiti.services.IGaCreateService |
---|
createDefaultMultiText, createDefaultMultiText, createDefaultText, createDefaultText, createEllipse, createFont, createFont, createFont, createFont, createImage, createInvisibleRectangle, createMultiText, createMultiText, createPlatformGraphicsAlgorithm, createPoint, createPoint, createPointList, createPointList, createPolygon, createPolygon, createPolygon, createPolygon, createPolyline, createPolyline, createPolyline, createPolyline, createRectangle, createRoundedRectangle, createShiftedColor, createShiftedColor, createStyle, createText, createText |
Methods inherited from interface org.eclipse.graphiti.services.IGaLayoutService |
---|
calculateSize, calculateSize, setHeight, setLocation, setLocation, setLocationAndSize, setLocationAndSize, setSize, setWidth |
Method Detail |
---|
void deleteFont(AbstractText abstractText)
abstractText
- the abstract textvoid deleteRenderingStyle(AbstractStyle abstractStyle)
abstractStyle
- the abstract style from which to delete the RenderingStyle.Style findStyle(StyleContainer styleContainer, java.lang.String id)
styleContainer
- the style containerid
- style id
int getAngle(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check styles
Color getBackgroundColor(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
Font getFont(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check styles
Color getForegroundColor(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
Orientation getHorizontalAlignment(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check styles
LineStyle getLineStyle(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
int getLineWidth(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
RenderingStyle getRenderingStyle(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
double getTransparency(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
Orientation getVerticalAlignment(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check styles
void ignoreAll(AbstractStyle abstractStyle)
AbstractStyle
(could be a
GraphicsAlgorithm
or a Style
) to ignore all locally set
attributes and instead use the ones provided by the style set to the
AbstractStyle
.
abstractStyle
- The abstract style (style or graphics algorithm)boolean isFilled(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
boolean isLineVisible(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check styles
boolean isProportional(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check styles
boolean isStretchH(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check styles
boolean isStretchV(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check styles
Color manageColor(Diagram diagram, IColorConstant colorConstant)
diagram
- the diagram that aggregates and the colorscolorConstant
- which contains the RGB values.
Color manageColor(Diagram diagram, int red, int green, int blue)
diagram
- the diagram that aggregates and the colorsred
- the redgreen
- the greenblue
- the blue
void movePolylinePoint(Polyline polyline, int index, int deltaX, int deltaY)
polyline
- the polylineindex
- the indexdeltaX
- the delta xdeltaY
- the delta yvoid setRenderingStyle(AbstractStyle abstractStyle, AdaptedGradientColoredAreas adaptedGradientColoredAreas)
AbstractStyle
. The AdaptedGradientColoredAreas
are
defined and created in PredefinedColoredAreas
.
abstractStyle
- the abstract style for which to set the rendering style.adaptedGradientColoredAreas
- The AdaptedGradientColoredAreas
gradient colored
areas.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |