Class ViewControl

java.lang.Object
  |
  +--ViewControl

public class ViewControl
extends java.lang.Object
implements Map.Listener


Field Summary
static int AUTO_ENTITIES
           
static int AUTO_LIGHTS
           
static int AUTO_LINES
           
static int AUTO_NONE
           
static int AUTO_SECTORS
           
static int AUTO_VERTS
           
static int MODE_NEW_ENTITY
           
static int MODE_NEW_LIGHT
           
static int MODE_NEW_SECTOR
           
static int MODE_NONE
           
static int MODE_SELECT
           
 
Constructor Summary
ViewControl(javax.swing.JMenu menu, javax.swing.JMenu selectMenu)
           
 
Method Summary
 int getAutoSelectMode()
           
 int getGridSize()
           
 javax.swing.JPanel getInfoBar()
           
 int getMode()
           
 Point3D getSnapped(int x, int y, int z)
           
 Point3D getSnapped(Point3D p)
           
 boolean isAutoSelect(int mode)
           
 boolean isMode(int mode)
           
 boolean isSnapEnabled()
           
 void mapChanged(java.awt.Rectangle clip)
           
 void mapSizeChanged()
           
 void mapTransientChanged()
           
 void registerViewController(View2d view, Controller2d controller)
           
 void setGridSize(int size)
           
 void setMap(Map map)
           
 void setViewCursors(java.awt.Cursor cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_NONE

public static int MODE_NONE

MODE_SELECT

public static int MODE_SELECT

MODE_NEW_SECTOR

public static int MODE_NEW_SECTOR

MODE_NEW_LIGHT

public static int MODE_NEW_LIGHT

MODE_NEW_ENTITY

public static int MODE_NEW_ENTITY

AUTO_NONE

public static int AUTO_NONE

AUTO_SECTORS

public static int AUTO_SECTORS

AUTO_LINES

public static int AUTO_LINES

AUTO_VERTS

public static int AUTO_VERTS

AUTO_LIGHTS

public static int AUTO_LIGHTS

AUTO_ENTITIES

public static int AUTO_ENTITIES
Constructor Detail

ViewControl

public ViewControl(javax.swing.JMenu menu,
                   javax.swing.JMenu selectMenu)
Method Detail

setMap

public void setMap(Map map)

setGridSize

public void setGridSize(int size)

getGridSize

public int getGridSize()

getSnapped

public Point3D getSnapped(int x,
                          int y,
                          int z)

getSnapped

public Point3D getSnapped(Point3D p)

getAutoSelectMode

public int getAutoSelectMode()

isAutoSelect

public boolean isAutoSelect(int mode)

getMode

public int getMode()

isMode

public boolean isMode(int mode)

isSnapEnabled

public boolean isSnapEnabled()

setViewCursors

public void setViewCursors(java.awt.Cursor cursor)

registerViewController

public void registerViewController(View2d view,
                                   Controller2d controller)

getInfoBar

public javax.swing.JPanel getInfoBar()

mapChanged

public void mapChanged(java.awt.Rectangle clip)
Specified by:
mapChanged in interface Map.Listener

mapTransientChanged

public void mapTransientChanged()
Specified by:
mapTransientChanged in interface Map.Listener

mapSizeChanged

public void mapSizeChanged()
Specified by:
mapSizeChanged in interface Map.Listener