public final class MappingComponent extends PSwingCanvas implements MappingModelListener, FeatureCollectionListener, de.cismet.tools.gui.historybutton.HistoryModel, de.cismet.tools.configuration.Configurable, DropTargetListener, CrsChangeListener, de.cismet.tools.gui.GUIWindow
| Modifier and Type | Class and Description |
|---|---|
static class |
MappingComponent.SnappingMode
DOCUMENT ME!
|
PSwingCanvas.SwingWrapper, PSwingCanvas.ZBasicRepaintManagerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategySWING_WRAPPER_KEYCURRENT_ZCANVAS, INTERATING_CHANGED_NOTIFICATIONlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
MappingComponent()
Creates a new instance of MappingComponent.
|
MappingComponent(boolean mainMappingComponent)
Creates a new MappingComponent object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomInputListener(String key,
edu.umd.cs.piccolo.event.PBasicInputEventHandler listener)
Assigns a custom interactionmode with an own PBasicInputEventHandler.
|
Collection<PFeature> |
addFeaturesToMap(Feature[] features)
is called when new feature is added to FeatureCollection.
|
void |
addGetFeatureInfoListener(GetFeatureInfoListener l)
DOCUMENT ME!
|
void |
addHistoryModelListener(de.cismet.tools.gui.historybutton.HistoryModelListener hml)
Adds aHistoryModelListener to the historymodel.
|
void |
addInputListener(String mode,
edu.umd.cs.piccolo.event.PBasicInputEventHandler listener)
Adds a new PBasicInputEventHandler for a specific interactionmode.
|
boolean |
addInternalWidget(String name,
int position,
JInternalFrame widget)
Adds a new internal widget to the map.
If a widget with the same name already exisits, the old widget will be removed and the new widget
will be added. |
void |
addMapListener(MapListener mapListener)
DOCUMENT ME!
|
void |
addMapService(MapService mapService,
int position)
Adds a new mapservice at a specific place of the layercontrols.
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list.
|
void |
addRepaintListener(RepaintListener repaintListener)
DOCUMENT ME!
|
void |
addStickyNode(PSticky pn)
Adds a PNode to the StickyNode-vector.
|
void |
addToHistory(Object o)
Adds an object to the historymodel.
|
void |
addToPRoot(edu.umd.cs.piccolo.PCamera cam)
Adds the given PCamera to the PRoot of this MappingComponent.
|
void |
adjustMapForSpecialFeatureClasses(Class specialFeatureClass)
DOCUMENT ME!
|
void |
allFeaturesRemoved(FeatureCollectionEvent fce)
Clears the PFeatureHashmap and removes all PFeatures from the featurelayer.
|
Object |
back(boolean external)
Undos the last action.
|
void |
componentResizedDelayed()
Resizes the map and reloads all services.
|
void |
componentResizedIntermediate()
Resizes the map and does not reload all services.
|
void |
configure(org.jdom.Element e)
Configurates this MappingComponent.
|
void |
crossHairPoint(com.vividsolutions.jts.geom.Coordinate c)
Paints a crosshair at the delivered coordinate.
|
void |
crossHairPoint(com.vividsolutions.jts.geom.Coordinate c,
int thickness)
Paints a crosshair at the delivered coordinate.
|
void |
crossHairPoint(Point p)
Paints a crosshair at the delivered point.
|
void |
crossHairPoint(Point p,
int thickness)
Paints a crosshair at the delivered point.
|
void |
crsChanged(CrsChangedEvent event)
DOCUMENT ME!
|
void |
dispose()
DOCUMENT ME!
|
void |
dragEnter(DropTargetDragEvent dtde)
Called while a drag operation is ongoing, when the mouse pointer enters the operable part of the drop site for
the
DropTarget registered with this listener. |
void |
dragExit(DropTargetEvent dte)
Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site
for the
DropTarget registered with this listener. |
void |
dragOver(DropTargetDragEvent dtde)
Called when a drag operation is ongoing, while the mouse pointer is still over the operable part of the dro9p
site for the
DropTarget registered with this listener. |
void |
drop(DropTargetDropEvent dtde)
Called when the drag operation has terminated with a drop on the operable part of the drop site for the
DropTarget registered with this listener. |
void |
dropActionChanged(DropTargetDragEvent dtde)
Called if the user has modified the current drop gesture.
|
void |
ensureVisibilityOfSpecialFeatures(Class specialFeatureClass)
DOCUMENT ME!
|
void |
ensureVisibilityOfSpecialFeatures(Class specialFeatureClass,
boolean fixedScale)
DOCUMENT ME!
|
void |
featureCollectionChanged()
Deprecated.
DOCUMENT ME!
|
void |
featureReconsiderationRequested(FeatureCollectionEvent fce)
Does a complete reconciliation of the PFeature assigned to a feature from the FeatureCollectionEvent.
|
void |
featuresAdded(FeatureCollectionEvent fce)
Deprecated.
|
void |
featuresChanged(FeatureCollectionEvent fce)
Will be called if one or more features are changed somehow (handles moved/rotated).
|
void |
featureSelectionChanged(FeatureCollectionEvent fce)
Will be called if the selection of features changes.
|
void |
featuresRemoved(FeatureCollectionEvent fce)
Removes all features of the given FeatureCollectionEvent from the mappingcomponent.
|
void |
fireActivityChanged()
Setter for property taskCounter.
|
void |
fireRepaintComplete(RepaintEvent e)
DOCUMENT ME!
|
void |
fireRepaintError(RepaintEvent e)
DOCUMENT ME!
|
void |
fireRepaintStart(RepaintEvent e)
DOCUMENT ME!
|
void |
flash(int duration,
int animationDuration,
int what,
int number)
DOCUMENT ME!
|
void |
formComponentResized(ComponentEvent evt)
Deprecated.
|
Object |
forward(boolean external)
Redos the last undone historyaction.
|
int |
getAnimationDuration()
DOCUMENT ME!
|
Vector |
getBackPossibilities()
Returns a vector with all undo-possibilities.
|
BoundingBox |
getBoundingBoxFromScale(double scaleDenominator)
Returns a BoundingBox of the current view in another scale.
|
CismapPreferences |
getCismapPrefs()
DOCUMENT ME!
|
double |
getClip_offset_x()
Returns 0.
|
double |
getClip_offset_y()
Returns 0.
|
org.jdom.Element |
getConfiguration()
DOCUMENT ME!
|
static String |
getCoordinateString(double x,
double y)
Returns a String from two double-values.
|
Color |
getCrossHairColor()
DOCUMENT ME!
|
int |
getCrossHairThickness()
DOCUMENT ME!
|
List<Crs> |
getCrsList()
Returns a list with different crs.
|
BoundingBox |
getCurrentBoundingBox()
Deprecated.
|
BoundingBox |
getCurrentBoundingBoxFromCamera()
Returns the current BoundingBox.
|
Object |
getCurrentElement()
Returns the current element of the historymodel.
|
double |
getCurrentOGCScale()
Returns the current OGC scale.
|
Cursor |
getCursor(String mode)
Returns the cursor assigned to the given mode.
|
edu.umd.cs.piccolo.PLayer |
getDragPerformanceImproverLayer()
DOCUMENT ME!
|
FeatureCollection |
getFeatureCollection()
Returns the current featureCollection.
|
Map<String,edu.umd.cs.piccolo.PLayer> |
getFeatureGroupLayers()
DOCUMENT ME!
|
edu.umd.cs.piccolo.PLayer |
getFeatureLayer()
Returns the featurelayer.
|
double |
getFeaturePrintingDpi()
DOCUMENT ME!
|
edu.umd.cs.piccolo.PLayer |
getFeatureServiceLayer()
DOCUMENT ME!
|
BoundingBox |
getFixedBoundingBox()
Returns a BoundingBox with a fixed size.
|
Vector |
getForwardPossibilities()
Returns a vector with all redo-possibilities.
|
JComponent |
getGuiComponent() |
String |
getHandleInteractionMode()
Returns the current HandleInteractionMode.
|
edu.umd.cs.piccolo.PLayer |
getHandleLayer()
DOCUMENT ME!
|
edu.umd.cs.piccolo.PLayer |
getHighlightingLayer()
DOCUMENT ME!
|
Image |
getImage()
Returns the momentary image of the PCamera of this MappingComponent.
|
BoundingBox |
getInitialBoundingBox()
DOCUMENT ME!
|
Map<String,edu.umd.cs.piccolo.event.PBasicInputEventHandler> |
getInputEventListener()
DOCUMENT ME!
|
edu.umd.cs.piccolo.event.PInputEventListener |
getInputListener(String mode)
Returns the PBasicInputEventHandler assigned to the committed interactionmode.
|
ButtonGroup |
getInteractionButtonGroup()
DOCUMENT ME!
|
String |
getInteractionMode()
Getter for property interactionMode.
|
NewSimpleInternalLayerWidget |
getInternalLayerWidget()
Deprecated.
DOCUMENT ME!
|
JInternalFrame |
getInternalWidget(String name)
DOCUMENT ME!
|
int |
getInternalWidgetPosition(String name)
DOCUMENT ME!
|
MappingModel |
getMappingModel()
Returns the current mappingmodel.
|
edu.umd.cs.piccolo.PLayer |
getMapServiceLayer()
DOCUMENT ME!
|
MementoInterface |
getMemRedo()
Returns the MementoInterface for redo-actions.
|
MementoInterface |
getMemUndo()
Returns the MementoInterface for undo-actions.
|
CrsTransformer |
getMetricTransformer()
DOCUMENT ME!
|
String |
getPermissionString() |
ConcurrentHashMap<Feature,PFeature> |
getPFeatureHM()
Returns the PfeatureHashmap which assigns a Feature to a PFeature.
|
com.vividsolutions.jts.geom.Point |
getPointGeometryFromPInputEvent(edu.umd.cs.piccolo.event.PInputEvent event)
DOCUMENT ME!
|
PrintingSettingsWidget |
getPrintingSettingsDialog()
DOCUMENT ME!
|
edu.umd.cs.piccolo.PLayer |
getRasterServiceLayer()
Deprecated.
Use
getMapServiceLayer() instead |
edu.umd.cs.piccolo.PLayer |
getRubberBandLayer()
Returns the rubberband-PLayer.
|
BoundingBox |
getScaledBoundingBox(double scaleDenominator,
BoundingBox bb)
Returns the BoundingBox of the delivered BoundingBox in another scale.
|
double |
getScaleDenominator()
Calculate the current scaledenominator.
|
List<Scale> |
getScales()
Returns a vector with different scales.
|
PFeature |
getSelectedNode()
Deprecated.
DOCUMENT ME!
|
edu.umd.cs.piccolo.PCanvas |
getSelectedObjectPresenter()
Returns the selectedObjectPresenter (PCanvas).
|
edu.umd.cs.piccolo.PLayer |
getSnapHandleLayer()
DOCUMENT ME!
|
MappingComponent.SnappingMode |
getSnappingMode()
DOCUMENT ME!
|
int |
getSnappingRectSize()
DOCUMENT ME!
|
PFeature |
getSolePureNewFeature()
Will return a PureNewFeature if there is only one in the featurecollection else null.
|
<T extends Feature> |
getSpecialFeatureCollection(Class<T> featureclass)
DOCUMENT ME!
|
double |
getStickyFeatureCorrectionFactor()
DOCUMENT ME!
|
List<PSticky> |
getStickyNodes()
DOCUMENT ME!
|
edu.umd.cs.piccolo.PLayer |
getTmpFeatureLayer()
Returns the temporary featurelayer.
|
Rectangle2D |
getViewBounds()
DOCUMENT ME!
|
Icon |
getViewIcon() |
String |
getViewTitle() |
WorldToScreenTransform |
getWtst()
Creates a new WorldToScreenTransform for the current screensize (boundingbox) and returns it.
|
Action |
getZoomAction()
Returns the custom created Action zoomAction.
|
void |
gotoBoundingBox(BoundingBox bb,
boolean history,
boolean scaleToFit,
int animationDuration)
Moves the view to the target Boundingbox.
|
void |
gotoBoundingBox(BoundingBox bb,
boolean history,
boolean scaleToFit,
int animationDuration,
boolean queryServices)
Moves the view to the target Boundingbox.
|
void |
gotoBoundingBoxWithHistory(BoundingBox bb)
Moves the view to the target Boundingbox and saves the action in the history.
|
void |
gotoBoundingBoxWithoutHistory(BoundingBox bb)
Moves the view to the target Boundingbox without saving the action in the history.
|
void |
gotoBoundingBoxWithoutHistory(BoundingBox bb,
int animationDuration)
Moves the view to the target Boundingbox without saving the action in the history.
|
void |
gotoBoundsWithoutHistory(edu.umd.cs.piccolo.util.PBounds bounds)
Pans to the given bounds without creating a historyaction to undo the action.
|
void |
gotoInitialBoundingBox()
Moves the camera to the initial bounding box (e.g.
|
void |
handleMapService(int position,
MapService service,
boolean forced)
former synchronized method.
|
void |
highlightArea(BoundingBox bb)
Highlights the delivered BoundingBox.
|
void |
highlightFeature(Feature feature,
int duration)
shows the given feature on the map (in the highlighting layer).
|
void |
highlightFeature(Feature feature,
int duration,
Color highlightColor)
shows the given feature on the map (in the highlighting layer).
|
void |
initCursors()
Assigns the cursors to the according interactionmodes.
|
void |
initInputListener()
Assigns the listeners to the according interactionmodes.
|
void |
initPrintingDialogs()
Creates printingDialog and printingSettingsDialog.
|
boolean |
isBackgroundEnabled()
Returns whether the background is enabled or not.
|
boolean |
isBackPossible()
Returns true, if it's possible to undo an action.
|
boolean |
isFeatureCollectionVisible()
DOCUMENT ME!
|
boolean |
isFeatureDebugging()
DOCUMENT ME!
|
boolean |
isFixedMapExtent()
DOCUMENT ME!
|
boolean |
isFixedMapScale()
DOCUMENT ME!
|
boolean |
isForwardPossible()
Returns true, if it's possible to redo an action.
|
boolean |
isGridEnabled()
Returns whether the grid is enabled or not.
|
boolean |
isInfoNodesVisible()
DOCUMENT ME!
|
boolean |
isInGlueIdenticalPointsMode()
DOCUMENT ME!
|
boolean |
isInMetricSRS()
DOCUMENT ME!
|
boolean |
isInternalLayerWidgetAvailable()
Deprecated.
|
boolean |
isInternalLayerWidgetVisible()
Deprecated.
|
boolean |
isInternalWidgetVisible(String name)
Returns a boolean, if the InternalWidget is visible.
|
boolean |
isLocked()
Returns whether the MappingComponent is locked or not.
|
boolean |
isMainMappingComponent()
DOCUMENT ME!
|
boolean |
isPointerAnnotationVisible()
Returns a boolean whether the annotationnode is visible or not.
|
boolean |
isReadOnly()
Returns whether the features are editable or not.
|
boolean |
isResizeEventActivated()
If
resizeEventActivated is true, then the mapping component makes a new query for its services, when
it is resized. |
boolean |
isRunning()
Returns true, if there's still one layercontrol running.
|
boolean |
isSnappingEnabled()
DOCUMENT ME!
|
boolean |
isSnappingOnLineEnabled()
Deprecated.
|
boolean |
isVisualizeSnappingEnabled()
DOCUMENT ME!
|
boolean |
isVisualizeSnappingRectEnabled()
DOCUMENT ME!
|
void |
lock()
Locks the MappingComponent.
|
void |
mapServiceAdded(MapService mapService)
Adds the commited mapservice on the last position to the rasterservicelayer.
|
void |
mapServiceLayerStructureChanged(MappingModelEvent mme)
DOCUMENT ME!
|
void |
mapServiceRemoved(MapService rasterService)
Removes the mapservice from the rasterservicelayer.
|
void |
masterConfigure(org.jdom.Element e)
DOCUMENT ME!
|
void |
outlineArea(BoundingBox bb)
Paints the outline of the forwarded BoundingBox.
|
void |
outlineArea(BoundingBox bb,
Paint fillingPaint)
Paints a filled rectangle of the area of the forwarded BoundingBox.
|
void |
outlineArea(edu.umd.cs.piccolo.util.PBounds b)
Paints the outline of the forwarded PBounds.
|
void |
outlineArea(edu.umd.cs.piccolo.util.PBounds b,
Paint fillingColor)
Paints a filled rectangle of the area of the forwarded PBounds.
|
void |
preparationSetMappingModel(MappingModel mm)
DOCUMENT ME!
|
void |
printingAction()
DOCUMENT ME!
|
void |
putCursor(String mode,
Cursor cursor)
Adds a new cursor to the cursor-hashmap.
|
void |
queryServices()
Refreshs all registered services.
|
void |
queryServicesIndependentFromMap(int width,
int height,
BoundingBox bb,
RetrievalListener rl)
queryServicesIndependentFromMap.
|
void |
reconsiderFeature(Feature f)
If f != null it calls the reconsiderFeature()-method of the featurecollection.
|
void |
refresh()
Forces all services to refresh themselves.
|
void |
refreshHM(PFeature p)
Adds a PFeature to the PFeatureHashmap.
|
void |
removeFeatures(Collection<Feature> fc)
Removes all features of the collection from the hashmap.
|
void |
removeFromHM(Feature f)
Removes a Feature from the PFeatureHashmap.
|
void |
removeGetFeatureInfoListener(GetFeatureInfoListener l)
DOCUMENT ME!
|
void |
removeHistoryModelListener(de.cismet.tools.gui.historybutton.HistoryModelListener hml)
Removes a specific HistoryModelListener from the historymodel.
|
boolean |
removeInternalWidget(String name)
Removes an existing internal widget from the map.
|
void |
removeMapListener(MapListener mapListener)
DOCUMENT ME!
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.
|
void |
removeRepaintListener(RepaintListener repaintListener)
DOCUMENT ME!
|
void |
removeStickyNode(PSticky pn)
Removes a specific PNode from the StickyNode-vector.
|
void |
rescaleStickyNode(PSticky n)
Calls private method rescaleStickyNodeWork(node) to rescale the sticky PNode.
|
void |
rescaleStickyNodes()
Rescales all nodes inside the StickyNode-vector.
|
void |
rescaleStickyNodes(List<PSticky> nodes)
Calls private method rescaleStickyNodeWork(node) to rescale the sticky PNode.
|
void |
resetWtst()
Resets the current WorldToScreenTransformation.
|
void |
selectPFeatureManually(PFeature one)
Deprecated.
DOCUMENT ME!
|
void |
setAnimationDuration(int animationDuration)
DOCUMENT ME!
|
void |
setBackgroundEnabled(boolean backgroundEnabled)
TODO.
|
void |
setClip_offset_x(double clip_offset_x)
Assigns a new value to the x-clip-offset.
|
void |
setClip_offset_y(double clip_offset_y)
Assigns a new value to the y-clip-offset.
|
void |
setCrossHairColor(Color crossHairColor)
DOCUMENT ME!
|
void |
setCrossHairThickness(int crossHairThickness)
DOCUMENT ME!
|
void |
setDragPerformanceImproverLayer(edu.umd.cs.piccolo.PLayer dragPerformanceImproverLayer)
DOCUMENT ME!
|
void |
setFeatureCollection(FeatureCollection featureCollection)
Replaces the old featureCollection with a new one.
|
void |
setFeatureCollectionVisibility(boolean visibility)
DOCUMENT ME!
|
void |
setFeaturePrintingDpi(double featurePrintingDpi)
DOCUMENT ME!
|
void |
setFeatureServiceLayer(edu.umd.cs.piccolo.PLayer featureServiceLayer)
DOCUMENT ME!
|
void |
setFixedBoundingBox(BoundingBox fixedBoundingBox)
Assigns fixedBoundingBox a new value.
|
void |
setFixedMapExtent(boolean fixedMapExtent)
DOCUMENT ME!
|
void |
setFixedMapScale(boolean fixedMapScale)
DOCUMENT ME!
|
void |
setGridEnabled(boolean gridEnabled)
Enables or disables the grid.
|
void |
setGroupLayerVisibility(String groupId,
boolean visible)
public void showFeatureCollection(Feature[] features) { com.vividsolutions.jts.geom.Envelope
env=computeFeatureEnvelope(features); showFeatureCollection(features,env); } public void
showFeatureCollection(Feature[] f,com.vividsolutions.jts.geom.Envelope featureEnvelope) { selectedFeature=null;
handleLayer.removeAllChildren(); //setRasterServiceLayerImagesVisibility(false); Envelope eSquare=null;
HashSet
|
void |
setHandleInteractionMode(String handleInteractionMode)
Changes the HandleInteractionMode.
|
void |
setHandleLayer(edu.umd.cs.piccolo.PLayer handleLayer)
DOCUMENT ME!
|
void |
setInfoNodesVisible(boolean visible)
Sets the visibility of all infonodes.
|
void |
setInGlueIdenticalPointsMode(boolean inGlueIdenticalPointsMode)
DOCUMENT ME!
|
void |
setInputEventListener(HashMap<String,edu.umd.cs.piccolo.event.PBasicInputEventHandler> inputEventListener)
DOCUMENT ME!
|
void |
setInteractionButtonGroup(ButtonGroup interactionButtonGroup)
DOCUMENT ME!
|
void |
setInteractionMode(String interactionMode)
Changes the interactionmode.
|
void |
setInternalLayerWidgetAvailable(boolean internalLayerWidgetAvailable)
Deprecated.
|
void |
setMainMappingComponent(boolean mainMappingComponent)
DOCUMENT ME!
|
void |
setMappingModel(MappingModel mm)
Sets a new mappingmodel in this MappingComponent.
|
void |
setMaximumPossibilities(int max)
Sets the maximum value of saved historyactions.
|
void |
setNewViewBounds(Rectangle2D r2d)
Sets new viewbounds.
|
void |
setPointerAnnotation(edu.umd.cs.piccolo.PNode anno)
DOCUMENT ME!
|
void |
setPointerAnnotationVisibility(boolean visib)
DOCUMENT ME!
|
void |
setPreferences(CismapPreferences prefs)
Deprecated.
|
void |
setPrintingResolution(double printingResolution)
DOCUMENT ME!
|
void |
setRasterServiceLayer(edu.umd.cs.piccolo.PLayer rasterServiceLayer)
DOCUMENT ME!
|
void |
setReadOnly(boolean readOnly)
Sets all Features ReadOnly use Feature.setEditable(boolean) instead.
|
void |
setResizeEventActivated(boolean resizeEventActivated)
Set
resizeEventActivated to true so that the mapping component makes a query for its services on a
resize event (Such an event is for example fired when the window of the mapping component is resized). |
void |
setRubberBandLayer(edu.umd.cs.piccolo.PLayer rubberBandLayer)
Assigns a given PLayer to the variable rubberBandLayer.
|
void |
setSelectionInProgress(boolean selectionInProgress)
DOCUMENT ME!
|
void |
setSnapHandleLayer(edu.umd.cs.piccolo.PLayer snapHandleLayer)
DOCUMENT ME!
|
void |
setSnappingEnabled(boolean snappingEnabled)
Deprecated.
|
void |
setSnappingMode(MappingComponent.SnappingMode snappingMode)
DOCUMENT ME!
|
void |
setSnappingOnLineEnabled(boolean snappingOnLineEnabled)
DOCUMENT ME!
|
void |
setSnappingRectSize(int snappingRectSize)
DOCUMENT ME!
|
void |
setStickyFeatureCorrectionFactor(double stickyFeatureCorrectionFactor)
DOCUMENT ME!
|
void |
setTmpFeatureLayer(edu.umd.cs.piccolo.PLayer tmpFeatureLayer)
Assigns a new temporary featurelayer.
|
void |
setVisualizeSnappingEnabled(boolean visualizeSnappingEnabled)
DOCUMENT ME!
|
void |
setVisualizeSnappingRectEnabled(boolean visualizeSnappingRectEnabled)
DOCUMENT ME!
|
void |
showGeometryInfoPanel(Feature f)
DOCUMENT ME!
|
void |
showHandles(boolean waitTillAllAnimationsAreComplete)
Deletes all present handles from the handlelayer.
|
void |
showInternalLayerWidget(boolean visible,
int animationDuration)
Deprecated.
|
boolean |
showInternalWidget(String name,
boolean visible,
int animationDuration)
Shows an InternalWidget by sliding it into the mappingcomponent.
|
void |
showPrintingDialog()
Shows the printing-dialog that resets the interactionmode after printing.
|
void |
showPrintingSettingsDialog()
Shows the printingsetting-dialog that resets the interactionmode after printing.
|
void |
showPrintingSettingsDialog(boolean chooseFile)
Shows the printingsetting-dialog that resets the interactionmode after printing.
|
void |
showPrintingSettingsDialog(String ignoredHandlerString)
Deprecated.
DOCUMENT ME!
|
void |
syncSelectedObjectPresenter(int i)
syncSelectedObjectPresenter(int i).
|
void |
unlock()
Unlocks the MappingComponent.
|
void |
unlockWithoutReload()
Unlocks the MappingComponent.
|
void |
zoomToAFeatureCollection(Collection<? extends Feature> collection,
boolean withHistory,
boolean fixedScale)
Zooms to a specific featurecollection.
|
void |
zoomToFeatureCollection()
Zooms to all features of the mappingcomponents featurecollection.
|
void |
zoomToFeatureCollection(boolean fixedScale)
Zooms to all features of the mappingcomponents featurecollection.
|
void |
zoomToFullFeatureCollectionBounds()
Zooms in / out to match the bounds of the featurecollection.
|
void |
zoomToSelectedNode()
Deprecated.
DOCUMENT ME!
|
void |
zoomToSelection()
Zooms to the current selected features.
|
getSwingWrapperaddInputEventListener, createDefaultCamera, createTimer, getAnimating, getCamera, getInteracting, getLayer, getPanEventHandler, getRoot, getZoomEventHandler, installInputSources, paintComponent, paintImmediately, popCursor, pushCursor, removeInputEventListener, removeInputSources, repaint, sendInputEventToInputManager, setAnimatingRenderQuality, setBounds, setCamera, setDefaultRenderQuality, setEnabled, setInteracting, setInteractingRenderQuality, setPanEventHandler, setZoomEventHandleraddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, 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, validateTreeaction, 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, getAccessibleContext, 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, 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, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final String PROPERTY_MAP_INTERACTION_MODE
public static final String MOTION
public static final String PERPENDICULAR_INTERSECTION
public static final String SELECT
public static final String GEO_REF
public static final String ZOOM
public static final String PAN
public static final String ALKIS_PRINT
public static final String FEATURE_INFO
public static final String FEATURE_INFO_MULTI_GEOM
public static final String CREATE_SEARCH_POLYGON
public static final String CREATE_SIMPLE_GEOMETRY
public static final String MOVE_POLYGON
public static final String REMOVE_POLYGON
public static final String NEW_POLYGON
public static final String SPLIT_POLYGON
public static final String JOIN_POLYGONS
public static final String RAISE_POLYGON
public static final String ROTATE_POLYGON
public static final String REFLECT_POLYGON
public static final String ATTACH_POLYGON_TO_ALPHADATA
public static final String MOVE_HANDLE
public static final String REMOVE_HANDLE
public static final String ADD_HANDLE
public static final String MEASUREMENT
public static final String LINEAR_REFERENCING
public static final String PRINTING_AREA_SELECTION
public static final String CUSTOM_FEATUREACTION
public static final String CUSTOM_FEATUREINFO
public static final String OVERVIEW
public static final String LAYERWIDGET
public static final String PROGRESSWIDGET
public static final int POSITION_NORTHWEST
public static final int POSITION_SOUTHWEST
public static final int POSITION_NORTHEAST
public static final int POSITION_SOUTHEAST
public MappingComponent()
public MappingComponent(boolean mainMappingComponent)
mainMappingComponent - DOCUMENT ME!public int getCrossHairThickness()
public void setCrossHairThickness(int crossHairThickness)
crossHairThickness - the crossHairThickness to setpublic Color getCrossHairColor()
public void setCrossHairColor(Color crossHairColor)
crossHairColor - the crossHairColor to setpublic boolean isResizeEventActivated()
resizeEventActivated is true, then the mapping component makes a new query for its services, when
it is resized. This happens for example if the window of the mapping component is resized. The default value for
resizeEventActivated is true.public void setResizeEventActivated(boolean resizeEventActivated)
resizeEventActivated to true so that the mapping component makes a query for its services on a
resize event (Such an event is for example fired when the window of the mapping component is resized). The
default value for resizeEventActivated is true.resizeEventActivated - DOCUMENT ME!public ButtonGroup getInteractionButtonGroup()
public void setInteractionButtonGroup(ButtonGroup interactionButtonGroup)
interactionButtonGroup - DOCUMENT ME!public void addMapListener(MapListener mapListener)
mapListener - DOCUMENT ME!public void removeMapListener(MapListener mapListener)
mapListener - DOCUMENT ME!public void dispose()
public boolean isFeatureDebugging()
public void initPrintingDialogs()
public Image getImage()
public void addToPRoot(edu.umd.cs.piccolo.PCamera cam)
cam - PCamera-objectpublic void addStickyNode(PSticky pn)
pn - PNode-objectpublic void removeStickyNode(PSticky pn)
pn - PNode that should be removedpublic void adjustMapForSpecialFeatureClasses(Class specialFeatureClass)
specialFeatureClass - DOCUMENT ME!public void ensureVisibilityOfSpecialFeatures(Class specialFeatureClass, boolean fixedScale)
specialFeatureClass - DOCUMENT ME!fixedScale - DOCUMENT ME!public void ensureVisibilityOfSpecialFeatures(Class specialFeatureClass)
specialFeatureClass - DOCUMENT ME!public <T extends Feature> Collection<T> getSpecialFeatureCollection(Class<T> featureclass)
T - DOCUMENT ME!featureclass - DOCUMENT ME!public List<PSticky> getStickyNodes()
public void rescaleStickyNode(PSticky n)
n - PNode to rescalepublic void rescaleStickyNodes(List<PSticky> nodes)
nodes - n PNode to rescalepublic void setPrintingResolution(double printingResolution)
printingResolution - DOCUMENT ME!public double getStickyFeatureCorrectionFactor()
public void setStickyFeatureCorrectionFactor(double stickyFeatureCorrectionFactor)
stickyFeatureCorrectionFactor - DOCUMENT ME!public void rescaleStickyNodes()
public Action getZoomAction()
public void gotoBoundsWithoutHistory(edu.umd.cs.piccolo.util.PBounds bounds)
bounds - new bounds of the camerapublic void initInputListener()
public void addCustomInputListener(String key, edu.umd.cs.piccolo.event.PBasicInputEventHandler listener)
key - interactionmode as Stringlistener - new PBasicInputEventHandlerpublic void initCursors()
public void showPrintingSettingsDialog()
public void showPrintingSettingsDialog(boolean chooseFile)
chooseFile - DOCUMENT ME!public void showPrintingDialog()
public void printingAction()
public void showPrintingSettingsDialog(String ignoredHandlerString)
ignoredHandlerString - DOCUMENT ME!public String getInteractionMode()
public void setInteractionMode(String interactionMode)
interactionMode - new interactionmode as String@Deprecated public void formComponentResized(ComponentEvent evt)
evt - DOCUMENT ME!public void componentResizedIntermediate()
componentResizedDelayed()public void componentResizedDelayed()
componentResizedIntermediate()public void syncSelectedObjectPresenter(int i)
i - DOCUMENT ME!public BoundingBox getInitialBoundingBox()
public FeatureCollection getFeatureCollection()
public void setFeatureCollection(FeatureCollection featureCollection)
featureCollection - the new featureCollectionpublic void setFeatureCollectionVisibility(boolean visibility)
visibility - DOCUMENT ME!public boolean isFeatureCollectionVisible()
public void addMapService(MapService mapService, int position)
mapService - the new mapserviceposition - the index where to position the mapservicepublic void preparationSetMappingModel(MappingModel mm)
mm - DOCUMENT ME!public void setMappingModel(MappingModel mm)
mm - the new mappingmodelpublic MappingModel getMappingModel()
@Deprecated public NewSimpleInternalLayerWidget getInternalLayerWidget()
public boolean addInternalWidget(String name, int position, JInternalFrame widget)
widget with the same name already exisits, the old widget will be removed and the new widget
will be added. If a widget with a different name already exisit at the same position the new widget will
not be added and the operation returns false.name - unique name of the widgetposition - position of the widgetwidget - the widgettrue if the widget could be added, false otherwisePOSITION_NORTHEAST,
POSITION_NORTHWEST,
POSITION_SOUTHEAST,
POSITION_SOUTHWESTpublic boolean removeInternalWidget(String name)
Note: the internalFrame will be disposed and then removed from the mappingComponent. This has to be done because of a Java Bug, as otherwise a memory leak will be created. See https://bugs.openjdk.java.net/browse/JDK-8041452 for a similar problem.
name - name of the widget to be removedtrue id the widget was found and removed, false otherwisepublic boolean showInternalWidget(String name, boolean visible, int animationDuration)
name - name of the internl component to showvisible - should the widget be visible after the animation?animationDuration - duration of the animationtrue if the operation was successful, false otherwise@Deprecated public void showInternalLayerWidget(boolean visible, int animationDuration)
visible - DOCUMENT ME!animationDuration - DOCUMENT ME!@Deprecated public boolean isInternalLayerWidgetVisible()
public boolean isInternalWidgetVisible(String name)
name - name of the widgetpublic void gotoInitialBoundingBox()
public void queryServices()
public void refresh()
public void queryServicesIndependentFromMap(int width,
int height,
BoundingBox bb,
RetrievalListener rl)
width - DOCUMENT ME!height - DOCUMENT ME!bb - DOCUMENT ME!rl - DOCUMENT ME!public void handleMapService(int position,
MapService service,
boolean forced)
position - DOCUMENT ME!service - rsforced - DOCUMENT ME!public WorldToScreenTransform getWtst()
public void resetWtst()
public double getClip_offset_x()
public void setClip_offset_x(double clip_offset_x)
clip_offset_x - new clipoffsetpublic double getClip_offset_y()
public void setClip_offset_y(double clip_offset_y)
clip_offset_y - new clipoffsetpublic edu.umd.cs.piccolo.PLayer getRubberBandLayer()
public void setRubberBandLayer(edu.umd.cs.piccolo.PLayer rubberBandLayer)
rubberBandLayer - a PLayerpublic void setNewViewBounds(Rectangle2D r2d)
r2d - Rectangle2Dpublic Rectangle2D getViewBounds()
public void featureSelectionChanged(FeatureCollectionEvent fce)
featureSelectionChanged in interface FeatureCollectionListenerfce - featurecollectionevent with selected featurespublic void featuresChanged(FeatureCollectionEvent fce)
featuresChanged in interface FeatureCollectionListenerfce - featurecollectionevent with changed featurespublic void featureReconsiderationRequested(FeatureCollectionEvent fce)
featureReconsiderationRequested in interface FeatureCollectionListenerfce - featurecollectionevent with features to reconsile@Deprecated public void featuresAdded(FeatureCollectionEvent fce)
featuresAdded in interface FeatureCollectionListenerfce - FeatureCollectionEvent with features to add@Deprecated public void featureCollectionChanged()
featureCollectionChanged in interface FeatureCollectionListenerpublic void allFeaturesRemoved(FeatureCollectionEvent fce)
allFeaturesRemoved in interface FeatureCollectionListenerfce - FeatureCollectionEvent with features to check for a remaining supporting rasterservicepublic void featuresRemoved(FeatureCollectionEvent fce)
featuresRemoved in interface FeatureCollectionListenerfce - FeatureCollectionEvent with features to removepublic void setGroupLayerVisibility(String groupId, boolean visible)
groupId - DOCUMENT ME!visible - DOCUMENT ME!public void highlightFeature(Feature feature, int duration)
feature - the feature that should be shownduration - the feature will be shown for this duration (in ms)public void highlightFeature(Feature feature, int duration, Color highlightColor)
feature - the feature that should be shownduration - the feature will be shown for this duration (in ms)highlightColor - the color of the highlighted featurepublic Collection<PFeature> addFeaturesToMap(Feature[] features)
features - DOCUMENT ME!public void zoomToFullFeatureCollectionBounds()
public void putCursor(String mode, Cursor cursor)
mode - interactionmode as stringcursor - cursor-objectpublic Cursor getCursor(String mode)
mode - mode as Stringpublic void addInputListener(String mode, edu.umd.cs.piccolo.event.PBasicInputEventHandler listener)
mode - interactionmode as stringlistener - new PBasicInputEventHandlerpublic edu.umd.cs.piccolo.event.PInputEventListener getInputListener(String mode)
mode - interactionmode as stringpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - DOCUMENT ME!public String getHandleInteractionMode()
public void setHandleInteractionMode(String handleInteractionMode)
handleInteractionMode - the new HandleInteractionModepublic boolean isBackgroundEnabled()
public void setBackgroundEnabled(boolean backgroundEnabled)
backgroundEnabled - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getFeatureLayer()
public Map<String,edu.umd.cs.piccolo.PLayer> getFeatureGroupLayers()
public void refreshHM(PFeature p)
p - PFeature to addpublic edu.umd.cs.piccolo.PCanvas getSelectedObjectPresenter()
public void reconsiderFeature(Feature f)
f - feature to reconcilepublic void removeFeatures(Collection<Feature> fc)
fc - collection of features to removepublic void removeFromHM(Feature f)
f - feature of the Pfeature that should be deletedpublic void zoomToSelectedNode()
public void zoomToSelection()
public void zoomToAFeatureCollection(Collection<? extends Feature> collection, boolean withHistory, boolean fixedScale)
collection - the featurecolltionwithHistory - should the zoomaction be undoablefixedScale - fixedScalepublic void setSelectionInProgress(boolean selectionInProgress)
selectionInProgress - show DOCUMENT ME!public void showHandles(boolean waitTillAllAnimationsAreComplete)
waitTillAllAnimationsAreComplete - wait until all animations are completed before create the handlespublic PFeature getSolePureNewFeature()
public edu.umd.cs.piccolo.PLayer getTmpFeatureLayer()
public void setTmpFeatureLayer(edu.umd.cs.piccolo.PLayer tmpFeatureLayer)
tmpFeatureLayer - PLayerpublic boolean isGridEnabled()
public void setGridEnabled(boolean gridEnabled)
gridEnabled - true, to enable the gridpublic static String getCoordinateString(double x, double y)
x - X-coordinatey - Y-coordinatepublic com.vividsolutions.jts.geom.Point getPointGeometryFromPInputEvent(edu.umd.cs.piccolo.event.PInputEvent event)
event - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getHandleLayer()
public void setHandleLayer(edu.umd.cs.piccolo.PLayer handleLayer)
handleLayer - DOCUMENT ME!public boolean isVisualizeSnappingEnabled()
public void setVisualizeSnappingEnabled(boolean visualizeSnappingEnabled)
visualizeSnappingEnabled - DOCUMENT ME!public boolean isVisualizeSnappingRectEnabled()
public void setVisualizeSnappingRectEnabled(boolean visualizeSnappingRectEnabled)
visualizeSnappingRectEnabled - DOCUMENT ME!public int getSnappingRectSize()
public void setSnappingRectSize(int snappingRectSize)
snappingRectSize - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getSnapHandleLayer()
public void setSnapHandleLayer(edu.umd.cs.piccolo.PLayer snapHandleLayer)
snapHandleLayer - DOCUMENT ME!public boolean isSnappingEnabled()
@Deprecated public void setSnappingEnabled(boolean snappingEnabled)
snappingEnabled - DOCUMENT ME!public void setSnappingMode(MappingComponent.SnappingMode snappingMode)
snappingMode - DOCUMENT ME!public MappingComponent.SnappingMode getSnappingMode()
@Deprecated public boolean isSnappingOnLineEnabled()
public void setSnappingOnLineEnabled(boolean snappingOnLineEnabled)
snappingOnLineEnabled - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getFeatureServiceLayer()
public void setFeatureServiceLayer(edu.umd.cs.piccolo.PLayer featureServiceLayer)
featureServiceLayer - DOCUMENT ME!public int getAnimationDuration()
public void setAnimationDuration(int animationDuration)
animationDuration - DOCUMENT ME!@Deprecated public void setPreferences(CismapPreferences prefs)
prefs - DOCUMENT ME!public CismapPreferences getCismapPrefs()
public void flash(int duration,
int animationDuration,
int what,
int number)
duration - DOCUMENT ME!animationDuration - DOCUMENT ME!what - DOCUMENT ME!number - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getDragPerformanceImproverLayer()
public void setDragPerformanceImproverLayer(edu.umd.cs.piccolo.PLayer dragPerformanceImproverLayer)
dragPerformanceImproverLayer - DOCUMENT ME!@Deprecated public edu.umd.cs.piccolo.PLayer getRasterServiceLayer()
getMapServiceLayer() insteadpublic edu.umd.cs.piccolo.PLayer getMapServiceLayer()
public void setRasterServiceLayer(edu.umd.cs.piccolo.PLayer rasterServiceLayer)
rasterServiceLayer - DOCUMENT ME!public void showGeometryInfoPanel(Feature f)
f - DOCUMENT ME!public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in class Containerl - The listener to add.public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in class Componentl - The listener to remove.public void fireActivityChanged()
public boolean isRunning()
public void setInfoNodesVisible(boolean visible)
visible - true, if infonodes should be visiblepublic void addToHistory(Object o)
addToHistory in interface de.cismet.tools.gui.historybutton.HistoryModelo - Object to addpublic void removeHistoryModelListener(de.cismet.tools.gui.historybutton.HistoryModelListener hml)
removeHistoryModelListener in interface de.cismet.tools.gui.historybutton.HistoryModelhml - HistoryModelListenerpublic void addHistoryModelListener(de.cismet.tools.gui.historybutton.HistoryModelListener hml)
addHistoryModelListener in interface de.cismet.tools.gui.historybutton.HistoryModelhml - HistoryModelListenerpublic void setMaximumPossibilities(int max)
setMaximumPossibilities in interface de.cismet.tools.gui.historybutton.HistoryModelmax - new integer valuepublic Object forward(boolean external)
forward in interface de.cismet.tools.gui.historybutton.HistoryModelexternal - true, if fireHistoryChanged-action should be firedpublic Object back(boolean external)
back in interface de.cismet.tools.gui.historybutton.HistoryModelexternal - true, if fireHistoryChanged-action should be firedpublic boolean isForwardPossible()
isForwardPossible in interface de.cismet.tools.gui.historybutton.HistoryModelpublic boolean isBackPossible()
isBackPossible in interface de.cismet.tools.gui.historybutton.HistoryModelpublic Vector getForwardPossibilities()
getForwardPossibilities in interface de.cismet.tools.gui.historybutton.HistoryModelpublic Object getCurrentElement()
getCurrentElement in interface de.cismet.tools.gui.historybutton.HistoryModelpublic Vector getBackPossibilities()
getBackPossibilities in interface de.cismet.tools.gui.historybutton.HistoryModel@Deprecated public boolean isInternalLayerWidgetAvailable()
@Deprecated public void setInternalLayerWidgetAvailable(boolean internalLayerWidgetAvailable)
internalLayerWidgetAvailable - true, if availablepublic void mapServiceLayerStructureChanged(MappingModelEvent mme)
mapServiceLayerStructureChanged in interface MappingModelListenermme - DOCUMENT ME!public void mapServiceRemoved(MapService rasterService)
mapServiceRemoved in interface MappingModelListenerrasterService - the removing mapservicepublic void mapServiceAdded(MapService mapService)
mapServiceAdded in interface MappingModelListenermapService - the new mapservicepublic double getCurrentOGCScale()
@Deprecated public BoundingBox getCurrentBoundingBox()
public BoundingBox getCurrentBoundingBoxFromCamera()
Returns the current BoundingBox.
public boolean isInMetricSRS()
public BoundingBox getFixedBoundingBox()
public void setFixedBoundingBox(BoundingBox fixedBoundingBox)
fixedBoundingBox - new boundingboxpublic void outlineArea(BoundingBox bb)
bb - BoundingBoxpublic void outlineArea(edu.umd.cs.piccolo.util.PBounds b)
b - PBoundspublic void outlineArea(BoundingBox bb, Paint fillingPaint)
bb - BoundingBoxfillingPaint - Color to fill the rectanglepublic void outlineArea(edu.umd.cs.piccolo.util.PBounds b,
Paint fillingColor)
b - PBounds to paintfillingColor - Color to fill the rectanglepublic void highlightArea(BoundingBox bb)
bb - BoundingBox to highlightpublic void crossHairPoint(com.vividsolutions.jts.geom.Coordinate c)
c - coordinate of the crosshair's venuepublic void crossHairPoint(com.vividsolutions.jts.geom.Coordinate c,
int thickness)
c - coordinate of the crosshair's venuethickness - DOCUMENT ME!public void crossHairPoint(Point p)
p - point of the crosshair's venuepublic void crossHairPoint(Point p, int thickness)
p - point of the crosshair's venuethickness - DOCUMENT ME!public org.jdom.Element getConfiguration()
getConfiguration in interface de.cismet.tools.configuration.Configurablepublic void masterConfigure(org.jdom.Element e)
masterConfigure in interface de.cismet.tools.configuration.Configurablee - DOCUMENT ME!public void configure(org.jdom.Element e)
configure in interface de.cismet.tools.configuration.Configurablee - JDOM-Element with configurationpublic void zoomToFeatureCollection(boolean fixedScale)
fixedScale - true, if zoom is not allowedpublic void zoomToFeatureCollection()
public void gotoBoundingBox(BoundingBox bb, boolean history, boolean scaleToFit, int animationDuration)
bb - target BoundingBoxhistory - true, if the action sould be saved in the historyscaleToFit - true, to zoomanimationDuration - duration of the animationpublic void gotoBoundingBox(BoundingBox bb, boolean history, boolean scaleToFit, int animationDuration, boolean queryServices)
bb - target BoundingBoxhistory - true, if the action sould be saved in the historyscaleToFit - true, to zoomanimationDuration - duration of the animationqueryServices - true, if the services should be refreshed after animationpublic void gotoBoundingBoxWithoutHistory(BoundingBox bb)
bb - target BoundingBoxpublic void gotoBoundingBoxWithoutHistory(BoundingBox bb, int animationDuration)
bb - target BoundingBoxanimationDuration - the animation durationpublic void gotoBoundingBoxWithHistory(BoundingBox bb)
bb - target BoundingBoxpublic BoundingBox getBoundingBoxFromScale(double scaleDenominator)
scaleDenominator - specific target scalepublic BoundingBox getScaledBoundingBox(double scaleDenominator, BoundingBox bb)
scaleDenominator - specific target scalebb - source BoundingBoxpublic double getScaleDenominator()
public void drop(DropTargetDropEvent dtde)
DropTarget registered with this listener.
This method is responsible for undertaking the transfer of the data associated with the gesture. The
DropTargetDropEvent provides a means to obtain a Transferable object that represents the data
object(s) to be transfered.
From this method, the DropTargetListener shall accept or reject the drop via the acceptDrop(int
dropAction) or rejectDrop() methods of the DropTargetDropEvent parameter.
Subsequent to acceptDrop(), but not before, DropTargetDropEvent's getTransferable() method may be
invoked, and data transfer may be performed via the returned Transferable's getTransferData()
method.
At the completion of a drop, an implementation of this method is required to signal the success/failure of the
drop by passing an appropriate boolean to the DropTargetDropEvent's
dropComplete(boolean success) method.
Note: The data transfer should be completed before the call to the DropTargetDropEvent's
dropComplete(boolean success) method. After that, a call to the getTransferData() method of the
Transferable returned by DropTargetDropEvent.getTransferable() is guaranteed to succeed only
if the data transfer is local; that is, only if DropTargetDropEvent.isLocalTransfer() returns
true. Otherwise, the behavior of the call is implementation-dependent.
drop in interface DropTargetListenerdtde - the DropTargetDropEventpublic void dragExit(DropTargetEvent dte)
DropTarget registered with this listener.dragExit in interface DropTargetListenerdte - the DropTargetEventpublic void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged in interface DropTargetListenerdtde - the DropTargetDragEventpublic void dragOver(DropTargetDragEvent dtde)
DropTarget registered with this listener.dragOver in interface DropTargetListenerdtde - the DropTargetDragEventpublic void dragEnter(DropTargetDragEvent dtde)
DropTarget registered with this listener.dragEnter in interface DropTargetListenerdtde - the DropTargetDragEventpublic ConcurrentHashMap<Feature,PFeature> getPFeatureHM()
public boolean isFixedMapExtent()
public void setFixedMapExtent(boolean fixedMapExtent)
fixedMapExtent - DOCUMENT ME!public boolean isFixedMapScale()
public void setFixedMapScale(boolean fixedMapScale)
fixedMapScale - DOCUMENT ME!public void selectPFeatureManually(PFeature one)
one - DOCUMENT ME!public PFeature getSelectedNode()
public boolean isInfoNodesVisible()
public PrintingSettingsWidget getPrintingSettingsDialog()
public boolean isInGlueIdenticalPointsMode()
public void setInGlueIdenticalPointsMode(boolean inGlueIdenticalPointsMode)
inGlueIdenticalPointsMode - DOCUMENT ME!public edu.umd.cs.piccolo.PLayer getHighlightingLayer()
public void setPointerAnnotation(edu.umd.cs.piccolo.PNode anno)
anno - DOCUMENT ME!public void setPointerAnnotationVisibility(boolean visib)
visib - DOCUMENT ME!public boolean isPointerAnnotationVisible()
public List<Scale> getScales()
public CrsTransformer getMetricTransformer()
public void lock()
public void unlock()
public void unlockWithoutReload()
public boolean isLocked()
public boolean isMainMappingComponent()
public MementoInterface getMemRedo()
public MementoInterface getMemUndo()
public Map<String,edu.umd.cs.piccolo.event.PBasicInputEventHandler> getInputEventListener()
public void setInputEventListener(HashMap<String,edu.umd.cs.piccolo.event.PBasicInputEventHandler> inputEventListener)
inputEventListener - DOCUMENT ME!public void addGetFeatureInfoListener(GetFeatureInfoListener l)
l - DOCUMENT ME!public void removeGetFeatureInfoListener(GetFeatureInfoListener l)
l - DOCUMENT ME!public void crsChanged(CrsChangedEvent event)
crsChanged in interface CrsChangeListenerevent - DOCUMENT ME!public JInternalFrame getInternalWidget(String name)
name - DOCUMENT ME!public int getInternalWidgetPosition(String name)
name - DOCUMENT ME!public void addRepaintListener(RepaintListener repaintListener)
repaintListener - DOCUMENT ME!public void removeRepaintListener(RepaintListener repaintListener)
repaintListener - DOCUMENT ME!public void fireRepaintStart(RepaintEvent e)
e - DOCUMENT ME!public void fireRepaintComplete(RepaintEvent e)
e - DOCUMENT ME!public void fireRepaintError(RepaintEvent e)
e - DOCUMENT ME!public double getFeaturePrintingDpi()
public void setFeaturePrintingDpi(double featurePrintingDpi)
featurePrintingDpi - DOCUMENT ME!public String getViewTitle()
getViewTitle in interface de.cismet.tools.gui.GUIWindowpublic JComponent getGuiComponent()
getGuiComponent in interface de.cismet.tools.gui.GUIWindowpublic String getPermissionString()
getPermissionString in interface de.cismet.tools.gui.GUIWindowpublic Icon getViewIcon()
getViewIcon in interface de.cismet.tools.gui.GUIWindowpublic void setMainMappingComponent(boolean mainMappingComponent)
mainMappingComponent - the mainMappingComponent to setCopyright © 2012–2025 cismet GmbH. All rights reserved.