public class E00Layer extends OMGraphicHandlerLayer implements java.awt.event.ActionListener
Examples of properties for OpenMap:
### E00 layer e00.class=com.bbn.openmap.layer.e00.E00Layer e00.prettyName=E00 file e00.FileName=data/france/hynet.e00 ### E00 layer es00.class=E00.E00Layer es00.prettyName=ES00 file es00.FileName=data/france/rdline.e00 es00.ArcColors= FF0000FF,FFEE5F3C,FFFFCC00,FF339700,FFFFFFFF,FFFFFFFF,FFFFFFFF,FFFFFFFF,FF666666,FFFFFFFF es00.ArcVisible=true es00.LabVisible=false es00.Tx7Visible=true es00.LabFont =Arial 10 ITALIC BOLD ###other properties Tx7Color LabColors SelectTx7Color SelectLabColor SelectArcColor LabTextColor Tx7Font
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.awt.Paint[] |
ArcColors |
protected OMGraphicList |
arcs |
protected boolean |
ArcVisible |
protected java.io.File |
E00File |
protected javax.swing.JFileChooser |
fileChooser |
protected int |
filtreType |
protected int |
filtreValeur |
protected javax.swing.JPanel |
gui |
protected java.awt.Paint[] |
LabColors |
protected javax.swing.JLabel |
label |
protected java.awt.Font |
LabFont |
protected OMGraphic |
LabMarker |
protected OMGraphicList |
labs |
protected java.awt.Paint |
LabTextColor |
protected boolean |
LabVisible |
protected java.awt.Paint |
SelectArcColor |
protected java.awt.Paint |
SelectLabColor |
protected java.awt.Paint |
SelectTx7Color |
protected OMGraphicList |
tx7 |
protected java.awt.Paint |
Tx7Color |
protected java.awt.Font |
Tx7Font |
protected boolean |
Tx7Visible |
consumeEvents, ConsumeEventsProperty, filter, interruptable, InterruptableProperty, layerWorker, LAYERWORKER_LOCK, layerWorkerQueue, logger, mouseEventInterpreter, mouseModeIDs, MouseModesProperty, projectionChangePolicy, ProjectionChangePolicyProperty, renderPolicy, RenderPolicyProperty, selectedList, TransparencyProperty
addAsBackground, AddAsBackgroundProperty, addToBeanContext, AddToBeanContextProperty, attributes, autoPalette, AutoPaletteProperty, beanContextChildSupport, coordTransform, DataPathPrefixProperty, DisplayPaletteCmd, DisplayPropertiesCmd, doHack, HidePaletteCmd, i18n, localHackList, maxScale, MaxScaleProperty, minScale, MinScaleProperty, palette, paletteListener, PrettyNameProperty, propertyPrefix, RedrawCmd, removable, RemovableProperty, SWING_PACKAGE, TransformProperty, windowSupport
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
E00Layer() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Description of the Method
|
protected void |
addToGUI(javax.swing.JPanel gui,
javax.swing.AbstractButton b,
java.lang.String cmd)
Adds a feature to the GUI attribute of the E00Layer object
|
protected void |
addToGUI(javax.swing.JPanel gui,
javax.swing.JTextField b,
java.lang.String cmd)
Adds a feature to the Gui attribute of the E00Layer object
|
protected java.io.File |
chooseFile(int type)
Description of the Method
|
protected void |
exportArcs()
Description of the Method
|
protected void |
exportArcs1()
Description of the Method
|
protected void |
exportPoints()
Description of the Method
|
protected void |
filtre()
Description of the Method
|
protected java.awt.Frame |
getFrame()
Gets the Frame attribute of the E00Layer object
|
java.awt.Component |
getGUI()
Gets the GUI attribute of the E00Layer object
|
java.lang.String |
getInfoText(OMGraphic omg)
If applicable, should return a short, informational string about the
OMGraphic to be displayed in the InformationDelegator.
|
protected void |
openFile(java.io.File f)
Description of the Method
|
protected java.awt.Paint |
parseColor(java.util.Properties props,
java.lang.String prefix,
java.lang.String prop,
java.awt.Paint dfault)
Description of the Method
|
protected java.awt.Paint[] |
parseColors(java.util.Properties props,
java.lang.String prefix,
java.lang.String prop,
java.awt.Paint err)
Description of the Method
|
protected java.awt.Font |
parseFont(java.util.Properties props,
java.lang.String prefix,
java.lang.String prop,
java.awt.Font dfault)
Description of the Method
|
OMGraphicList |
prepare()
OMGraphicHandlerLayer method, get the OMGraphics from the data
in the file.
|
void |
setListVisibility() |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the
Layer . |
canSetList, copy, createLayerWorker, cut, deselect, dispose, doAction, doPrepare, filter, filter, filter, getConsumeEvents, getFilter, getItemsForMapMenu, getItemsForOMGraphicMenu, getLayerWorker, getList, getMapMouseListener, getMouseEventInterpreter, getMouseModeIDsForEvents, getProjectionChangePolicy, getProperties, getPropertyInfo, getRenderPolicy, getSelected, getToolTipTextFor, getTransparency, getTransparencyAdjustmentPanel, highlight, interrupt, isCancelled, isHighlightable, isInterruptable, isSelectable, isWorking, leftClick, mouseOver, paint, paste, projectionChanged, receivesMapEvents, renderDataForProjection, resetFiltering, select, setCancelled, setConsumeEvents, setFilter, setInterruptable, setLayerWorker, setList, setMouseEventInterpreter, setMouseModeIDsForEvents, setProjectionChangePolicy, setRenderPolicy, setTransparency, supportsSQL, unhighlight, workerComplete
addComponentListener, added, addInfoDisplayListener, addLayerStatusListener, addMouseListener, addVetoableChangeListener, childrenAdded, childrenRemoved, clearListeners, connectToBeanContext, createWindowSupport, disconnectFromBeanContext, finalize, findAndInit, findAndInit, findAndUndo, fireHideToolTip, firePaletteEvent, fireRequestBrowserContent, fireRequestBrowserContent, fireRequestCursor, fireRequestInfoLine, fireRequestInfoLine, fireRequestInfoLine, fireRequestMessage, fireRequestMessage, fireRequestToolTip, fireRequestToolTip, fireRequestURL, fireRequestURL, fireStatusUpdate, fireStatusUpdate, fireVetoableChange, getAddAsBackground, getAddToBeanContext, getAttribute, getBeanContext, getCoordTransform, getIcon, getMaxScale, getMinScale, getPackage, getPalette, getProjection, getPropertyPrefix, getWindowSupport, hasGUI, hidePalette, isAutoPalette, isProjectionOK, isRemovable, notifyHideHack, prependDataPathPrefix, putAttribute, removeComponentListener, removeConfirmed, removed, removeInfoDisplayListener, removeLayerStatusListener, removeVetoableChangeListener, repaint, resetPalette, setAddAsBackground, setAddToBeanContext, setAutoPalette, setBeanContext, setCoordTransform, setIcon, setLayerProperties, setMaxScale, setMinScale, setName, setPaletteVisible, setProjection, setProjection, setProperties, setPropertyPrefix, setRemovable, setVisible, setWindowSupport, showPalette
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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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
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
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, transferFocusBackward, transferFocusUpCycle
protected OMGraphicList arcs
protected OMGraphicList labs
protected OMGraphicList tx7
protected boolean ArcVisible
protected boolean LabVisible
protected boolean Tx7Visible
protected javax.swing.JPanel gui
protected javax.swing.JLabel label
protected java.awt.Paint[] ArcColors
protected java.awt.Paint[] LabColors
protected java.awt.Paint Tx7Color
protected java.awt.Paint SelectTx7Color
protected java.awt.Paint SelectLabColor
protected java.awt.Paint SelectArcColor
protected java.awt.Paint LabTextColor
protected OMGraphic LabMarker
protected java.awt.Font LabFont
protected java.awt.Font Tx7Font
protected int filtreValeur
protected int filtreType
protected javax.swing.JFileChooser fileChooser
protected java.io.File E00File
public OMGraphicList prepare()
prepare
in class OMGraphicHandlerLayer
public void setProperties(java.lang.String prefix, java.util.Properties props)
Layer
. This allows
Layer
s to get a richer set of parameters than
the setArgs
method.setProperties
in interface PropertyConsumer
setProperties
in class OMGraphicHandlerLayer
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.awt.Component getGUI()
protected void addToGUI(javax.swing.JPanel gui, javax.swing.AbstractButton b, java.lang.String cmd)
b
- The feature to be added to the GUI attributecmd
- The feature to be added to the GUI attributeprotected void addToGUI(javax.swing.JPanel gui, javax.swing.JTextField b, java.lang.String cmd)
b
- The feature to be added to the Gui attributecmd
- The feature to be added to the Gui attributepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class OMGraphicHandlerLayer
e
- Description of Parameterpublic java.lang.String getInfoText(OMGraphic omg)
OMGraphicHandlerLayer
getInfoText
in interface GestureResponsePolicy
getInfoText
in class OMGraphicHandlerLayer
protected java.awt.Frame getFrame()
public void setListVisibility()
protected void openFile(java.io.File f)
f
- Description of Parameterprotected java.io.File chooseFile(int type)
type
- Description of Parameterprotected void filtre()
protected void exportArcs()
protected void exportArcs1()
protected void exportPoints()
protected java.awt.Paint parseColor(java.util.Properties props, java.lang.String prefix, java.lang.String prop, java.awt.Paint dfault)
props
- Description of Parameterprefix
- Description of Parameterprop
- Description of Parameterdfault
- Description of Parameterprotected java.awt.Paint[] parseColors(java.util.Properties props, java.lang.String prefix, java.lang.String prop, java.awt.Paint err)
props
- Description of Parameterprefix
- Description of Parameterprop
- Description of Parametererr
- Description of Parameterprotected java.awt.Font parseFont(java.util.Properties props, java.lang.String prefix, java.lang.String prop, java.awt.Font dfault)
props
- Description of Parameterprefix
- Description of Parameterprop
- Description of Parameterdfault
- Description of ParameterCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details