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
public class UGraphicG2d extends AbstractUGraphic<Graphics2D> implements EnsureVisible
-
-
Constructor Summary
Constructors Constructor Description UGraphicG2d(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UGraphic
apply(UChange change)
protected void
beforeDraw()
void
closeUrl()
protected AbstractCommonUGraphic
copyUGraphic()
double
dpiFactor()
void
ensureVisible(double x, double y)
Set<Url>
getAllUrlsEncountered()
BufferedImage
getBufferedImage()
protected double
getDpiFactor()
Graphics2D
getGraphics2D()
void
setBufferedImage(BufferedImage bufferedImage)
void
startUrl(Url url)
void
writeToStream(OutputStream os, String metadata, int dpi)
-
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractUGraphic
afterDraw, draw, drawComment, getGraphicObject, ignoreShape, manageHiddenAutomatically, registerDriver
-
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getDefaultBackground, getParam, getStringBounder, getTranslate, getTranslateX, getTranslateY, matchesProperty, startGroup
-
-
-
-
Constructor Detail
-
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 Detail
-
apply
public UGraphic apply(UChange change)
- Specified by:
apply
in interfaceUGraphic
- Overrides:
apply
in classAbstractCommonUGraphic
-
copyUGraphic
protected AbstractCommonUGraphic copyUGraphic()
- Specified by:
copyUGraphic
in classAbstractCommonUGraphic
-
beforeDraw
protected void beforeDraw()
- Overrides:
beforeDraw
in classAbstractUGraphic<Graphics2D>
-
getDpiFactor
protected final double getDpiFactor()
-
startUrl
public void startUrl(Url url)
- 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
public BufferedImage getBufferedImage()
-
setBufferedImage
public void setBufferedImage(BufferedImage bufferedImage)
-
getGraphics2D
public Graphics2D getGraphics2D()
-
writeToStream
public void writeToStream(OutputStream os, String metadata, int dpi) throws IOException
- Specified by:
writeToStream
in interfaceUGraphic
- Throws:
IOException
-
dpiFactor
public double dpiFactor()
- Overrides:
dpiFactor
in classAbstractCommonUGraphic
-
-