Package org.eclnt.ccaddons.diagram.svg
Class SVGUtils
java.lang.Object
org.eclnt.ccaddons.diagram.svg.SVGUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
compensateBaseLinePosition
(ChartShapeInstance csi, int[] textCoords, int fontSize) static String
createDefaultTextFragment
(ChartShapeInstance csi, SVGExportProperties exportProperties) static String
createDefaultTextFragment
(ChartShapeInstance csi, SVGExportProperties exportProperties, String text) static String
createTextFragment
(IFormattedText formattedText, String frag, int x, int y, int width, int height, String svgTextAnchor, String text, SVGExportProperties exportProperties, boolean vCentered, boolean limitHeight) static int[]
findMaxWidthHeight
(ShapeRepository repository, Chart chart) static String
getSVGTextAnchor
(String align) static int[]
getTextCoordsSVG
(ChartShapeInstance csi, int fontSize, TextBlock textBlock) static String
renderTextBlock
(String frag, int[] pos, String textAnchor, TextBlock textblock, SVGExportProperties exportProperties, boolean vCentered) static String
replaceFont
(String frag, Font font)
-
Field Details
-
FONT
- See Also:
-
DEFAULT_TEXTCOLOR
- See Also:
-
SVG_TEXT_DEFAULT
- See Also:
-
SVG_BACKGROUND_DEFAULT
- See Also:
-
-
Constructor Details
-
SVGUtils
public SVGUtils()
-
-
Method Details
-
createDefaultTextFragment
public static String createDefaultTextFragment(ChartShapeInstance csi, SVGExportProperties exportProperties) -
createDefaultTextFragment
public static String createDefaultTextFragment(ChartShapeInstance csi, SVGExportProperties exportProperties, String text) -
getSVGTextAnchor
-
createTextFragment
public static String createTextFragment(IFormattedText formattedText, String frag, int x, int y, int width, int height, String svgTextAnchor, String text, SVGExportProperties exportProperties, boolean vCentered, boolean limitHeight) -
replaceFont
-
renderTextBlock
public static String renderTextBlock(String frag, int[] pos, String textAnchor, TextBlock textblock, SVGExportProperties exportProperties, boolean vCentered) -
findMaxWidthHeight
-
getTextCoordsSVG
-
compensateBaseLinePosition
public static int[] compensateBaseLinePosition(ChartShapeInstance csi, int[] textCoords, int fontSize)
-