|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ViewController
A view controller manages a component's views. A component may have more than one view. Since the views are stored in lists they can be mapped to the respective elements of the component's chains. The view controller is responsible for showing the component's mark status. The views of a view controller are frequently transformed according to the model to view transformation.
| Method Summary | |
|---|---|
Component |
getComponent()
Returns the component associated to this View Controller. |
void |
setComponent(Component c,
Marker m)
Assigns a component to this View Controller. |
void |
updateViews(java.awt.geom.AffineTransform modelToView,
java.awt.geom.Rectangle2D panelBounds,
int panelFlags,
java.awt.Graphics g)
This method is called if the view should be updated. |
java.util.ListIterator<View> |
viewIterator()
An iterator over the views of this view controller. |
| Methods inherited from interface cib.cad.kernel.View |
|---|
draw, getBounds, intersects |
| Method Detail |
|---|
Component getComponent()
void setComponent(Component c,
Marker m)
c - the Componentm - the Marker indicating the selection status
void updateViews(java.awt.geom.AffineTransform modelToView,
java.awt.geom.Rectangle2D panelBounds,
int panelFlags,
java.awt.Graphics g)
modelToView - the model to view transformationpanelBounds - the panel boundspanelFlags - the panel flagsg - the Graphicsjava.util.ListIterator<View> viewIterator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||