|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.gui.GisDisplay
| Field Summary |
| Fields inherited from interface uchicago.src.sim.gui.Displayable |
TOGGLE_LINKS, TOGGLE_NODES, TOGGLE_UPDATE_LAYOUT, TOGGLE_VIEW, TOGGLE_WRAP |
| Constructor Summary | |
GisDisplay()
|
|
GisDisplay(int width)
|
|
| Method Summary | |
void |
addLayer(GisLayer l)
|
void |
drawDisplay(SimGraphics g)
Draws whatever implements this interface on the SimGraphics object |
ArrayList |
getDisplayableInfo()
Returns an ArrayList of DisplayInfo objects used by a DisplaySurface to create the View menu for that displayable |
int |
getHeight()
|
int |
getNodeHeight()
|
int |
getNodeWidth()
|
ArrayList |
getObjectsAt(int x,
int y)
Gets the objects at the coordinate x, y. |
Dimension |
getSize()
Gets the size of the display. |
int |
getWidth()
|
uchicago.src.sim.gui.GisDisplay.IntPoint |
scalePoint(com.vividsolutions.jts.geom.Coordinate point)
|
void |
setMoveableXY(Moveable moveable,
int x,
int y)
Sets the new coordinates for specified moveable. |
void |
setNodeHeight(int nodeHeight)
|
void |
setNodeWidth(int nodeWidth)
|
void |
setWidth(int width)
|
void |
viewEventPerformed(ViewEvent evt)
Invoked when a display event occurs, through the view menu of a display surface for example. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GisDisplay()
public GisDisplay(int width)
| Method Detail |
public int getNodeWidth()
public void setNodeWidth(int nodeWidth)
public int getNodeHeight()
public void setNodeHeight(int nodeHeight)
public void addLayer(GisLayer l)
public void drawDisplay(SimGraphics g)
Displayable
drawDisplay in interface Displayablepublic ArrayList getDisplayableInfo()
Displayable
getDisplayableInfo in interface DisplayableDisplayInfopublic void viewEventPerformed(ViewEvent evt)
Displayable
viewEventPerformed in interface Displayablepublic int getWidth()
public void setWidth(int width)
public int getHeight()
public Dimension getSize()
Displayable
getSize in interface Displayablepublic uchicago.src.sim.gui.GisDisplay.IntPoint scalePoint(com.vividsolutions.jts.geom.Coordinate point)
public ArrayList getObjectsAt(int x,
int y)
Probeable
getObjectsAt in interface Probeablex - the x screen coordinate.y - the y screen coordinate.
public void setMoveableXY(Moveable moveable,
int x,
int y)
Probeable
setMoveableXY in interface Probeablemoveable - the moveable whose coordinates are changedx - the x coordinate in pixelsy - the y coordinate in pixels
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||