|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object portaview.AbstractViewer
The general implementation of a viewer controller. This is used in the case where one needs to show a preview or full-screen view of an image. Note that this is an controller, not a view.
Field Summary | |
protected PortaViewModel |
model
|
protected AbstractDisplayerView |
view
|
Constructor Summary | |
AbstractViewer(PortaViewModel m)
Constructs an AbstractViewer, given the model that that this view observes on. |
Method Summary | |
PortaViewModel |
getModel()
|
AbstractDisplayerView |
getView()
|
void |
nextSlide()
Moves to the next slide. |
void |
pause()
Sets the viewer to pause. |
void |
play()
Sets the viewer to play. |
void |
prevSlide()
Moves to the previous slide. |
void |
setModel(PortaViewModel model)
Changes the internal PortaView model for this view. |
void |
setView(AbstractDisplayerView view)
Changes the view associated with this controller. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Observer |
update |
Field Detail |
protected PortaViewModel model
protected AbstractDisplayerView view
Constructor Detail |
public AbstractViewer(PortaViewModel m)
m
- the PortaViewModel that this view observes on.Method Detail |
public PortaViewModel getModel()
public void setModel(PortaViewModel model)
model
- the PortaView model.public void nextSlide()
public void prevSlide()
public void play()
public void pause()
public AbstractDisplayerView getView()
public void setView(AbstractDisplayerView view)
view
- the view to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |