|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.MapHandlerChild com.bbn.openmap.OMComponent com.bbn.openmap.event.AbstractMouseMode com.bbn.openmap.event.CoordMouseMode com.bbn.openmap.event.OMMouseMode
public class OMMouseMode
OMMouseMode is a combination of the PanMouseMode, NavMouseMode and SelectMouseMode. Press and drag to pan. Double click to re-center, CTRL double click to re-center and zoom. Shift-CTRL-Double click to center and zoom out. Double click to select OMGraphics. Right click for pop-up menu.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.event.AbstractMouseMode |
---|
AbstractMouseMode.MouseWheelTimerListener |
Field Summary | |
---|---|
static java.lang.String |
AZ_PANNING_PROPERTY
|
static java.lang.String |
AZ_PANNING_SHAPEFILE_PROPERTY
|
protected java.lang.String |
coordString
|
static float |
DEFAULT_OPAQUENESS
|
static java.lang.String |
LEAVE_SHADOW_PROPERTY
|
static java.lang.String |
modeID
|
static java.lang.String |
OPAQUENESS_PROPERTY
|
java.awt.geom.Point2D |
rPoint1
rPoint1 is the anchor point of a line segment |
java.awt.geom.Point2D |
rPoint2
rPoint2 is the new (current) point of a line segment |
protected BufferedMapBean |
theMap
|
static java.lang.String |
USE_CURSOR_PROPERTY
|
Fields inherited from class com.bbn.openmap.event.CoordMouseMode |
---|
coordFormatter, coordFormatterHandler, CoordFormatterProperty, infoDelegator |
Fields inherited from class com.bbn.openmap.OMComponent |
---|
i18n, propertyPrefix |
Fields inherited from class com.bbn.openmap.MapHandlerChild |
---|
beanContextChildSupport, isolated |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
OMMouseMode()
|
Method Summary | |
---|---|
DrawingAttributes |
getAzDrawing()
|
java.lang.String |
getAzPanningShapefile()
|
protected BufferedMapBean |
getBufferedMapBean(java.awt.event.MouseEvent evt)
Checks the MouseEvent to see if a BufferedMapBean can be found. |
float |
getOpaqueness()
|
int |
getOX()
|
int |
getOY()
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the OMComponent. |
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. |
boolean |
isLeaveShadow()
|
boolean |
isPanning()
|
boolean |
isUseCursor()
|
void |
listenerPaint(java.lang.Object source,
java.awt.Graphics g)
PaintListener method. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(java.awt.event.MouseEvent arg0)
Fires a mouse location to the InformationDelegator, and then calls the super class method which calls the MouseSupport method. |
void |
mousePressed(java.awt.event.MouseEvent e)
Process a mouse pressed event. |
void |
mouseReleased(java.awt.event.MouseEvent arg0)
Invoked when a mouse button has been released on a component. |
void |
setAzDrawing(DrawingAttributes azDrawing)
|
void |
setAzPanningShapefile(java.lang.String azPanningShapefile)
|
void |
setLeaveShadow(boolean leaveShadow)
|
void |
setOpaqueness(float opaqueness)
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent. |
void |
setUseCursor(boolean useCursor)
|
Methods inherited from class com.bbn.openmap.event.CoordMouseMode |
---|
findAndInit, findAndUndo, fireMouseLocation, getCoordFormatter, getCoordFormatterHandler, getInfoDelegator, mouseMoved, propertyChange, setActive, setCoordFormatter, setCoordFormatterHandler, setInfoDelegator |
Methods inherited from class com.bbn.openmap.OMComponent |
---|
getPropertyPrefix, setProperties, setPropertyPrefix |
Methods inherited from class com.bbn.openmap.MapHandlerChild |
---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OPAQUENESS_PROPERTY
public static final java.lang.String LEAVE_SHADOW_PROPERTY
public static final java.lang.String USE_CURSOR_PROPERTY
public static final java.lang.String AZ_PANNING_SHAPEFILE_PROPERTY
public static final java.lang.String AZ_PANNING_PROPERTY
public static final float DEFAULT_OPAQUENESS
public static final transient java.lang.String modeID
public java.awt.geom.Point2D rPoint1
public java.awt.geom.Point2D rPoint2
protected BufferedMapBean theMap
protected java.lang.String coordString
Constructor Detail |
---|
public OMMouseMode()
Method Detail |
---|
public boolean isUseCursor()
public void setUseCursor(boolean useCursor)
useCursor
- The useCursor to set.public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class CoordMouseMode
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class CoordMouseMode
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.
public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponent
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class CoordMouseMode
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
protected BufferedMapBean getBufferedMapBean(java.awt.event.MouseEvent evt)
evt
- MouseEvent, or a MapMouseEvent
public void listenerPaint(java.lang.Object source, java.awt.Graphics g)
listenerPaint
in interface PaintListener
listenerPaint
in class AbstractMouseMode
source
- the source object, most likely the MapBeang
- java.awt.Graphicspublic void mouseDragged(java.awt.event.MouseEvent arg0)
CoordMouseMode
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class CoordMouseMode
arg0
- mouse event.The first click for drag, the image is generated. This image is
redrawing when the mouse is move, but, I need to repain the original
image.
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class AbstractMouseMode
e
- mouse event.public void mouseClicked(java.awt.event.MouseEvent e)
AbstractMouseMode
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class AbstractMouseMode
e
- MouseEventpublic void mouseReleased(java.awt.event.MouseEvent arg0)
AbstractMouseMode
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class AbstractMouseMode
arg0
- MouseEventMake Pan event for the map.
public boolean isLeaveShadow()
public void setLeaveShadow(boolean leaveShadow)
public float getOpaqueness()
public void setOpaqueness(float opaqueness)
public boolean isPanning()
public int getOX()
public int getOY()
public java.lang.String getAzPanningShapefile()
public void setAzPanningShapefile(java.lang.String azPanningShapefile)
azPanningShapefile
- the azPanningShapefile to setpublic DrawingAttributes getAzDrawing()
public void setAzDrawing(DrawingAttributes azDrawing)
azDrawing
- the azDrawing to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |