Class UGraphicG2d
- java.lang.Object
-
- net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
-
- net.sourceforge.plantuml.ugraphic.AbstractUGraphic<java.awt.Graphics2D>
-
- net.sourceforge.plantuml.ugraphic.g2d.UGraphicG2d
-
- All Implemented Interfaces:
EnsureVisible
,UGraphic
,UGraphic2
public class UGraphicG2d extends AbstractUGraphic<java.awt.Graphics2D> implements EnsureVisible, UGraphic2
-
-
Constructor Summary
Constructors Constructor Description UGraphicG2d(ColorMapper colorMapper, java.awt.Graphics2D g2d, double dpiFactor)
UGraphicG2d(ColorMapper colorMapper, java.awt.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)
java.util.Set<Url>
getAllUrlsEncountered()
java.awt.image.BufferedImage
getBufferedImage()
protected double
getDpiFactor()
java.awt.Graphics2D
getGraphics2D()
StringBounder
getStringBounder()
void
setBufferedImage(java.awt.image.BufferedImage bufferedImage)
void
startUrl(Url url)
void
writeImageTOBEMOVED(java.io.OutputStream os, java.lang.String metadata, int dpi)
-
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractUGraphic
afterDraw, draw, drawComment, getGraphicObject, manageHiddenAutomatically, registerDriver
-
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getParam, getTranslateX, getTranslateY, matchesProperty, startGroup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.plantuml.ugraphic.UGraphic
closeGroup, draw, flushUg, getColorMapper, getParam, matchesProperty, startGroup
-
-
-
-
Constructor Detail
-
UGraphicG2d
public UGraphicG2d(ColorMapper colorMapper, java.awt.Graphics2D g2d, double dpiFactor)
-
UGraphicG2d
public UGraphicG2d(ColorMapper colorMapper, java.awt.Graphics2D g2d, double dpiFactor, AffineTransformation affineTransform, double dx, double dy)
-
-
Method Detail
-
getAllUrlsEncountered
public final java.util.Set<Url> getAllUrlsEncountered()
-
apply
public UGraphic apply(UChange change)
- Specified by:
apply
in interfaceUGraphic
- Overrides:
apply
in classAbstractCommonUGraphic
-
copyUGraphic
protected AbstractCommonUGraphic copyUGraphic()
- Specified by:
copyUGraphic
in classAbstractCommonUGraphic
-
getStringBounder
public StringBounder getStringBounder()
- Specified by:
getStringBounder
in interfaceUGraphic
-
beforeDraw
protected void beforeDraw()
- Overrides:
beforeDraw
in classAbstractUGraphic<java.awt.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 java.awt.image.BufferedImage getBufferedImage()
-
setBufferedImage
public void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
-
getGraphics2D
public java.awt.Graphics2D getGraphics2D()
-
writeImageTOBEMOVED
public void writeImageTOBEMOVED(java.io.OutputStream os, java.lang.String metadata, int dpi) throws java.io.IOException
- Specified by:
writeImageTOBEMOVED
in interfaceUGraphic2
- Throws:
java.io.IOException
-
dpiFactor
public double dpiFactor()
- Overrides:
dpiFactor
in classAbstractCommonUGraphic
-
-