diagapplet
Interface PainterInterface


public interface PainterInterface

Interface that allows the creation classes resposible for painting a component without needing to be derived from java.awt.Component or javax.swing.JComponent. Used by ImageJPanel and JPaintablePanel. Implemented by ImagePainter


Method Summary
 java.awt.Rectangle get_selected_rect()
          Get rectangle stored with set_selected_rect().
 void paintComponent(java.awt.Graphics g)
          Paint to the graphics object.
 void set_selected_rect(java.awt.Rectangle rect)
          Store a rectangle typically selected by the user via Mouse or MouseMotion event.
 

Method Detail

paintComponent

void paintComponent(java.awt.Graphics g)
Paint to the graphics object. Typically called by a components paintComponent() method.

Parameters:
g - Grahics object used for painting.

get_selected_rect

java.awt.Rectangle get_selected_rect()
Get rectangle stored with set_selected_rect().

Returns:
rectangle last selected.

set_selected_rect

void set_selected_rect(java.awt.Rectangle rect)
Store a rectangle typically selected by the user via Mouse or MouseMotion event.

Parameters:
rect -