|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.ontimize.util.gis.client.gui.panels.LayersPanel
public class LayersPanel
Gis client component used to add a layers information panel over the gis map viewer component.
This panel will show the list of actual map layers. Each layer will have a check button in order
to set that layer visible or not.
The layers panel can be minimized by clicking on its upper left corner.
It also can be dragged with the mouse.
Example code to add the layers panel into a gis component:
<com.ontimize.util.gis.client.gui.OGisComponent
attr="exampleComponent" layersconf="exampleConf">
<com.ontimize.util.gis.client.gui.panel.LayersPanel />
</com.ontimize.util.gis.client.gui.OGisComponent>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static java.lang.String |
BACKGROUND_COLOR
|
protected boolean |
editableCheckVisible
|
protected boolean |
enabled
|
protected java.awt.FontMetrics |
fm
|
protected IGisViewer |
gisViewer
|
protected static java.lang.String |
INITIAL_POSITION
|
protected java.awt.Font |
layerNameFont
|
protected java.util.List<IGisLayer> |
layers
|
protected LayersBox |
layersBox
|
protected static java.lang.String |
OPAQUE
|
protected int |
panelHeight
|
protected int |
panelWidth
|
protected int |
panelX
|
protected int |
panelY
|
protected com.ontimize.gui.Form |
parentForm
|
protected boolean |
selectableCheckVisible
|
protected boolean |
zoomButtonVisible
|
protected java.lang.String |
zoomToLayerIconStr
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.ontimize.gui.field.FormComponent |
|---|
DEBUG |
| Fields inherited from interface com.ontimize.gui.i18n.Internationalization |
|---|
DEBUG_LANGUAGE |
| Fields inherited from interface com.ontimize.gui.SecureElement |
|---|
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
LayersPanel(java.util.Hashtable parameters)
|
|
| Method Summary | |
|---|---|
java.awt.Component |
findComponentAt(java.awt.Point p)
|
java.lang.Object |
getAttribute()
|
java.awt.Rectangle |
getComponentLimits()
Get the component drawing limits, since the component it's not painted on all the extension of the panel. |
java.lang.Object |
getConstraints(java.awt.LayoutManager layoutManager)
|
protected void |
getLayersFromViewer()
|
java.util.Vector |
getTextsToTranslate()
|
void |
init(java.util.Hashtable params)
|
void |
initPermissions()
|
boolean |
isEnabled()
|
boolean |
isRestricted()
|
void |
setBackground(java.awt.Color color)
|
void |
setComponentLocale(java.util.Locale locale)
|
void |
setEnabled(boolean enabled)
|
void |
setGisViewer(IGisViewer gisViewer)
Set the gis viewer instance for the actual component |
void |
setParentForm(com.ontimize.gui.Form parentForm)
|
void |
setResourceBundle(java.util.ResourceBundle res)
|
void |
setVisible(boolean visible)
Sets the component visible |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, 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, 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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String INITIAL_POSITION
protected static java.lang.String BACKGROUND_COLOR
protected static java.lang.String OPAQUE
protected java.lang.String zoomToLayerIconStr
protected IGisViewer gisViewer
protected java.util.List<IGisLayer> layers
protected int panelX
protected int panelY
protected int panelWidth
protected int panelHeight
protected LayersBox layersBox
protected java.awt.Font layerNameFont
protected java.awt.FontMetrics fm
protected com.ontimize.gui.Form parentForm
protected boolean enabled
protected boolean zoomButtonVisible
protected boolean selectableCheckVisible
protected boolean editableCheckVisible
| Constructor Detail |
|---|
public LayersPanel(java.util.Hashtable parameters)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void init(java.util.Hashtable params)
throws java.lang.Exception
init in interface com.ontimize.gui.field.FormComponentjava.lang.Exceptionpublic java.util.Vector getTextsToTranslate()
getTextsToTranslate in interface com.ontimize.gui.i18n.Internationalizationpublic void setComponentLocale(java.util.Locale locale)
setComponentLocale in interface com.ontimize.gui.i18n.Internationalizationpublic void setResourceBundle(java.util.ResourceBundle res)
setResourceBundle in interface com.ontimize.gui.i18n.Internationalizationpublic java.lang.Object getAttribute()
getAttribute in interface com.ontimize.gui.field.IdentifiedElementpublic void initPermissions()
initPermissions in interface com.ontimize.gui.SecureElementpublic boolean isRestricted()
isRestricted in interface com.ontimize.gui.SecureElementpublic boolean isEnabled()
isEnabled in interface com.ontimize.gui.field.FormComponentisEnabled in class java.awt.Componentpublic void setEnabled(boolean enabled)
setEnabled in interface com.ontimize.gui.field.FormComponentsetEnabled in class javax.swing.JComponentpublic void setVisible(boolean visible)
IGisClientComponent
setVisible in interface com.ontimize.gui.field.FormComponentsetVisible in interface IGisClientComponentsetVisible in class javax.swing.JComponentpublic void setGisViewer(IGisViewer gisViewer)
IGisClientComponent
setGisViewer in interface IGisClientComponentgisViewer - Gis viewer instanceofprotected void getLayersFromViewer()
public java.awt.Component findComponentAt(java.awt.Point p)
findComponentAt in class java.awt.Containerpublic java.awt.Rectangle getComponentLimits()
IGisClientComponent
getComponentLimits in interface IGisClientComponentpublic java.lang.Object getConstraints(java.awt.LayoutManager layoutManager)
getConstraints in interface com.ontimize.gui.field.FormComponentpublic void setParentForm(com.ontimize.gui.Form parentForm)
setParentForm in interface com.ontimize.gui.field.AccessFormpublic void setBackground(java.awt.Color color)
setBackground in class javax.swing.JComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||