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:
java.lang.Cloneable

public class JaxoGraphics2D
extends JaxoWrapperGraphics2D

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

Since:
2.0

Field Summary
static java.awt.Color DEFAULT_HELP_COLOR
          Default visualAid color.
static java.awt.Stroke DEFAULT_HELP_STROKE
          Default visualAid Stroke.
 
Constructor Summary
JaxoGraphics2D(java.awt.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
 

Field Detail

DEFAULT_HELP_COLOR

public static final java.awt.Color DEFAULT_HELP_COLOR
Default visualAid color.


DEFAULT_HELP_STROKE

public static final java.awt.Stroke DEFAULT_HELP_STROKE
Default visualAid Stroke.

Constructor Detail

JaxoGraphics2D

public JaxoGraphics2D(java.awt.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.


Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.