Class SemanticFreeHEPSVGGraphics
java.lang.Object
java.awt.Graphics
java.awt.Graphics2D
de.cau.cs.kieler.klighd.piccolo.export.KlighdAbstractSVGGraphics
de.cau.cs.kieler.klighd.piccolo.freehep.SemanticFreeHEPSVGGraphics
- All Implemented Interfaces:
KlighdSWTGraphicsEx,KlighdSWTGraphics
Wrapper for the FreeHEP
SVGGraphics2D class.- Author:
- uru
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.cau.cs.kieler.klighd.piccolo.export.KlighdAbstractSVGGraphics
KlighdAbstractSVGGraphics.KlighdGradientPaint -
Constructor Summary
ConstructorsConstructorDescriptionSemanticFreeHEPSVGGraphics(Rectangle2D bounds, Boolean textAsShapes, Boolean embedFonts, String description, String css, String additionalRootData) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSemanticData(KlighdSemanticDiagramData semanticData) voidclear()voidendGroup()protected floatgetSVG()voidsetNextTextLength(double textLength) voidstartGroup(KlighdSemanticDiagramData semanticData) voidstream(OutputStream out) Methods inherited from class de.cau.cs.kieler.klighd.piccolo.export.KlighdAbstractSVGGraphics
addRenderingHints, canHandleMultiline, clearRect, clip, clipRect, copyArea, create, dispose, draw, draw, drawArc, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolyline, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, drawText, fill, fill, fillArc, fillOval, fillPolygon, fillRect, fillRoundRect, getAlpha, getBackground, getClip, getClipBounds, getColor, getComposite, getDevice, getDeviceConfiguration, getFillColor, getFont, getFontData, getFontMetrics, getFontRenderContext, getGC, getGraphicsDelegate, getLineAttributes, getLineWidth, getPaint, getRenderingHint, getRenderingHints, getStroke, getStrokeColor, getTransform, hit, resumeFontCaching, rotate, rotate, scale, setAlpha, setBackground, setCanHandleMultiline, setClip, setClip, setColor, setComposite, setDevice, setFillColor, setFillPattern, setFont, setFont, setFont, setGC, setGraphicsDelegate, setLineAttributes, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStrikeout, setStroke, setStrokeColor, setStrokePattern, setTransform, setUnderline, setXORMode, shear, stopFontCaching, transform, translate, translateMethods inherited from class java.awt.Graphics2D
draw3DRect, fill3DRectMethods inherited from class java.awt.Graphics
create, drawBytes, drawChars, drawPolygon, drawRect, fillPolygon, finalize, getClipBounds, getClipRect, getFontMetrics, hitClip, toString
-
Constructor Details
-
SemanticFreeHEPSVGGraphics
public SemanticFreeHEPSVGGraphics(Rectangle2D bounds, Boolean textAsShapes, Boolean embedFonts, String description, String css, String additionalRootData) - Parameters:
bounds- the bounds will be set as viewport values for the resulting root <svg ..> tag.textAsShapes- whether text should be rendered as shapesembedFonts- whether the texts' fonts shall be embedded in the outputdescription- optional description to be inserted into thedescproperty of the generated SVG. Can be null.
-
-
Method Details
-
getSVG
- Specified by:
getSVGin classKlighdAbstractSVGGraphics
-
clear
public void clear()- Specified by:
clearin classKlighdAbstractSVGGraphics
-
stream
- Specified by:
streamin classKlighdAbstractSVGGraphics- Throws:
IOException
-
addSemanticData
- Specified by:
addSemanticDatain interfaceKlighdSWTGraphics- Overrides:
addSemanticDatain classKlighdAbstractSVGGraphics
-
startGroup
- Specified by:
startGroupin interfaceKlighdSWTGraphics- Overrides:
startGroupin classKlighdAbstractSVGGraphics
-
endGroup
public void endGroup()- Specified by:
endGroupin interfaceKlighdSWTGraphics- Overrides:
endGroupin classKlighdAbstractSVGGraphics
-
setNextTextLength
public void setNextTextLength(double textLength) - Specified by:
setNextTextLengthin interfaceKlighdSWTGraphics- Overrides:
setNextTextLengthin classKlighdAbstractSVGGraphics
-
getAbsoluteFontHeight
protected float getAbsoluteFontHeight()- Overrides:
getAbsoluteFontHeightin classKlighdAbstractSVGGraphics
-