|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--y.view.Graph2DView | +--y.view.Overview
This is a specialized View which acts as Overview. The View displays always the entire Graph. Additionally it highlights the region that the associated Graph2DView currently displays.
The OverView has a specialized ViewMode associated with it that allows to change the viewport of the associated Graph2DView by dragging the highlighted area.
Field Summary |
Fields inherited from class y.view.Graph2DView |
BG_LAYER, FG_LAYER, LAYER_MODE, MOVE_SELECTION_MODE, NORMAL_MODE, SELECTION_BOX_MODE, UNBUFFERED_MODE |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface y.view.View2DConstants |
GRID_CROSS, GRID_LINES, GRID_NONE, GRID_POINTS |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Overview(Graph2DView view)
Create a new Overview for a given Graph2DView. |
Method Summary | |
void |
paint(Graphics g)
|
void |
propertyChange(PropertyChangeEvent ev)
Updates the view upon receiving a property change event. |
void |
reshape(int x,
int y,
int w,
int h)
Called on resize events |
void |
updateView()
Updates the View. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Overview(Graph2DView view)
Method Detail |
public void updateView()
updateView
in interface View
updateView
in class Graph2DView
public void paint(Graphics g)
paint
in class JComponent
public void reshape(int x, int y, int w, int h)
reshape
in class JComponent
public void propertyChange(PropertyChangeEvent ev)
propertyChange
in interface PropertyChangeListener
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |