|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
edu.umd.cs.piccolo.PCanvas
edu.umd.cs.piccolo.examples.BirdsEyeViewExample.BirdsEyeView
public class BirdsEyeViewExample.BirdsEyeView
The Birds Eye View Class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) PNode |
areaVisiblePNode
This is the node that shows the viewed area. |
(package private) PropertyChangeListener |
changeListener
The change listener to know when to update the birds eye view. |
(package private) int |
layerCount
|
(package private) PCanvas |
viewedCanvas
This is the canvas that is being viewed |
| Fields inherited from class edu.umd.cs.piccolo.PCanvas |
|---|
CURRENT_ZCANVAS, INTERACTING_CHANGED_NOTIFICATION, INTERATING_CHANGED_NOTIFICATION, PROPERTY_INTERACTING |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
BirdsEyeViewExample.BirdsEyeView()
Creates a new instance of a BirdsEyeView |
|
| Method Summary | |
|---|---|
void |
addLayer(PLayer new_layer)
Add a layer to list of viewed layers |
void |
connect(PCanvas canvas,
PLayer[] viewed_layers)
|
void |
disconnect()
Stop the birds eye view from receiving events from the viewed canvas and remove all layers |
void |
propertyChange(PropertyChangeEvent event)
This method will get called when the viewed canvas changes |
void |
removeLayer(PLayer old_layer)
Remove the layer from the viewed layers |
void |
updateFromViewed()
This method gets the state of the viewed canvas and updates the BirdsEyeViewer This can be called from outside code |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
PNode areaVisiblePNode
PCanvas viewedCanvas
PropertyChangeListener changeListener
int layerCount
| Constructor Detail |
|---|
public BirdsEyeViewExample.BirdsEyeView()
| Method Detail |
|---|
public void connect(PCanvas canvas,
PLayer[] viewed_layers)
public void addLayer(PLayer new_layer)
public void removeLayer(PLayer old_layer)
public void disconnect()
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic void updateFromViewed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||