Class UGraphicG2d
java.lang.Object
net.sourceforge.plantuml.klimt.drawing.AbstractCommonUGraphic
net.sourceforge.plantuml.klimt.drawing.AbstractUGraphic<Graphics2D>
net.sourceforge.plantuml.klimt.drawing.g2d.UGraphicG2d
- All Implemented Interfaces:
UGraphic,EnsureVisible
-
Constructor Summary
ConstructorsConstructorDescriptionUGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor, FileFormat format) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcloseUrl()protected AbstractCommonUGraphicdoublevoidensureVisible(double x, double y) protected final doublevoidsetBufferedImage(BufferedImage bufferedImage) voidvoidwriteToStream(OutputStream os, String metadata, int dpi) Methods inherited from class net.sourceforge.plantuml.klimt.drawing.AbstractUGraphic
afterDraw, copy, copy, draw, drawComment, getGraphicObject, getMaxX, getMaxY, ignoreShape, manageHiddenAutomatically, registerDriver, resetMaxMethods inherited from class net.sourceforge.plantuml.klimt.drawing.AbstractCommonUGraphic
basicCopy, basicCopy, closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getDefaultBackground, getParam, getStringBounder, getTranslate, getTranslateX, getTranslateY, matchesProperty, startGroup
-
Constructor Details
-
UGraphicG2d
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor, FileFormat format)
-
-
Method Details
-
getAllUrlsEncountered
-
apply
- Specified by:
applyin interfaceUGraphic- Overrides:
applyin classAbstractCommonUGraphic
-
copyUGraphic
- Specified by:
copyUGraphicin classAbstractCommonUGraphic
-
beforeDraw
protected void beforeDraw()- Overrides:
beforeDrawin classAbstractUGraphic<Graphics2D>
-
getDpiFactor
protected final double getDpiFactor() -
startUrl
- Specified by:
startUrlin interfaceUGraphic- Overrides:
startUrlin classAbstractCommonUGraphic
-
closeUrl
public void closeUrl()- Specified by:
closeUrlin interfaceUGraphic- Overrides:
closeUrlin classAbstractCommonUGraphic
-
ensureVisible
public void ensureVisible(double x, double y) - Specified by:
ensureVisiblein interfaceEnsureVisible
-
getBufferedImage
-
setBufferedImage
-
getGraphics2D
-
writeToStream
- Specified by:
writeToStreamin interfaceUGraphic- Throws:
IOException
-
dpiFactor
public double dpiFactor()- Overrides:
dpiFactorin classAbstractCommonUGraphic
-