packageForLT06
Interface DotView

All Known Implementing Classes:
FilledDotView, WireFrameDotView

public interface DotView


Method Summary
 void addMouseListener(java.awt.event.MouseListener l)
           
 void changed()
           Method that changes this view in response to any change in the data model.
 java.awt.Dimension getPreferredSize()
           
 boolean isInTopRegion(java.awt.Point point)
           
 void paintComponent(java.awt.Graphics g)
          This method renders the graphics of this view.
 

Method Detail

paintComponent

void paintComponent(java.awt.Graphics g)
This method renders the graphics of this view. The method is invoked any time the view is repainted. This method will cause all of the widgets contain within it to be rendered (according to that widget's paintComponent(Graphics) method.


getPreferredSize

java.awt.Dimension getPreferredSize()

changed

void changed()

Method that changes this view in response to any change in the data model. If the data model changes, the view repaints itself anew.

This method is invoked to signal to this listener that the model (upon which this listener has been installed) has been changed. This provides an opportunity for the listener to something in response to any change to the model.

Who invokes this method? Think of who has been given access to this view... The documentation for the constructor specifies that this view has been installed upon the specified data model. So the data model is able to invoke this method within its inner workings.


isInTopRegion

boolean isInTopRegion(java.awt.Point point)

addMouseListener

void addMouseListener(java.awt.event.MouseListener l)