|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--gov.noaa.pmel.sgt.beans.Panel
A Layer container that provides a StackedLayout of
the Layers.
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Panel(PanelHolder ph)
Panel constructor with PanelHolder argument. |
|
Panel(java.lang.String name)
Panel constructor. |
|
| Method Summary | |
void |
addData(SGTData data,
Attribute attr,
DataGroup dataGroup,
Legend legend)
Add data to this Panel and DataGroup. |
void |
draw(java.awt.Graphics g)
Used internally by sgt. |
void |
drawDraggableItems(java.awt.Graphics g)
Used internally by sgt. |
DataGroupLayer |
findDataGroupLayer(java.lang.String id)
Find DataGroupLayer in Panel. |
java.lang.String |
getId()
Get the identifier for the Panel |
Layer |
getLayer(java.lang.String id)
Get Layer from this Panel. |
Layer |
getLayerFromDataId(java.lang.String id)
Get Layer from this Panel. |
java.lang.Object |
getObjectAt(int x,
int y,
boolean check)
Find object associated with a MOUSE_DOWN event. |
java.lang.Object[] |
getObjectsAt(int x,
int y,
boolean check)
Find objects associated with a MOUSE_DOWN event. |
JPane |
getPane()
Get the JPane the Panel is associated
with. |
boolean |
hasLayer(java.lang.String id)
Does this Panel contain this Layer? |
boolean |
isDataInPanel(java.lang.String id)
Checks to see if a data id matches that data attached to the Graph. |
void |
resetZoom()
Reset the zoom for all DataGroupLayers in this Panel. |
void |
setClipping(boolean clip)
Set clipping for DataGroupLayers in this Panel. |
void |
setPane(AbstractPane pane)
Set the Pane the Panel is associated with. |
void |
setPanelHolder(PanelHolder ph)
Set PanelHolder. |
java.lang.String |
toString()
Get a String representation of the
Layer. |
void |
update()
Traverses the PanelHolder and adds any new objects and
updates exisiting objects. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Panel(java.lang.String name)
Panel constructor. PanelHolder will need to be
set.
name - Panel namepublic Panel(PanelHolder ph)
Panel constructor with PanelHolder argument.
Panel name set from PanelHolder identifier.
ph - PanelHolder| Method Detail |
public void setPanelHolder(PanelHolder ph)
PanelHolder. PanelHolder contains the layout
information and DataGroups associated with the Panel.
ph - PanelHolderpublic void update()
PanelHolder and adds any new objects and
updates exisiting objects.
public java.lang.Object getObjectAt(int x,
int y,
boolean check)
x - mouse coordinatey - mouse coordinatecheck - if true requires that object isSelectable
public void resetZoom()
DataGroupLayers in this Panel.
public void setClipping(boolean clip)
DataGroupLayers in this Panel.
clip - if true clip data to bounds.public boolean hasLayer(java.lang.String id)
Panel contain this Layer?
id - layer identification
public Layer getLayer(java.lang.String id)
Layer from this Panel. Returns null
if Layer is not found.
id - Layer identifier
public boolean isDataInPanel(java.lang.String id)
Graph.
id - data identifier
public Layer getLayerFromDataId(java.lang.String id)
Layer from this Panel. Returns null
if Layer is not found.
id - SGTData identifier
public java.lang.Object[] getObjectsAt(int x,
int y,
boolean check)
x - mouse coordinatey - mouse coordinatecheck - if selectable
public DataGroupLayer findDataGroupLayer(java.lang.String id)
DataGroupLayer in Panel.
id - DataGroupLayer identifier
public JPane getPane()
JPane the Panel is associated
with.
Panepublic void setPane(AbstractPane pane)
Pane the Panel is associated with.
This method is called by Pane when the
Pane.add method is exectued.
setPane in interface LayerControlpane - The Pane
public void draw(java.awt.Graphics g)
throws PaneNotFoundException
LayerControl
draw in interface LayerControlg - Graphics object
PaneNotFoundException - Pane not found.
public void drawDraggableItems(java.awt.Graphics g)
throws PaneNotFoundException
LayerControl
drawDraggableItems in interface LayerControlg - Graphics object.
PaneNotFoundException - Pane not found.
public void addData(SGTData data,
Attribute attr,
DataGroup dataGroup,
Legend legend)
throws DataTargetMismatchException
Panel and DataGroup. legend can
be null.
data - SGTData to be addedattr - AttributedataGroup - DataGroup to add data tolegend - Lenged for data
DataTargetMismatchExceptionpublic java.lang.String getId()
Panel
getId in interface LayerControlpublic java.lang.String toString()
String representation of the
Layer.
toString in class java.awt.ComponentString representation
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||