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 void
void
closeUrl()
protected AbstractCommonUGraphic
double
void
ensureVisible
(double x, double y) protected final double
void
setBufferedImage
(BufferedImage bufferedImage) void
void
writeToStream
(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, resetMax
Methods 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:
apply
in interfaceUGraphic
- Overrides:
apply
in classAbstractCommonUGraphic
-
copyUGraphic
- Specified by:
copyUGraphic
in classAbstractCommonUGraphic
-
beforeDraw
protected void beforeDraw()- Overrides:
beforeDraw
in classAbstractUGraphic<Graphics2D>
-
getDpiFactor
protected final double getDpiFactor() -
startUrl
- Specified by:
startUrl
in interfaceUGraphic
- Overrides:
startUrl
in classAbstractCommonUGraphic
-
closeUrl
public void closeUrl()- Specified by:
closeUrl
in interfaceUGraphic
- Overrides:
closeUrl
in classAbstractCommonUGraphic
-
ensureVisible
public void ensureVisible(double x, double y) - Specified by:
ensureVisible
in interfaceEnsureVisible
-
getBufferedImage
-
setBufferedImage
-
getGraphics2D
-
writeToStream
- Specified by:
writeToStream
in interfaceUGraphic
- Throws:
IOException
-
dpiFactor
public double dpiFactor()- Overrides:
dpiFactor
in classAbstractCommonUGraphic
-