Package fr.ifremer.isisfish.map
Class IsisMapBean
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.bbn.openmap.gui.OMComponentPanel
com.bbn.openmap.gui.BasicMapPanel
com.bbn.openmap.gui.OverlayMapPanel
fr.ifremer.isisfish.map.IsisMapBean
- All Implemented Interfaces:
com.bbn.openmap.gui.MapPanel
,com.bbn.openmap.LightMapHandlerChild
,com.bbn.openmap.PropertyConsumer
,MapDataListener
,ImageObserver
,MenuContainer
,BeanContextChild
,BeanContextMembershipListener
,PropertyChangeListener
,Serializable
,EventListener
,Accessible
IsisMapBean.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Modifier and TypeFieldDescriptionprotected CellSelectionLayer
protected com.bbn.openmap.event.MapMouseMode
protected com.bbn.openmap.LayerHandler
protected MapDataProvider
protected float
protected float
protected com.bbn.openmap.MouseDelegator
protected float
protected float
protected List<com.bbn.openmap.event.MapMouseListener>
protected float
protected float
protected static final float
protected int
Fields inherited from class com.bbn.openmap.gui.OverlayMapPanel
ACTIVE_WIDGET_COLOR_PROPERTY, activeWidgetColors, DEFAULT_WIDGET_BUTTON_SIZE, INACTIVE_WIDGET_COLOR_PROPERTY, inactiveWidgetColors, WIDGET_SIZE_PROPERTY, widgetButtonSize, widgets
Fields inherited from class com.bbn.openmap.gui.BasicMapPanel
logger, mapBean, mapHandler, menuList, propertyHandler, SET_NAME_PROPERTY, setName
Fields inherited from class com.bbn.openmap.gui.OMComponentPanel
beanContextChildSupport, i18n, isolated, orientation, propertyPrefix, windowSupport
Fields inherited from class javax.swing.JComponent
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
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.bbn.openmap.PropertyConsumer
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDrawingAttributes
(Properties p, String layerId, String lineColor, String fillColor) protected void
protected void
Add a new layer to the map depending on mapFile extension.void
addMapMouseListener
(com.bbn.openmap.event.MapMouseListener mml) void
addResultatLayer
(String id, ResultatLayer layer) void
addSelectedCells
(Cell... cells) void
protected void
protected void
protected com.bbn.openmap.Layer
getDTEDLayer
(String layerId, String mapFile, String lineColor, String fillColor) Manage DTED layer display.protected com.bbn.openmap.Layer
getE00Layer
(String layerId, String mapFile, String lineColor, String fillColor) Manage E00 layer display.com.bbn.openmap.LayerHandler
Get the value of layerHandler.protected com.bbn.openmap.Layer
getMIFLayer
(String layerId, String mapFile, String lineColor, String fillColor) Manage MIF layer display.protected com.bbn.openmap.Layer
getRPFLayer
(String layerId, String mapFile, String lineColor, String fillColor) Manage RPF layer display.Retourne la liste des mailles selectionnées.int
Get the value of selectionMode.protected com.bbn.openmap.Layer
getShapeLayer
(String layerId, String mapFile, String lineColor, String fillColor) Manage shp layer display.protected com.bbn.openmap.Layer
getVPFLayer
(String layerId, String mapFile, String lineColor, String fillColor) Manage VPF layer display.void
init()
protected void
initMap()
init the mServer property value.protected void
void
Region or cell changed.void
void
removeMapMouseListener
(com.bbn.openmap.event.MapMouseListener mml) void
removeSelectedCells
(Cell... cells) void
setActiveMouseMode
(com.bbn.openmap.event.CoordMouseMode mode) void
setFisheryRegion
(FisheryRegion fisheryRegion) Deprecated.void
setMapDataProvider
(MapDataProvider mapDataProvider) void
setSelectedCells
(Cell... cells) void
setSelectedCells
(List<Cell> cells) void
setSelectionMode
(int v) Set the value of selectionMode.Methods inherited from class com.bbn.openmap.gui.OverlayMapPanel
addMapBeanToPanel, getActiveWidgetColors, getInactiveWidgetColors, getProperties, getWidgetButtonSize, includeExitMenuItem, layoutPanel, main, propertyChange, setActiveWidgetColors, setBorders, setInactiveWidgetColors, setProperties, setWidgetButtonSize
Methods inherited from class com.bbn.openmap.gui.BasicMapPanel
addMapComponent, addMapPanelChild, addProperties, addProperties, addProperties, addProperty, appendProperty, appendProperty, create, createComponents, createLayoutManager, createMapBean, createMapBean, dispose, findAndInit, findAndUndo, getMapBean, getMapComponent, getMapComponentByType, getMapComponentsByType, getMapHandler, getMapMenu, getMapMenuBar, getProperties, getPropertyHandler, isSetName, prependProperty, prependProperty, removeMapComponent, removeMarker, removeProperty, setMapBean, setPropertyHandler, setSetName
Methods inherited from class com.bbn.openmap.gui.OMComponentPanel
addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, fireVetoableChange, getBeanContext, getOrientation, getPropertyInfo, getPropertyPrefix, getWindowSupport, isIsolated, removeVetoableChangeListener, setBeanContext, setIsolated, setOrientation, setProperties, setPropertyPrefix, setWindowSupport
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, 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, setVisible, unregisterKeyboardAction, update
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, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, removePropertyChangeListener
-
Field Details
-
mapDataProvider
-
pasMailleLatitude
protected float pasMailleLatitude -
pasMailleLongitude
protected float pasMailleLongitude -
minLatitude
protected float minLatitude -
maxLatitude
protected float maxLatitude -
minLongitude
protected float minLongitude -
maxLongitude
protected float maxLongitude -
orderedListener
-
layerHandler
protected com.bbn.openmap.LayerHandler layerHandler -
currentMouseMode
protected com.bbn.openmap.event.MapMouseMode currentMouseMode -
md
protected com.bbn.openmap.MouseDelegator md -
activeSelectionLayer
-
selectionMode
protected int selectionMode -
SCALE
protected static final float SCALE- See Also:
-
-
Constructor Details
-
IsisMapBean
public IsisMapBean()
-
-
Method Details
-
init
public void init() -
setActiveMouseMode
public void setActiveMouseMode(com.bbn.openmap.event.CoordMouseMode mode) -
addMapMouseListener
public void addMapMouseListener(com.bbn.openmap.event.MapMouseListener mml) -
removeMapMouseListener
public void removeMapMouseListener(com.bbn.openmap.event.MapMouseListener mml) -
setFisheryRegion
Deprecated.since 4.4.1 use nowMapDataProvider
-
setMapDataProvider
-
regionChanged
public void regionChanged()Description copied from interface:MapDataListener
Region or cell changed.- Specified by:
regionChanged
in interfaceMapDataListener
-
refreshMap
protected void refreshMap() -
getMapDataProvider
-
getSelectedCells
Retourne la liste des mailles selectionnées.- Returns:
- selected map list
-
setSelectedCells
-
setSelectedCells
-
addSelectedCells
-
removeSelectedCells
-
getLayerHandler
public com.bbn.openmap.LayerHandler getLayerHandler()Get the value of layerHandler.- Returns:
- value of layerHandler.
-
addResultatLayer
-
removeAllResultatLayer
public void removeAllResultatLayer() -
addLayer
Add a new layer to the map depending on mapFile extension.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color
-
addDrawingAttributes
protected void addDrawingAttributes(Properties p, String layerId, String lineColor, String fillColor) -
getShapeLayer
protected com.bbn.openmap.Layer getShapeLayer(String layerId, String mapFile, String lineColor, String fillColor) Manage shp layer display.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- shape layer
- See Also:
-
ShapeLayer
-
getE00Layer
protected com.bbn.openmap.Layer getE00Layer(String layerId, String mapFile, String lineColor, String fillColor) Manage E00 layer display.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- e00 layer
- See Also:
-
E00Layer
-
getDTEDLayer
protected com.bbn.openmap.Layer getDTEDLayer(String layerId, String mapFile, String lineColor, String fillColor) Manage DTED layer display.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- dted layer
- See Also:
-
DTEDLayer
-
getMIFLayer
protected com.bbn.openmap.Layer getMIFLayer(String layerId, String mapFile, String lineColor, String fillColor) Manage MIF layer display.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- mif layer
- See Also:
-
MIFLayer
-
getRPFLayer
protected com.bbn.openmap.Layer getRPFLayer(String layerId, String mapFile, String lineColor, String fillColor) Manage RPF layer display. Seams to handle cadrg and cib files too.- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- rpf layer
- See Also:
-
RpfLayer
-
getVPFLayer
protected com.bbn.openmap.Layer getVPFLayer(String layerId, String mapFile, String lineColor, String fillColor) Manage VPF layer display. Can manage .vmap, .dcw, .vpf files ?- Parameters:
layerId
- layer idmapFile
- absolute map fail pathlineColor
- line colorfillColor
- fill color- Returns:
- vpf layer
- See Also:
-
VPFLayer
-
addGraticuleLayer
protected void addGraticuleLayer() -
addZoneDelimiterLayer
protected void addZoneDelimiterLayer() throws org.nuiton.topia.TopiaException- Throws:
org.nuiton.topia.TopiaException
-
addSpecificLayer
protected void addSpecificLayer() -
initMap
protected void initMap()init the mServer property value. -
getSelectionMode
public int getSelectionMode()Get the value of selectionMode.- Returns:
- value of selectionMode.
-
setSelectionMode
public void setSelectionMode(int v) Set the value of selectionMode.- Parameters:
v
- value to assign to selectionMode.
-
addSelectionLayer
public void addSelectionLayer()
-
MapDataProvider