ptolemy.vergil.pdfrenderer
Class PDFIcon.PDFPaintedObject

java.lang.Object
  extended by ptolemy.vergil.pdfrenderer.PDFIcon.PDFPaintedObject
All Implemented Interfaces:
PaintedObject
Enclosing class:
PDFIcon

private class PDFIcon.PDFPaintedObject
extends java.lang.Object
implements PaintedObject


Constructor Summary
private PDFIcon.PDFPaintedObject()
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
          Get the bounding box of the object when painted.
 void paint(java.awt.Graphics2D graphics)
          Paint the shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFIcon.PDFPaintedObject

private PDFIcon.PDFPaintedObject()
Method Detail

getBounds

public java.awt.geom.Rectangle2D getBounds()
Description copied from interface: PaintedObject
Get the bounding box of the object when painted. Implementations of this method should take account of the thickness of the stroke, if there is one.

Specified by:
getBounds in interface PaintedObject

paint

public void paint(java.awt.Graphics2D graphics)
Description copied from interface: PaintedObject
Paint the shape. Implementations are expected to redraw the entire object. Whether or not the paint overwrites fields in the graphics context such as the current paint, stroke, and composite, depends on the implementing class.

Specified by:
paint in interface PaintedObject