Class UGraphicG2d
- java.lang.Object
-
- net.sourceforge.plantuml.klimt.drawing.AbstractCommonUGraphic
-
- net.sourceforge.plantuml.klimt.drawing.AbstractUGraphic<java.awt.Graphics2D>
-
- net.sourceforge.plantuml.klimt.drawing.g2d.UGraphicG2d
-
- All Implemented Interfaces:
UGraphic,EnsureVisible
public class UGraphicG2d extends AbstractUGraphic<java.awt.Graphics2D> implements EnsureVisible
-
-
Constructor Summary
Constructors Constructor Description UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, java.awt.Graphics2D g2d, double dpiFactor, double dx, double dy, FileFormat format, AffineTransformation affineTransform)UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, java.awt.Graphics2D g2d, double dpiFactor, FileFormat format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UGraphicapply(UChange change)protected voidbeforeDraw()voidcloseUrl()protected AbstractCommonUGraphiccopyUGraphic()doubledpiFactor()voidensureVisible(double x, double y)java.util.Set<Url>getAllUrlsEncountered()java.awt.image.BufferedImagegetBufferedImage()protected doublegetDpiFactor()java.awt.Graphics2DgetGraphics2D()voidsetBufferedImage(java.awt.image.BufferedImage bufferedImage)voidstartUrl(Url url)voidwriteToStream(java.io.OutputStream os, java.lang.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 Detail
-
UGraphicG2d
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, java.awt.Graphics2D g2d, double dpiFactor, FileFormat format)
-
UGraphicG2d
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, java.awt.Graphics2D g2d, double dpiFactor, double dx, double dy, FileFormat format, AffineTransformation affineTransform)
-
-
Method Detail
-
getAllUrlsEncountered
public final java.util.Set<Url> getAllUrlsEncountered()
-
apply
public UGraphic apply(UChange change)
- Specified by:
applyin interfaceUGraphic- Overrides:
applyin classAbstractCommonUGraphic
-
copyUGraphic
protected AbstractCommonUGraphic copyUGraphic()
- Specified by:
copyUGraphicin classAbstractCommonUGraphic
-
beforeDraw
protected void beforeDraw()
- Overrides:
beforeDrawin classAbstractUGraphic<java.awt.Graphics2D>
-
getDpiFactor
protected final double getDpiFactor()
-
startUrl
public void startUrl(Url url)
- 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
public java.awt.image.BufferedImage getBufferedImage()
-
setBufferedImage
public void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
-
getGraphics2D
public java.awt.Graphics2D getGraphics2D()
-
writeToStream
public void writeToStream(java.io.OutputStream os, java.lang.String metadata, int dpi) throws java.io.IOException- Specified by:
writeToStreamin interfaceUGraphic- Throws:
java.io.IOException
-
dpiFactor
public double dpiFactor()
- Overrides:
dpiFactorin classAbstractCommonUGraphic
-
-