|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.gui.VectorDisplay
public class VectorDisplay
Used to display VectorSpaces - non-discrete spaces.
| Field Summary | |
|---|---|
protected VectorSpace |
space
|
protected boolean |
view
|
| Fields inherited from interface uchicago.src.sim.gui.Displayable |
|---|
TOGGLE_LINKS, TOGGLE_NODES, TOGGLE_UPDATE_LAYOUT, TOGGLE_VIEW, TOGGLE_WRAP |
| Constructor Summary | |
|---|---|
VectorDisplay(java.util.List list,
int width,
int height)
Constructs a VectorDisplay to display the specified list of objects with the specified with and height. |
|
VectorDisplay(VectorSpace space,
int width,
int height)
Constructs a VectorDisplay to display the specified space with the specified with and height. |
|
| Method Summary | |
|---|---|
void |
drawDisplay(SimGraphics g)
Draws this VectorDisplay. |
java.util.ArrayList |
getDisplayableInfo()
Gets a list of the DisplayInfo object associated with this Object2DDisplay. |
java.util.ArrayList |
getObjectsAt(int x,
int y)
Gets a list of the objects that contain the specified screen coordinate. |
java.awt.Dimension |
getSize()
Gets the size of this VectorDisplay. |
void |
reSize(int width,
int height)
|
void |
setMoveableXY(Moveable moveable,
int x,
int y)
Sets the new coordinates for specified moveable. |
void |
viewEventPerformed(ViewEvent evt)
Invoked when a viewEvent for this display is fired by the DisplaySurface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean view
protected VectorSpace space
| Constructor Detail |
|---|
public VectorDisplay(VectorSpace space,
int width,
int height)
space - the space to displaywidth - the width of the displayheight - the height of the displayNonGridDrawable
public VectorDisplay(java.util.List list,
int width,
int height)
space - the space to displaywidth - the width of the displayheight - the height of the displayNonGridDrawable| Method Detail |
|---|
public java.awt.Dimension getSize()
getSize in interface Displayablepublic void drawDisplay(SimGraphics g)
drawDisplay in interface Displayableg - the graphics context with which to drawpublic java.util.ArrayList getDisplayableInfo()
getDisplayableInfo in interface DisplayableDisplayInfopublic void viewEventPerformed(ViewEvent evt)
viewEventPerformed in interface Displayable
public java.util.ArrayList getObjectsAt(int x,
int y)
getObjectsAt in interface Probeablex - the x coordinatey - the y coordinate
public void setMoveableXY(Moveable moveable,
int x,
int y)
setMoveableXY in interface Probeablemoveable - the moveable whose coordinates are changedx - the x coordinate in pixelsy - the y coordinate in pixels
public void reSize(int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||