Package repast.simphony.gis.display
Class PGISCanvas
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.piccolo2d.PCanvas
repast.simphony.gis.display.PGISCanvas
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,PropertyChangeListener
,Serializable
,EventListener
,org.geotools.map.MapBoundsListener
,org.geotools.map.MapLayerListListener
,org.piccolo2d.PComponent
public class PGISCanvas
extends org.piccolo2d.PCanvas
implements org.geotools.map.MapLayerListListener, PropertyChangeListener, org.geotools.map.MapBoundsListener
Deprecated.
2D piccolo based code is being removed
This will show a MapContext and adds support for various tools.
- Author:
- Howe, Eric Tatara
- See Also:
-
Nested Class Summary
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 static final int
Deprecated.protected static final int
Deprecated.protected org.geotools.map.MapContent
Deprecated.protected org.piccolo2d.event.PInputEventListener
Deprecated.protected org.geotools.referencing.datum.DefaultEllipsoid
Deprecated.protected org.piccolo2d.PLayer
Deprecated.Deprecated.Deprecated.protected org.piccolo2d.PLayer
Deprecated.protected GisDisplayMediator
Deprecated.protected simphony.util.messages.MessageCenter
Deprecated.protected Rectangle2D
Deprecated.protected double
Deprecated.protected org.piccolo2d.PLayer
Deprecated.Fields inherited from class org.piccolo2d.PCanvas
PROPERTY_INTERACTING
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
-
Constructor Summary
ConstructorDescriptionPGISCanvas
(org.geotools.map.MapContent context) Deprecated.Create and new Canvas for the given context. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayerEventHandler
(String layerName, org.piccolo2d.event.PInputEventListener listener) Deprecated.org.opengis.referencing.crs.CoordinateReferenceSystem
getCRS()
Deprecated.org.piccolo2d.event.PInputEventListener
Deprecated.org.piccolo2d.PLayer
Deprecated.Gets the layer that contains the individual map layers.double
Deprecated.org.piccolo2d.PLayer
Deprecated.Gets the layer on which tools should draw.void
layerAdded
(org.geotools.map.MapLayerListEvent event) Deprecated.void
layerChanged
(org.geotools.map.MapLayerListEvent event) Deprecated.void
layerMoved
(org.geotools.map.MapLayerListEvent event) Deprecated.void
layerPreDispose
(org.geotools.map.MapLayerListEvent event) Deprecated.void
layerRemoved
(org.geotools.map.MapLayerListEvent event) Deprecated.void
mapBoundsChanged
(org.geotools.map.MapBoundsEvent event) Deprecated.void
Deprecated.void
repaint()
Deprecated.void
setAreaOfInterest
(org.geotools.geometry.jts.ReferencedEnvelope aoe) Deprecated.void
setEventHandler
(org.piccolo2d.event.PInputEventListener listener) Deprecated.Set the tool which the map is listening to.void
Deprecated.Zoom the map to the area of interest specified in the MapContext.void
Deprecated.Methods inherited from class org.piccolo2d.PCanvas
addInputEventListener, createDefaultCamera, createTimer, getAnimating, getAnimatingRenderQuality, getCamera, getInputEventListeners, getInteracting, getInteractingRenderQuality, getLayer, getNormalRenderQuality, getPanEventHandler, getRoot, getZoomEventHandler, installInputSources, paintComponent, paintImmediately, popCursor, printAll, pushCursor, removeInputEventListener, removeInputSources, repaint, sendInputEventToInputManager, setAnimatingRenderQuality, setBounds, setCamera, setDefaultRenderQuality, setEnabled, setInteracting, setInteractingRenderQuality, setPanEventHandler, setZoomEventHandler
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, getUI, 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, 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, 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, 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, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
CANVAS_WIDTH
protected static final int CANVAS_WIDTHDeprecated.- See Also:
-
CANVAS_HEIGHT
protected static final int CANVAS_HEIGHTDeprecated.- See Also:
-
msg
protected simphony.util.messages.MessageCenter msgDeprecated. -
currentListener
protected org.piccolo2d.event.PInputEventListener currentListenerDeprecated. -
toolLayer
protected org.piccolo2d.PLayer toolLayerDeprecated. -
context
protected org.geotools.map.MapContent contextDeprecated. -
rect
Deprecated. -
layerNames
Deprecated. -
layers
Deprecated. -
scaleDenominator
protected double scaleDenominatorDeprecated. -
ellipse
protected org.geotools.referencing.datum.DefaultEllipsoid ellipseDeprecated. -
layerListening
protected org.piccolo2d.PLayer layerListeningDeprecated. -
mapLayer
protected org.piccolo2d.PLayer mapLayerDeprecated. -
mediator
Deprecated.
-
-
Constructor Details
-
PGISCanvas
public PGISCanvas(org.geotools.map.MapContent context) Deprecated.Create and new Canvas for the given context.- Parameters:
context
- The context to be displayed
-
-
Method Details
-
getCRS
public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()Deprecated. -
zoomToPreviousExtent
public void zoomToPreviousExtent()Deprecated. -
getScaleDenominator
public double getScaleDenominator()Deprecated. -
zoomToAreaOfInterest
public void zoomToAreaOfInterest()Deprecated.Zoom the map to the area of interest specified in the MapContext. -
setAreaOfInterest
public void setAreaOfInterest(org.geotools.geometry.jts.ReferencedEnvelope aoe) Deprecated. -
setEventHandler
public void setEventHandler(org.piccolo2d.event.PInputEventListener listener) Deprecated.Set the tool which the map is listening to.- Parameters:
listener
- the new tool to listen to.
-
addLayerEventHandler
public void addLayerEventHandler(String layerName, org.piccolo2d.event.PInputEventListener listener) Deprecated. -
getCurrentEventHandler
public org.piccolo2d.event.PInputEventListener getCurrentEventHandler()Deprecated. -
getToolLayer
public org.piccolo2d.PLayer getToolLayer()Deprecated.Gets the layer on which tools should draw.- Returns:
- the layer on which tools should draw.
-
getMapLayer
public org.piccolo2d.PLayer getMapLayer()Deprecated.Gets the layer that contains the individual map layers.- Returns:
- the layer that contains the individual map layers.
-
layerAdded
public void layerAdded(org.geotools.map.MapLayerListEvent event) Deprecated.- Specified by:
layerAdded
in interfaceorg.geotools.map.MapLayerListListener
-
layerChanged
public void layerChanged(org.geotools.map.MapLayerListEvent event) Deprecated.- Specified by:
layerChanged
in interfaceorg.geotools.map.MapLayerListListener
-
layerMoved
public void layerMoved(org.geotools.map.MapLayerListEvent event) Deprecated.- Specified by:
layerMoved
in interfaceorg.geotools.map.MapLayerListListener
-
layerRemoved
public void layerRemoved(org.geotools.map.MapLayerListEvent event) Deprecated.- Specified by:
layerRemoved
in interfaceorg.geotools.map.MapLayerListListener
-
repaint
public void repaint()Deprecated. -
propertyChange
Deprecated.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
mapBoundsChanged
public void mapBoundsChanged(org.geotools.map.MapBoundsEvent event) Deprecated.- Specified by:
mapBoundsChanged
in interfaceorg.geotools.map.MapBoundsListener
-
layerPreDispose
public void layerPreDispose(org.geotools.map.MapLayerListEvent event) Deprecated.- Specified by:
layerPreDispose
in interfaceorg.geotools.map.MapLayerListListener
-