Class UGraphicG2d
java.lang.Object
net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
net.sourceforge.plantuml.ugraphic.AbstractUGraphic<Graphics2D>
net.sourceforge.plantuml.ugraphic.g2d.UGraphicG2d
- All Implemented Interfaces:
EnsureVisible,UGraphic
-
Constructor Summary
ConstructorsConstructorDescriptionUGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor) UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor, AffineTransformation affineTransform, double dx, double dy) -
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.ugraphic.AbstractUGraphic
afterDraw, draw, drawComment, getGraphicObject, ignoreShape, manageHiddenAutomatically, registerDriverMethods inherited from class net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getDefaultBackground, getParam, getStringBounder, getTranslateX, getTranslateY, matchesProperty, startGroup
-
Constructor Details
-
UGraphicG2d
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor) -
UGraphicG2d
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, Graphics2D g2d, double dpiFactor, AffineTransformation affineTransform, double dx, double dy)
-
-
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
-