jfig.canvas
Interface FigDrawable

All Known Subinterfaces:
FigObject
All Known Implementing Classes:
FigBaseobject, FigPolyline

public interface FigDrawable

manage redraw of FIG objects on a FigCanvas.

The FigDrawable interface specifies the methods that all FigObjects must implement in order to be drawn to a FigCanvas.


Method Summary
 FigBbox get_sc_bbox()
          get the bounding box of this object, screen coords (current FigTrafo2D)
 FigBbox getBbox()
          get the bounding box of this object, world coords
 boolean getSyncRedrawFlag()
          is a sync redraw pending on this object?
 boolean isVisible(FigBbox bbox)
          is this object visible within the given FigBbox?
 void paint(java.awt.Graphics g)
          paint this object using a default transformation and Graphics g
 void paint(java.awt.Graphics g, FigTrafo2D trafo)
          paint this object using the specified transformation and Graphics g
 void setSyncRedrawFlag(boolean b)
          set or reset whether this objects needs a sync redraw
 void setTrafo(FigTrafo2D trafo)
          set a transformation for this object
 

Method Detail

paint

public void paint(java.awt.Graphics g)
paint this object using a default transformation and Graphics g


paint

public void paint(java.awt.Graphics g,
                  FigTrafo2D trafo)
paint this object using the specified transformation and Graphics g


setTrafo

public void setTrafo(FigTrafo2D trafo)
set a transformation for this object


isVisible

public boolean isVisible(FigBbox bbox)
is this object visible within the given FigBbox?


getBbox

public FigBbox getBbox()
get the bounding box of this object, world coords


get_sc_bbox

public FigBbox get_sc_bbox()
get the bounding box of this object, screen coords (current FigTrafo2D)


getSyncRedrawFlag

public boolean getSyncRedrawFlag()
is a sync redraw pending on this object?


setSyncRedrawFlag

public void setSyncRedrawFlag(boolean b)
set or reset whether this objects needs a sync redraw