|
||||||||||
| 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.
| Field Summary | |
|---|---|
static String |
DEFAULT_FONT
|
static int |
DEFAULT_FONT_SIZE
|
| Method Summary | |
|---|---|
void |
deleteColor(Color color)
Deletes the given color. |
void |
deleteFont(Font font)
Deletes the given font. |
void |
deleteRenderingStyle(AbstractStyle abstractStyle)
Deletes the RenderingStyle from the given AbstractStyle. |
Style |
findStyle(StyleContainer styleContainer,
String id)
Searches for a style with the given id. |
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 |
getRotation(AbstractText at,
boolean checkStyles)
Gets the rotation angle. |
double |
getTransparency(GraphicsAlgorithm ga,
boolean checkStyles)
Gets the transparency. |
Orientation |
getVerticalAlignment(AbstractText at,
boolean checkStyles)
Gets the vertical alignment. |
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 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. |
Font |
manageDefaultFont(Diagram diagram)
Provides the font instance for the default font (Arial in size 8) by either creating a new one and aggregating it to the diagram or finding it in the diagrams list of fonts. |
Font |
manageDefaultFont(Diagram diagram,
boolean isItalic,
boolean isBold)
Provides the font instance for the default font (Arial in size 8) by either creating a new one and aggregating it to the diagram or finding it in the diagrams list of fonts. |
Font |
manageFont(Diagram diagram,
String name,
int size)
Provides a font instance by either creating a new one and aggregating it to the diagram or finding it in the diagrams list of fonts. |
Font |
manageFont(Diagram diagram,
String name,
int size,
boolean isItalic,
boolean isBold)
Provides a font instance by either creating a new one and aggregating it to the diagram or finding it in the diagrams list of fonts. |
void |
movePolylinePoint(Polyline polyline,
int index,
int deltaX,
int deltaY)
Move polyline point. |
void |
resetAll(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. |
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.IGaLayoutService |
|---|
calculateSize, calculateSize, setHeight, setLocation, setLocation, setLocationAndSize, setLocationAndSize, setSize, setWidth |
| Field Detail |
|---|
static final String DEFAULT_FONT
static final int DEFAULT_FONT_SIZE
| Method Detail |
|---|
void deleteFont(Font font)
font - the font to deletevoid deleteColor(Color color)
color - the color to deletevoid deleteRenderingStyle(AbstractStyle abstractStyle)
abstractStyle - the abstract style from which to delete the RenderingStyle.
Style findStyle(StyleContainer styleContainer,
String id)
styleContainer - the style containerid - style id
double getRotation(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 resetAll(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 the colorscolorConstant - which contains the RGB values.
Color manageColor(Diagram diagram,
int red,
int green,
int blue)
diagram - the diagram that aggregates the colorsred - the redgreen - the greenblue - the blue
Font manageDefaultFont(Diagram diagram)
diagram - the diagram that aggregates the fonts
Font manageDefaultFont(Diagram diagram,
boolean isItalic,
boolean isBold)
diagram - the diagram that aggregates the fontsisItalic - the is italicisBold - the is bold
Font manageFont(Diagram diagram,
String name,
int size)
diagram - the diagram that aggregates the fontsname - the name of the fontsize - the size of the font
Font manageFont(Diagram diagram,
String name,
int size,
boolean isItalic,
boolean isBold)
diagram - the diagram that aggregates the fontsname - the name of the fontsize - the size of the fontisItalic - the is italicisBold - the is bold
void movePolylinePoint(Polyline polyline,
int index,
int deltaX,
int deltaY)
polyline - the polylineindex - the indexdeltaX - the delta xdeltaY - the delta y
void 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 | |||||||||