Class ViewControl
java.lang.Object
|
+--ViewControl
- public class ViewControl
- extends java.lang.Object
- implements Map.Listener
|
Constructor Summary |
ViewControl(javax.swing.JMenu menu,
javax.swing.JMenu selectMenu)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
ViewControl
public ViewControl(javax.swing.JMenu menu,
javax.swing.JMenu selectMenu)
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