|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void paintComponent(java.awt.Graphics g)
java.awt.Dimension getPreferredSize()
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.
boolean isInTopRegion(java.awt.Point point)
void addMouseListener(java.awt.event.MouseListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |