|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.event.AbstractMouseMode
com.bbn.openmap.event.CoordMouseMode
com.bbn.openmap.event.PanMouseMode
public class PanMouseMode
PanMouseMode it is a class for Pan operation on the visible map. This class show actual map in transparent mode. 25-feb-2005. There are a couple of properties that can be set in this mouse mode:
# Floating number between 0-1, with 1 being opaque, default .5 panmm.opaqueness=.5f # True/false, to leave old map up behind panned version. panmm.leaveShadow=true
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
|
static float |
DEFAULT_OPAQUENESS
|
static java.lang.String |
LEAVE_SHADOW_PROPERTY
|
static java.lang.String |
modeID
|
static java.lang.String |
OPAQUENESS_PROPERTY
|
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 | |
---|---|
PanMouseMode()
|
Method Summary | |
---|---|
void |
createBuffer(int w,
int h)
Instantiates new image buffers if needed. This method is synchronized to avoid creating the images multiple times if width and height doesn't change. |
protected void |
createBufferImpl(int w,
int h)
Instantiates new image buffers. |
DrawingAttributes |
getAzDrawing()
|
java.lang.String |
getAzPanningShapefile()
|
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 |
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 arg0)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent arg0)
Invoked when a mouse button has been released on a component. |
void |
projectionChanged(ProjectionEvent e)
Invoked when there has been a fundamental change to the Map. |
void |
setActive(boolean val)
If the MouseMode has been made inactive, clean out any input that might have been made to the info line. |
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, 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
Constructor Detail |
---|
public PanMouseMode()
Method Detail |
---|
public void setActive(boolean val)
CoordMouseMode
setActive
in interface MapMouseMode
setActive
in class CoordMouseMode
val
- true if the mode has been made active, false if it has been
made inactive.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.
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 mousePressed(java.awt.event.MouseEvent arg0)
AbstractMouseMode
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class AbstractMouseMode
arg0
- MouseEventpublic 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 repaint the
original image.
public 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 setpublic void projectionChanged(ProjectionEvent e)
ProjectionListener
Layers are expected to recompute their graphics (if this makes
sense), and then repaint()
themselves.
projectionChanged
in interface ProjectionListener
e
- ProjectionEventpublic void createBuffer(int w, int h)
w
- mapBean's width.h
- mapBean's height.protected void createBufferImpl(int w, int h)
w
- Non-zero mapBean's width.h
- Non-zero mapBean's height.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |