Package mgui.interfaces.maps
Class Map
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.maps.Map
- All Implemented Interfaces:
InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
public abstract class Map extends AbstractInterfaceObject implements XMLObject
Represents a coordinate mapping from one coordinate system to another (typically a model
system to screen or printer coordinates)
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<MapListener>
listeners
static int
MAP_2D
static int
MAP_3D
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description Map()
-
Method Summary
Modifier and Type Method Description void
addMapListener(MapListener l)
void
fireMapListeners()
int
getType()
double
getZoom()
void
removeMapListener(MapListener l)
void
setZoom(double z)
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mgui.interfaces.xml.XMLObject
getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, writeXML, writeXML, writeXML
-
Field Details
-
MAP_2D
public static final int MAP_2D- See Also:
- Constant Field Values
-
MAP_3D
public static final int MAP_3D- See Also:
- Constant Field Values
-
listeners
-
-
Constructor Details
-
Map
public Map()
-
-
Method Details
-
getType
public int getType() -
getZoom
public double getZoom() -
setZoom
public void setZoom(double z) -
fireMapListeners
public void fireMapListeners() -
addMapListener
-
removeMapListener
-