public class DefaultViewPanel extends AbstractViewPanel implements Observer
Class View. This class represents the gvSIG specific internal window where the maps are displayed and where the events coming from the user are captured.
It is composed by three main visual areas:
AbstractViewPanel.ViewExceptionListener, AbstractViewPanel.ViewSplitPaneJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected org.gvsig.app.project.documents.view.gui.DefaultViewPanel.ResponseAdapter |
consoleResponseAdapter |
protected boolean |
isShowConsole |
isPalette, m_MapControl, m_MapLoc, m_TOC, m_viewInfo, mapControlExceptionListener, modelo, movp, tempMainSplit, tempSplitToc, windowLayoutaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
DefaultViewPanel()
Creates a new View object.
|
DefaultViewPanel(Document document) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsoleListener(String prefix,
ResponseListener listener) |
void |
focusConsole(String text) |
JConsole |
getConsolePanel() |
static Color |
getDefaultBackColor()
Deprecated.
use instead Project.getPreferences().getDefaultViewBackColor
|
static Color |
getDefaultMapOverViewBackColor()
Deprecated.
use instead
Project.getPreferences().setDefaultMapoverViewBackColor
|
Document |
getDocument() |
Object |
getWindowProfile()
Gets the profile for this window
|
void |
hideConsole() |
protected void |
initComponents(MapContext mapContext) |
protected void |
initialize(MapContext mapContext)
Create the internal componentes and populate the window with them.
|
void |
removeConsoleListener(ResponseListener listener) |
void |
restore()
Restore to standard view
|
static void |
setDefaultBackColor(Color color)
Deprecated.
use instead Project.getPreferences().setDefaultViewBackColor
|
static void |
setDefaultMapOverViewBackColor(Color color)
Deprecated.
use instead
Project.getPreferences().setDefaultMapoverViewBackColor
|
static void |
setDisableConsole(boolean disable) |
void |
setDocument(Document document) |
void |
setModel(ViewDocument model) |
void |
showConsole() |
void |
toPalette()
Transform to view palette.
|
void |
update(Observable observable,
Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
void |
windowActivated()
This method it is invoked when the window is activated.
|
void |
windowClosed()
This method it is invoked when the window is closed
|
asJComponent, getImage, getMapControl, getMapOverview, getModel, getProjection, getTOC, getViewDocument, getWindowInfo, getWindowLayout, getWindowModel, initialize, isPalette, propertyChange, repaintMap, setProjection, setWindowLayoutgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, updateadd, 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, 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, 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, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected org.gvsig.app.project.documents.view.gui.DefaultViewPanel.ResponseAdapter consoleResponseAdapter
protected boolean isShowConsole
public DefaultViewPanel()
AbstractViewPanel.initialize()public DefaultViewPanel(Document document)
protected void initialize(MapContext mapContext)
setWindowData(WindowData) method, the window will be
populated according to this properties.public void setDocument(Document document)
setDocument in interface IDocumentWindowpublic Document getDocument()
getDocument in interface IDocumentWindowpublic void setModel(ViewDocument model)
public JConsole getConsolePanel()
public void addConsoleListener(String prefix, ResponseListener listener)
public void removeConsoleListener(ResponseListener listener)
public void focusConsole(String text)
public void hideConsole()
public void showConsole()
protected void initComponents(MapContext mapContext)
public void windowActivated()
IWindowListenerwindowActivated in interface IWindowListenerwindowActivated in class AbstractViewPanelpublic void windowClosed()
IWindowListenerwindowClosed in interface IWindowListenerwindowClosed in class AbstractViewPanelIWindowListener.windowClosed()public void toPalette()
IWindowTransformtoPalette in interface IWindowTransformtoPalette in class AbstractViewPanelpublic void restore()
IWindowTransformrestore in interface IWindowTransformrestore in class AbstractViewPanelpublic static void setDefaultMapOverViewBackColor(Color color)
color - public static Color getDefaultMapOverViewBackColor()
public static Color getDefaultBackColor()
public static void setDefaultBackColor(Color color)
public Object getWindowProfile()
IWindowGets the profile for this window
getWindowProfile in interface IWindowpublic void update(Observable observable, Object notification)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public static void setDisableConsole(boolean disable)