|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDisplayAdapter
Adapter to connect the display and the model.
Method Summary | |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.Component comp,
java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2)
Draw model in this region. |
java.awt.Dimension |
getDisplaySize()
Get size of the display. |
java.awt.geom.Point2D.Double |
getPanDelta(java.awt.geom.Point2D.Double delta)
Ask the model how much to pan, given where the user scrolled. |
java.awt.geom.Point2D.Double |
getViewPosition(java.awt.geom.Point2D.Double pos)
Ask the model where to scroll, given where the user has scrolled. |
void |
returnHome(IScrollAdapter sa)
The action to be executed if the display should return home. |
Method Detail |
---|
void draw(java.awt.Graphics2D g, java.awt.Component comp, java.awt.geom.Point2D.Double p1, java.awt.geom.Point2D.Double p2)
g
- graphics objectcomp
- the component to drawFish onp1
- top left edge of the regionp2
- bottom right edge of the regionjava.awt.Dimension getDisplaySize()
void returnHome(IScrollAdapter sa)
sa
- scroll adapterjava.awt.geom.Point2D.Double getViewPosition(java.awt.geom.Point2D.Double pos)
pos
- position where the user scrolled to
getPanDelta(java.awt.geom.Point2D.Double)
java.awt.geom.Point2D.Double getPanDelta(java.awt.geom.Point2D.Double delta)
delta
- how far the user scrolled
getViewPosition(java.awt.geom.Point2D.Double)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |