net.sourceforge.plantuml.ugraphic.g2d
Class UGraphicG2d

java.lang.Object
  extended by net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
      extended by net.sourceforge.plantuml.ugraphic.AbstractUGraphic<Graphics2D>
          extended by net.sourceforge.plantuml.ugraphic.g2d.UGraphicG2d
All Implemented Interfaces:
EnsureVisible, UGraphic

public class UGraphicG2d
extends AbstractUGraphic<Graphics2D>
implements EnsureVisible


Constructor Summary
UGraphicG2d(ColorMapper colorMapper, Graphics2D g2d, double dpiFactor)
           
UGraphicG2d(ColorMapper colorMapper, Graphics2D g2d, double dpiFactor, AffineTransform affineTransform)
           
 
Method Summary
 UGraphic apply(UChange change)
           
protected  void beforeDraw()
           
 void closeAction()
           
protected  AbstractCommonUGraphic copyUGraphic()
           
 void ensureVisible(double x, double y)
           
 BufferedImage getBufferedImage()
           
protected  double getDpiFactor()
           
 Graphics2D getGraphics2D()
           
 StringBounder getStringBounder()
           
 void setBufferedImage(BufferedImage bufferedImage)
           
 void startUrl(Url url)
           
 void writeImage(OutputStream os, String metadata, int dpi)
           
 
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractUGraphic
afterDraw, draw, getGraphicObject, manageHiddenAutomatically, registerDriver
 
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
getClip, getColorMapper, getParam, getTranslateX, getTranslateY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UGraphicG2d

public UGraphicG2d(ColorMapper colorMapper,
                   Graphics2D g2d,
                   double dpiFactor)

UGraphicG2d

public UGraphicG2d(ColorMapper colorMapper,
                   Graphics2D g2d,
                   double dpiFactor,
                   AffineTransform affineTransform)
Method Detail

apply

public UGraphic apply(UChange change)
Specified by:
apply in interface UGraphic
Overrides:
apply in class AbstractCommonUGraphic

copyUGraphic

protected AbstractCommonUGraphic copyUGraphic()
Specified by:
copyUGraphic in class AbstractCommonUGraphic

getStringBounder

public StringBounder getStringBounder()
Specified by:
getStringBounder in interface UGraphic

beforeDraw

protected void beforeDraw()
Overrides:
beforeDraw in class AbstractUGraphic<Graphics2D>

getDpiFactor

protected final double getDpiFactor()

startUrl

public void startUrl(Url url)
Specified by:
startUrl in interface UGraphic

closeAction

public void closeAction()
Specified by:
closeAction in interface UGraphic

ensureVisible

public void ensureVisible(double x,
                          double y)
Specified by:
ensureVisible in interface EnsureVisible

getBufferedImage

public BufferedImage getBufferedImage()

setBufferedImage

public void setBufferedImage(BufferedImage bufferedImage)

getGraphics2D

public Graphics2D getGraphics2D()

writeImage

public void writeImage(OutputStream os,
                       String metadata,
                       int dpi)
                throws IOException
Specified by:
writeImage in interface UGraphic
Throws:
IOException


Copyright © 2013. All Rights Reserved.