public class UGraphicG2d extends AbstractUGraphic<java.awt.Graphics2D> implements EnsureVisible
Constructor and Description |
---|
UGraphicG2d(HColor defaultBackground,
ColorMapper colorMapper,
StringBounder stringBounder,
java.awt.Graphics2D g2d,
double dpiFactor,
FileFormat format) |
Modifier and Type | Method and 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() |
void |
setBufferedImage(java.awt.image.BufferedImage bufferedImage) |
void |
startUrl(Url url) |
void |
writeToStream(java.io.OutputStream os,
java.lang.String metadata,
int dpi) |
afterDraw, copy, copy, draw, drawComment, getGraphicObject, getMaxX, getMaxY, ignoreShape, manageHiddenAutomatically, registerDriver, resetMax
basicCopy, basicCopy, closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getDefaultBackground, getParam, getStringBounder, getTranslate, getTranslateX, getTranslateY, matchesProperty, startGroup
public UGraphicG2d(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, java.awt.Graphics2D g2d, double dpiFactor, FileFormat format)
public final java.util.Set<Url> getAllUrlsEncountered()
public UGraphic apply(UChange change)
apply
in interface UGraphic
apply
in class AbstractCommonUGraphic
protected AbstractCommonUGraphic copyUGraphic()
copyUGraphic
in class AbstractCommonUGraphic
protected void beforeDraw()
beforeDraw
in class AbstractUGraphic<java.awt.Graphics2D>
protected final double getDpiFactor()
public void startUrl(Url url)
startUrl
in interface UGraphic
startUrl
in class AbstractCommonUGraphic
public void closeUrl()
closeUrl
in interface UGraphic
closeUrl
in class AbstractCommonUGraphic
public void ensureVisible(double x, double y)
ensureVisible
in interface EnsureVisible
public java.awt.image.BufferedImage getBufferedImage()
public void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
public java.awt.Graphics2D getGraphics2D()
public void writeToStream(java.io.OutputStream os, java.lang.String metadata, int dpi) throws java.io.IOException
writeToStream
in interface UGraphic
java.io.IOException
public double dpiFactor()
dpiFactor
in class AbstractCommonUGraphic