net.sf.jaxodraw.util.graphics
Class JaxoGraphics2D

java.lang.Object
  extended by java.awt.Graphics
      extended by java.awt.Graphics2D
          extended by net.sf.jaxodraw.util.graphics.JaxoWrapperGraphics2D
              extended by net.sf.jaxodraw.util.graphics.JaxoGraphics2D
All Implemented Interfaces:
Cloneable

public class JaxoGraphics2D
extends JaxoWrapperGraphics2D

Graphic2Ds that also stores JaxoDraw-specific state and can perform JaxoDraw-specific painting.

Since:
2.0

Constructor Summary
JaxoGraphics2D(Graphics2D g)
          Constructor.
 
Method Summary
 boolean isPrinting()
          If printing is active, do not paint any UI-elements or aids.
 void setPrinting(boolean value)
          Sets whether printing is currently active.
 
Methods inherited from class net.sf.jaxodraw.util.graphics.JaxoWrapperGraphics2D
addRenderingHints, clearRect, clip, clipRect, clone, copy, copyArea, create, create, dispose, draw, draw3DRect, drawArc, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, fill, fill3DRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, getBackground, getClip, getClipBounds, getClipBounds, getColor, getComposite, getDeviceConfiguration, getFont, getFontMetrics, getFontMetrics, getFontRenderContext, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hit, hitClip, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, transform, translate, translate
 
Methods inherited from class java.awt.Graphics
finalize, getClipRect, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaxoGraphics2D

public JaxoGraphics2D(Graphics2D g)
Constructor.

Parameters:
g - The Graphics2D object.
Method Detail

isPrinting

public final boolean isPrinting()
If printing is active, do not paint any UI-elements or aids.

Returns:
True if printing is active.

setPrinting

public void setPrinting(boolean value)
Sets whether printing is currently active.

Parameters:
value - True if printing is active.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.