|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.bbn.openmap.Layer
public abstract class Layer
Layer objects are components which can be added to the MapBean to make a map.
Layers implement the ProjectionListener interface to listen for ProjectionEvents. When the projection changes, they may need to refetch, regenerate their graphics, and then repaint themselves into the new view.
When the Layer is added to the MapBean, it will start receiving ProjectionEvents via the ProjectionListener.projectionChanged() method it has to implement. There is a setProjection(ProjectionEvent) methods that should be called from there if you want to save the projection for later use (handling MouseEvents, etc). If you call getProjection() before calling setProjection(), getProjection() will return null, and your OMGraphics will complain and probably freak out at some point.
// // SAMPLE handling of the ProjectionListener interface. public void projectionChanged(com.bbn.openmap.event.ProjectionEvent pe) { Projection proj = setProjection(pe); if (proj != null) { // Use the projection to gather OMGraphics in the layer, // and prepare the layer so that in the paint() method, // the OMGraphics get rendered. // Call any methods that kick off work to build graphics // here... // You get the paint() methods called by calling // repaint(): repaint(); } fireStatusUpdate(LayerStatusEvent.FINISH_WORKING); }
ProjectionListener
,
ProjectionEvent
,
PropertyConsumer
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected boolean |
addAsBackground
Flag used by the layer to indicate that it should be treated as a background layer, indicating that any cache mechanism available can enable extra buffering. |
static java.lang.String |
AddAsBackgroundProperty
Property 'background' to designate this layer as a background layer, which will cause extra buffering to occur if the application can handle it. |
protected boolean |
addToBeanContext
Used by the LayerHandler to check if the layer should be added to the MapHandler BeanContext. |
static java.lang.String |
AddToBeanContextProperty
The property to set to add the layer to the BeanContext "addToBeanContext". |
protected java.util.Hashtable |
attributes
Hashtable containing attribute information for the layer. |
protected boolean |
autoPalette
A flag to have the layer display it's palette when the properties are set. |
static java.lang.String |
AutoPaletteProperty
The property to show the palette when the layer is created - or, more accurately, when the properties are set. |
protected java.beans.beancontext.BeanContextChildSupport |
beanContextChildSupport
The BeanContext allows Layers to find other components, and other components to find the layer, if the layer is added to it. |
protected GeoCoordTransformation |
coordTransform
A translator that can be set to convert pre-projected coordinates from the file into decimal degree lat/lon, and for saving data to a file in pre-projected coordinates. |
static java.lang.String |
DataPathPrefixProperty
Generic property that may be set for a layer to let it know at runtime that a path prefix needs to be added to a relative data path. |
static java.lang.String |
DisplayPaletteCmd
Layer-defined action event command to display the palette. |
static java.lang.String |
DisplayPropertiesCmd
Layer-defined action event command to display the properties using an Inspector. |
protected boolean |
doHack
Part of a layer hack to notify the component listener when the component is hidden. |
static java.lang.String |
HidePaletteCmd
Layer-defined action event command to hide the palette. |
protected I18n |
i18n
All layers have access to an I18n object, which is provided by the Environment. |
protected ListenerSupport<java.awt.event.ComponentListener> |
localHackList
Part of a layer hack to notify the component listener when the component is hidden. |
protected float |
maxScale
A maximum projection scale value that the layer will respond to. |
static java.lang.String |
MaxScaleProperty
The property for designating the maximum projection scale value that the layer will respond to. |
protected float |
minScale
A minimum projection scale value that the layer will respond to. |
static java.lang.String |
MinScaleProperty
The property for designating the minimum projection scale value that the layer will respond to. |
protected java.awt.Container |
palette
A pointer to the JDialog or JInternalFrame. |
protected java.awt.event.ComponentListener |
paletteListener
A helper component listener that is paying attention to the visibility of the palette. |
static java.lang.String |
PrettyNameProperty
The String to use for a key lookup in a Properties object to find the name to use in a GUI relating to this layer. |
protected java.lang.String |
propertyPrefix
Token uniquely identifying this layer in the application properties. |
protected java.util.concurrent.atomic.AtomicBoolean |
readyToPaint
New variable to describe when a layer has responded to a projection change and is ready to be painted. |
static java.lang.String |
RedrawCmd
Layer-defined action event command to force a redraw on the layer. |
protected boolean |
removable
Flag to designate the layer as removable or not. |
static java.lang.String |
RemovableProperty
Property 'removable' to designate this layer as removable from the application, or able to be deleted. |
protected static java.lang.String |
SWING_PACKAGE
Pre-caches the swing package. |
static java.lang.String |
TransformProperty
The property used to name a class providing translation services (optional, depends on input data). |
protected WindowSupport |
windowSupport
Support class that now handles palette windows. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Layer()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
The default actionPerformed method for Layer. |
void |
addComponentListener(java.awt.event.ComponentListener cl)
Part of a layer hack to notify the component listener when the component is hidden. |
void |
added(java.awt.Container cont)
This method is called when the layer is added to the MapBean |
void |
addInfoDisplayListener(InfoDisplayListener aInfoDisplayListener)
Adds a listener for InfoDisplayEvent s. |
void |
addLayerStatusListener(LayerStatusListener aLayerStatusListener)
Adds a listener for LayerStatusEvent s. |
void |
addMouseListener(java.awt.event.MouseListener l)
Override to only allow swing package listeners. |
void |
addVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener in_vcl)
Method for BeanContextChild interface. |
void |
childrenAdded(java.beans.beancontext.BeanContextMembershipEvent bcme)
BeanContextMembershipListener method. |
void |
childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent bcme)
BeanContextMembershipListener method. |
void |
clearListeners()
|
void |
connectToBeanContext(java.beans.beancontext.BeanContext in_bc)
Layer method to just connect to the BeanContext, without grabbing the iterator as in setBeanContext(). |
protected WindowSupport |
createWindowSupport()
Callback method to override how window support is created. |
void |
disconnectFromBeanContext()
Layer method to just disconnect from the BeanContext, without grabbing the iterator as in setBeanContext(). |
void |
dispose()
Method called when layer detects that it has been removed from MapHandler, assumes it's being thrown away. |
protected void |
finalize()
|
void |
findAndInit(java.util.Iterator<?> it)
This is the method that your layer can use to find other objects within the MapHandler (BeanContext). |
void |
findAndInit(java.lang.Object obj)
This method is called by the findAndInit(Iterator) method, once for every object inside the iterator. |
void |
findAndUndo(java.lang.Object obj)
This is the method that does the opposite as the findAndInit(Object). |
void |
fireHideToolTip()
Request to hide the tool tips on the map. |
void |
firePaletteEvent(java.awt.event.ComponentEvent event)
Fire a component event to the Layer component listeners, with the palette as the component, letting them know if it's visible or not. |
void |
fireRequestBrowserContent(InfoDisplayEvent evt)
Sends a request to the InfoDisplay listener to display the information in the InfoDisplay event in a Browser. |
void |
fireRequestBrowserContent(java.lang.String browserContent)
Sends a request to the InfoDisplayListener to display the information in a Browser. |
void |
fireRequestCursor(java.awt.Cursor cursor)
Sends a request to the InfoDisplayListener to show a specific cursor over its component area. |
void |
fireRequestInfoLine(InfoDisplayEvent evt)
Sends a request to the InfoDisplayListener to show the information in the InfoDisplay event on an single line display facility. |
void |
fireRequestInfoLine(java.lang.String infoLine)
Sends a request to the InfoDisplay listener to display the information on an single line display facility. |
void |
fireRequestInfoLine(java.lang.String infoLine,
int loc)
Sends a request to the InfoDisplay listener to display the information on an single line display facility at preferred location. |
void |
fireRequestMessage(InfoDisplayEvent evt)
Sends a request to the InfoDisplayListener to put the information in the InfoDisplay event in a dialog window. |
void |
fireRequestMessage(java.lang.String message)
Sends a request to the InfoDisplayListener to display the information in a dialog window. |
void |
fireRequestToolTip(InfoDisplayEvent event)
Fire off a Tool Tip request to the InfoDisplayListeners. |
void |
fireRequestToolTip(java.lang.String tip)
Request to show the tool tips on the map. |
void |
fireRequestURL(InfoDisplayEvent evt)
Sends a request to the InfoDisplayListener to display a URL given in the InfoDisplay event in a Browser. |
void |
fireRequestURL(java.lang.String url)
Sends a request to the InfoDisplayListener to display a URL in a browser. |
void |
fireStatusUpdate(int status)
Sends a status update to the LayerStatusListener. |
void |
fireStatusUpdate(LayerStatusEvent evt)
Sends a status update to the LayerStatusListener. |
void |
fireVetoableChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a vetoable property update to any registered listeners. |
boolean |
getAddAsBackground()
Check to see if the layer is marked as one that should be considered a background layer. |
boolean |
getAddToBeanContext()
Set whether the Layer should be added to the BeanContext. |
java.lang.Object |
getAttribute(java.lang.Object key)
|
java.beans.beancontext.BeanContext |
getBeanContext()
Method for BeanContextChild interface. |
GeoCoordTransformation |
getCoordTransform()
|
java.awt.Component |
getGUI()
Gets the gui controls associated with the layer. |
javax.swing.Icon |
getIcon()
|
MapMouseListener |
getMapMouseListener()
Returns the MapMouseListener object that handles the mouse events. |
float |
getMaxScale()
|
float |
getMinScale()
|
protected static java.lang.String |
getPackage(java.lang.Class c)
Returns the package of the given class as a string. |
java.awt.Container |
getPalette()
Return the JDialog, or JInternalFrame, that serves as the palette for the layer. |
Projection |
getProjection()
Get the latest projection. |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the layer. |
java.util.Properties |
getPropertyInfo(java.util.Properties list)
Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. |
java.lang.String |
getPropertyPrefix()
Get the property key prefix that is being used to prepend to the property keys for Properties lookups. |
WindowSupport |
getWindowSupport()
Get the WindowSupport object handling the palette. |
boolean |
hasGUI()
A GUI query method for other components to use to display whether gui controls are available for this layer. |
void |
hidePalette()
Hide the layer's palette. |
boolean |
isAutoPalette()
|
boolean |
isProjectionOK(Projection proj)
Method that responds whether the Layer should render on the map, given a particular projection. |
boolean |
isReadyToPaint()
|
boolean |
isRemovable()
Check to see if the layer is marked as one that can be removed from an application. |
void |
notifyHideHack()
Part of a layer hack to notify the component listener when the component is hidden. |
protected java.lang.String |
prependDataPathPrefix(java.lang.String fileName)
The dataPathPrefix layer attribute lets you append a path to a relative path at runtime. |
void |
putAttribute(java.lang.Object key,
java.lang.Object value)
|
void |
removeComponentListener(java.awt.event.ComponentListener cl)
Part of a layer hack to notify the component listener when the component is hidden. |
boolean |
removeConfirmed()
Check to see if the removable layer can be removed now. |
void |
removed(java.awt.Container cont)
This method is called after the layer is removed from the MapBean and when the projection changes. |
void |
removeInfoDisplayListener(InfoDisplayListener aInfoDisplayListener)
Removes an InfoDisplayListener from this Layer. |
void |
removeLayerStatusListener(LayerStatusListener aLayerStatusListener)
Removes a LayerStatusListene from this Layer. |
void |
removeVetoableChangeListener(java.lang.String propertyName,
java.beans.VetoableChangeListener in_vcl)
Method for BeanContextChild interface. |
void |
renderDataForProjection(Projection proj,
java.awt.Graphics g)
This method is here to provide a default action for Layers as they act as a ProjectionPainter. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Repaint the layer. |
protected void |
resetPalette()
Called when something about the layer has changed that would require the palette to be reconfigured. |
void |
setAddAsBackground(boolean set)
Mark the layer as one that should be considered a background layer. |
void |
setAddToBeanContext(boolean set)
Set whether the Layer should be added to the BeanContext. |
void |
setAutoPalette(boolean autoPalette)
|
void |
setBeanContext(java.beans.beancontext.BeanContext in_bc)
Method for BeanContextChild interface. |
void |
setCoordTransform(GeoCoordTransformation coordTranslator)
|
void |
setIcon(javax.swing.Icon icon)
|
protected void |
setLayerProperties(java.lang.String prefix,
java.util.Properties props)
Called by setProperties. |
void |
setMaxScale(float maxScale)
|
void |
setMinScale(float minScale)
|
void |
setName(java.lang.String name)
|
void |
setPaletteVisible(boolean visible)
Make the palette visible or not, destroy if invisible. |
void |
setProjection(Projection proj)
Set the projection the layer should use for calculations. |
Projection |
setProjection(ProjectionEvent projEvent)
This method lets you take the ProjectionEvent received from the MapBean, and lets you know if you should do something with it. |
void |
setProperties(java.util.Properties props)
Sets the properties for the Layer . |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the Layer . |
void |
setPropertyPrefix(java.lang.String prefix)
Set the property key prefix that should be used by the PropertyConsumer. |
void |
setReadyToPaint(boolean readyToPaint)
|
void |
setRemovable(boolean set)
Mark the layer as removable, or one that can be deleted from the application. |
void |
setVisible(boolean show)
Part of a layer hack to notify the component listener when the component is hidden. |
void |
setWindowSupport(WindowSupport ws)
Set the WindowSupport object handling the palette. |
void |
showPalette()
Make the palette visible. |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.event.ProjectionListener |
---|
projectionChanged |
Methods inherited from interface java.beans.beancontext.BeanContextChild |
---|
addPropertyChangeListener, removePropertyChangeListener |
Field Detail |
---|
protected static final java.lang.String SWING_PACKAGE
JComponent
.
public static final java.lang.String PrettyNameProperty
public static final java.lang.String AddToBeanContextProperty
public static final java.lang.String AddAsBackgroundProperty
public static final java.lang.String RemovableProperty
public static final java.lang.String MinScaleProperty
public static final java.lang.String MaxScaleProperty
public static final java.lang.String AutoPaletteProperty
public static final java.lang.String DisplayPaletteCmd
public static final java.lang.String HidePaletteCmd
public static final java.lang.String DisplayPropertiesCmd
public static final java.lang.String RedrawCmd
public static final java.lang.String DataPathPrefixProperty
public static final java.lang.String TransformProperty
protected java.lang.String propertyPrefix
protected boolean addToBeanContext
protected boolean addAsBackground
protected boolean removable
protected boolean autoPalette
protected float minScale
protected float maxScale
protected transient WindowSupport windowSupport
protected transient java.awt.event.ComponentListener paletteListener
protected transient java.awt.Container palette
protected transient java.beans.beancontext.BeanContextChildSupport beanContextChildSupport
protected transient I18n i18n
protected java.util.Hashtable attributes
protected GeoCoordTransformation coordTransform
protected java.util.concurrent.atomic.AtomicBoolean readyToPaint
protected ListenerSupport<java.awt.event.ComponentListener> localHackList
protected boolean doHack
Constructor Detail |
---|
public Layer()
Method Detail |
---|
protected static java.lang.String getPackage(java.lang.Class c)
c
- a classpublic final void addMouseListener(java.awt.event.MouseListener l)
Swing popup menus, like JPopupMenu
grab the JComponent by
adding themselves as MouseListener
s. So this method allows
instances of classes in the xxx.swing package to be added as
MouseListener
s, and no one else.
addMouseListener
in class java.awt.Component
l
- a mouse listener.public void setProperties(java.util.Properties props)
Layer
. This particular method
assumes that the marker name is not needed, because all of the contents
of this Properties object are to be used for this layer, and scoping the
properties with a prefix is unnecessary.
setProperties
in interface PropertyConsumer
props
- the Properties
object.public void setProperties(java.lang.String prefix, java.util.Properties props)
Layer
. Part of the
PropertyConsumer interface. Layers which override this method should do
something like:
public void setProperties(String prefix, Properties props) { super.setProperties(prefix, props); // do local stuff }If the addToBeanContext property is not defined, it maintains the same state.
setProperties
in interface PropertyConsumer
prefix
- the token to prefix the property namesprops
- the Properties
objectprotected void setLayerProperties(java.lang.String prefix, java.util.Properties props)
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic void setName(java.lang.String name)
setName
in class java.awt.Component
public java.util.Properties getProperties(java.util.Properties props)
getProperties
in interface PropertyConsumer
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 list)
getPropertyInfo
in interface PropertyConsumer
list
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
public void setPropertyPrefix(java.lang.String prefix)
setPropertyPrefix
in interface PropertyConsumer
prefix
- the prefix String.public java.lang.String getPropertyPrefix()
getPropertyPrefix
in interface PropertyConsumer
public void setProjection(Projection proj)
public Projection setProjection(ProjectionEvent projEvent)
projEvent
- the ProjectionEvent from the ProjectionListener method.
public Projection getProjection()
public MapMouseListener getMapMouseListener()
public MapMouseListener getMapMouseListener() { return this; } public String[] getMouseModeServiceList() { return new String[] { SelectMouseMode.modeID }; }
public boolean hasGUI()
public java.awt.Component getGUI()
public void addInfoDisplayListener(InfoDisplayListener aInfoDisplayListener)
InfoDisplayEvent
s.
aInfoDisplayListener
- the listener to addpublic void removeInfoDisplayListener(InfoDisplayListener aInfoDisplayListener)
aInfoDisplayListener
- the listener to removepublic void fireRequestInfoLine(InfoDisplayEvent evt)
evt
- the InfoDisplay event carrying the string.public void fireRequestInfoLine(java.lang.String infoLine)
infoLine
- the string to put in the InfoDisplayEvent.public void fireRequestInfoLine(java.lang.String infoLine, int loc)
infoLine
- the string to put in the InfoDisplayEvent.loc
- the index of a preferred location, starting at 0.public void fireRequestBrowserContent(InfoDisplayEvent evt)
evt
- the InfoDisplayEvent holding the contents to put in the
Browser.public void fireRequestBrowserContent(java.lang.String browserContent)
browserContent
- the contents to put in the Browser.public void fireRequestURL(InfoDisplayEvent evt)
evt
- the InfoDisplayEvent holding the url location to give to the
Browser.public void fireRequestURL(java.lang.String url)
url
- the url location to give to the Browser.public void fireRequestCursor(java.awt.Cursor cursor)
cursor
- the cursor to use.public void fireRequestMessage(InfoDisplayEvent evt)
evt
- the InfoDisplayEvent holding the message to put into the
dialog window.public void fireRequestMessage(java.lang.String message)
message
- the message to put in the dialog window.public void fireRequestToolTip(java.lang.String tip)
tip
- string to display.public void fireHideToolTip()
public void fireRequestToolTip(InfoDisplayEvent event)
public void addLayerStatusListener(LayerStatusListener aLayerStatusListener)
LayerStatusEvent
s.
aLayerStatusListener
- LayerStatusListenerpublic void removeLayerStatusListener(LayerStatusListener aLayerStatusListener)
aLayerStatusListener
- the listener to removepublic void fireStatusUpdate(LayerStatusEvent evt)
evt
- LayerStatusEventpublic void fireStatusUpdate(int status)
status
- the new statuspublic void repaint(long tm, int x, int y, int width, int height)
repaint
in class javax.swing.JComponent
public void renderDataForProjection(Projection proj, java.awt.Graphics g)
If the layer doesn't override this method, then the paint(Graphics) method will be called.
renderDataForProjection
in interface ProjectionPainter
proj
- Projection of the map.g
- java.awt.Graphics to draw into.public boolean isProjectionOK(Projection proj)
proj
- The projection to test against.
public void added(java.awt.Container cont)
cont
- Containerpublic void removed(java.awt.Container cont)
cont
- Containerpublic void dispose()
public void setVisible(boolean show)
setVisible
in class javax.swing.JComponent
public void addComponentListener(java.awt.event.ComponentListener cl)
addComponentListener
in class java.awt.Component
public void removeComponentListener(java.awt.event.ComponentListener cl)
removeComponentListener
in class java.awt.Component
public void notifyHideHack()
public void setAddToBeanContext(boolean set)
public boolean getAddToBeanContext()
public void setAddAsBackground(boolean set)
public boolean getAddAsBackground()
public boolean isReadyToPaint()
public void setReadyToPaint(boolean readyToPaint)
readyToPaint
- the readyToPaint to setpublic void setRemovable(boolean set)
public boolean isRemovable()
public boolean removeConfirmed()
public void findAndInit(java.util.Iterator<?> it)
public void findAndInit(java.lang.Object obj)
public void childrenAdded(java.beans.beancontext.BeanContextMembershipEvent bcme)
childrenAdded
in interface java.beans.beancontext.BeanContextMembershipListener
public void childrenRemoved(java.beans.beancontext.BeanContextMembershipEvent bcme)
childrenRemoved
in interface java.beans.beancontext.BeanContextMembershipListener
public void findAndUndo(java.lang.Object obj)
public java.beans.beancontext.BeanContext getBeanContext()
getBeanContext
in interface java.beans.beancontext.BeanContextChild
public void setBeanContext(java.beans.beancontext.BeanContext in_bc) throws java.beans.PropertyVetoException
setBeanContext
in interface java.beans.beancontext.BeanContextChild
java.beans.PropertyVetoException
public void connectToBeanContext(java.beans.beancontext.BeanContext in_bc) throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void disconnectFromBeanContext() throws java.beans.PropertyVetoException
java.beans.PropertyVetoException
public void addVetoableChangeListener(java.lang.String propertyName, java.beans.VetoableChangeListener in_vcl)
addVetoableChangeListener
in interface java.beans.beancontext.BeanContextChild
public void removeVetoableChangeListener(java.lang.String propertyName, java.beans.VetoableChangeListener in_vcl)
removeVetoableChangeListener
in interface java.beans.beancontext.BeanContextChild
public void fireVetoableChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue) throws java.beans.PropertyVetoException
No event is fired if old and new are equal and non-null.
fireVetoableChange
in class javax.swing.JComponent
name
- The programmatic name of the property that is about to changeoldValue
- The old value of the propertynewValue
- - The new value of the property
java.beans.PropertyVetoException
- if the recipient wishes the property change
to be rolled back.public void clearListeners()
protected void finalize()
finalize
in class java.lang.Object
public void firePaletteEvent(java.awt.event.ComponentEvent event)
public java.awt.Container getPalette()
protected void resetPalette()
public void setPaletteVisible(boolean visible)
public void setWindowSupport(WindowSupport ws)
public WindowSupport getWindowSupport()
protected WindowSupport createWindowSupport()
public void showPalette()
public void hidePalette()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
public javax.swing.Icon getIcon()
public void setIcon(javax.swing.Icon icon)
public boolean isAutoPalette()
public void setAutoPalette(boolean autoPalette)
public float getMaxScale()
public void setMaxScale(float maxScale)
public float getMinScale()
public void setMinScale(float minScale)
public void putAttribute(java.lang.Object key, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.Object key)
public GeoCoordTransformation getCoordTransform()
public void setCoordTransform(GeoCoordTransformation coordTranslator)
protected java.lang.String prependDataPathPrefix(java.lang.String fileName)
fileName
- to prepend the attribute to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |