|
|||||||||||
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
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 inherited from class com.bbn.openmap.event.AbstractMouseMode |
AbstractMouseMode.MouseWheelZoomEditor |
Field Summary | |
float |
DEFAULT_OPAQUENESS
|
static java.lang.String |
LeaveShadowProperty
|
static java.lang.String |
modeID
|
static java.lang.String |
OpaquenessProperty
|
static java.lang.String |
UseCursorProperty
|
Fields inherited from class com.bbn.openmap.event.CoordMouseMode |
infoDelegator |
Fields inherited from class com.bbn.openmap.event.AbstractMouseMode |
cursor, CursorIDProperty, df, guiIcon, iconName, IconProperty, ID, IDProperty, mouseSupport, MouseWheelZoomProperty, prettyName, PrettyNameProperty, visible, ZOOM_IN, ZOOM_OUT, zoomWhenMouseWheelUp |
Fields inherited from class com.bbn.openmap.OMComponent |
i18n, propertyPrefix |
Fields inherited from class com.bbn.openmap.MapHandlerChild |
beanContextChildSupport |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
PanMouseMode()
|
Method Summary | |
void |
createBuffers(int w,
int h)
Instanciates 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 |
createBuffersImpl(int w,
int h)
Instanciates new image buffers. |
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 |
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 |
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 |
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 |
createCoordinateInformationLine, findAndInit, findAndUndo, fireMouseLocation, getInfoDelegator, mouseMoved, 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, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
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 OpaquenessProperty
public static final java.lang.String LeaveShadowProperty
public static final java.lang.String UseCursorProperty
public 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
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 AbstractMouseMode
public java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class AbstractMouseMode
public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponent
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class AbstractMouseMode
public 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 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 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 createBuffers(int w, int h)
w
- mapBean's width.h
- mapBean's height.protected void createBuffersImpl(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 |