public interface IGaService extends IGaCreateService, IGaLayoutService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FONT |
static int |
DEFAULT_FONT_SIZE |
Modifier and Type | Method and Description |
---|---|
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,
java.lang.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,
java.lang.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,
java.lang.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 . |
createDefaultMultiText, createDefaultMultiText, createDefaultText, createDefaultText, createEllipse, createImage, createInvisibleRectangle, createMultiText, createMultiText, createMultiText, createMultiText, createPlainEllipse, createPlainImage, createPlainMultiText, createPlainMultiText, createPlainPlatformGraphicsAlgorithm, createPlainPolygon, createPlainPolygon, createPlainPolygon, createPlainPolygon, createPlainPolyline, createPlainPolyline, createPlainPolyline, createPlainPolyline, createPlainRectangle, createPlainRoundedRectangle, createPlainStyle, createPlainText, createPlainText, createPlatformGraphicsAlgorithm, createPoint, createPoint, createPointList, createPointList, createPolygon, createPolygon, createPolygon, createPolygon, createPolyline, createPolyline, createPolyline, createPolyline, createRectangle, createRoundedRectangle, createShiftedColor, createShiftedColor, createStyle, createText, createText, createText, createText, createTextStyle, createTextStyle, createTextStyleRegion, createTextStyleRegion
calculateSize, calculateSize, setHeight, setLocation, setLocation, setLocationAndSize, setLocationAndSize, setSize, setWidth
static final java.lang.String DEFAULT_FONT
static final int DEFAULT_FONT_SIZE
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, java.lang.String id)
styleContainer
- the style containerid
- style iddouble getRotation(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check stylesColor getBackgroundColor(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesFont getFont(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check stylesColor getForegroundColor(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesOrientation getHorizontalAlignment(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check stylesLineStyle getLineStyle(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesint getLineWidth(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesRenderingStyle getRenderingStyle(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesdouble getTransparency(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesOrientation getVerticalAlignment(AbstractText at, boolean checkStyles)
at
- the abstract textcheckStyles
- the check stylesvoid 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 stylesboolean isLineVisible(GraphicsAlgorithm ga, boolean checkStyles)
ga
- the graphics algorithmcheckStyles
- the check stylesboolean isProportional(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check stylesboolean isStretchH(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check stylesboolean isStretchV(Image image, boolean checkStyles)
image
- the imagecheckStyles
- the check stylesColor 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 blueFont manageDefaultFont(Diagram diagram)
diagram
- the diagram that aggregates the fontsFont manageDefaultFont(Diagram diagram, boolean isItalic, boolean isBold)
diagram
- the diagram that aggregates the fontsisItalic
- the is italicisBold
- the is boldFont manageFont(Diagram diagram, java.lang.String name, int size)
diagram
- the diagram that aggregates the fontsname
- the name of the fontsize
- the size of the fontFont manageFont(Diagram diagram, java.lang.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 boldvoid 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.