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
 void centerChar(double x, double y, char c, UFont font)
           
 void closeAction()
           
 void ensureVisible(double x, double y)
           
 BufferedImage getBufferedImage()
           
protected  double getDpiFactor()
           
 Graphics2D getGraphics2D()
           
 StringBounder getStringBounder()
           
 void setAntiAliasing(boolean trueForOn)
           
 void setBufferedImage(BufferedImage bufferedImage)
           
 void setClip(UClip uclip)
           
 void startUrl(Url url)
           
 
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractUGraphic
afterDraw, beforeDraw, createGroup, draw, getGraphicObject, manageHiddenAutomatically, registerDriver
 
Methods inherited from class net.sourceforge.plantuml.ugraphic.AbstractCommonUGraphic
getColorMapper, getParam, getTranslateX, getTranslateY, setTranslate, translate
 
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

getStringBounder

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

setClip

public void setClip(UClip uclip)
Specified by:
setClip in interface UGraphic

centerChar

public void centerChar(double x,
                       double y,
                       char c,
                       UFont font)
Specified by:
centerChar in interface UGraphic

getDpiFactor

protected final double getDpiFactor()

setAntiAliasing

public void setAntiAliasing(boolean trueForOn)
Specified by:
setAntiAliasing in interface UGraphic

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()


Copyright © 2013. All Rights Reserved.