de.erichseifert.gral
Class DrawingContext

java.lang.Object
  extended by de.erichseifert.gral.DrawingContext

public class DrawingContext
extends Object

Class that encapsulates an object for drawing and context information.


Nested Class Summary
static class DrawingContext.Quality
          Data type that describes the quality mode of drawing operations.
static class DrawingContext.Target
          Data type that describes the type of the drawing target.
 
Constructor Summary
DrawingContext(Graphics2D graphics)
          Initializes a new context with a Graphics2D object.
DrawingContext(Graphics2D graphics, DrawingContext.Quality quality, DrawingContext.Target target)
          Initializes a new context with a Graphics2D object.
 
Method Summary
 Graphics2D getGraphics()
          Returns the object for drawing geometry.
 DrawingContext.Quality getQuality()
          Returns the desired display quality.
 DrawingContext.Target getTarget()
          Returns the drawing target.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawingContext

public DrawingContext(Graphics2D graphics)
Initializes a new context with a Graphics2D object.

Parameters:
graphics - Object for drawing geometry.

DrawingContext

public DrawingContext(Graphics2D graphics,
                      DrawingContext.Quality quality,
                      DrawingContext.Target target)
Initializes a new context with a Graphics2D object.

Parameters:
graphics - Object for drawing geometry.
quality - Drawing quality.
target - Target media.
Method Detail

getGraphics

public Graphics2D getGraphics()
Returns the object for drawing geometry.

Returns:
Graphics object.

getQuality

public DrawingContext.Quality getQuality()
Returns the desired display quality.

Returns:
Display quality mode.

getTarget

public DrawingContext.Target getTarget()
Returns the drawing target.

Returns:
Drawing target.


Copyright © 2009-2010. All Rights Reserved.