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, resetMaxbasicCopy, basicCopy, closeGroup, enlargeClip, flushUg, getClip, getColorMapper, getDefaultBackground, getParam, getStringBounder, getTranslate, getTranslateX, getTranslateY, matchesProperty, startGrouppublic 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 UGraphicapply in class AbstractCommonUGraphicprotected AbstractCommonUGraphic copyUGraphic()
copyUGraphic in class AbstractCommonUGraphicprotected void beforeDraw()
beforeDraw in class AbstractUGraphic<java.awt.Graphics2D>protected final double getDpiFactor()
public void startUrl(Url url)
startUrl in interface UGraphicstartUrl in class AbstractCommonUGraphicpublic void closeUrl()
closeUrl in interface UGraphiccloseUrl in class AbstractCommonUGraphicpublic void ensureVisible(double x,
double y)
ensureVisible in interface EnsureVisiblepublic 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 UGraphicjava.io.IOExceptionpublic double dpiFactor()
dpiFactor in class AbstractCommonUGraphic