|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--gov.noaa.pmel.sgt.Layer
|
+--gov.noaa.pmel.sgt.beans.DataGroupLayer
A holder for DataGroup and Layer associated with
axes and Graph. Multiple sets of data can be added to a DataGroupLayer,
but each will share the same DataGroup. I.e., the same axes and
transforms.
Page for UML diagram,
Serialized Form| Field Summary |
| 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 | |
DataGroupLayer()
Default constructor. |
|
DataGroupLayer(Panel panel,
DataGroup dg)
Construct DataGroupLayer. |
|
| Method Summary | |
void |
addData(SGTData data,
Attribute attr,
DataKey key)
Add data to the DataGroupLayer. |
void |
draw(java.awt.Graphics g)
Draw the Layer and its attached classes. |
void |
drawDraggableItems(java.awt.Graphics g)
Used internally by sgt. |
DataGroup |
getDataGroup()
Get DataGroup |
java.util.Iterator |
getLayerIterator()
Get Layer Iterator. |
java.util.List |
getLayerList()
Get a List of the Layers. |
Panel |
getPanel()
Get the Panel parent. |
void |
resetZoom()
Reset the zoom for this DataGroupLayer. |
void |
setBounds(int x,
int y,
int w,
int h)
Set the bounds of the Layer in device units. |
void |
setBounds(java.awt.Rectangle rect)
Set the bounds of the Layer in device units. |
void |
setClipping(boolean clip)
Set clipping for DataGroupLayer |
void |
setDomain(SoTDomain domain)
Set DataGroupLayer domain. |
void |
setLocation(int x,
int y)
Set the location of the Layer in device units. |
void |
setLocation(java.awt.Point pt)
Set the location of the Layer in device units. |
void |
setSize(java.awt.Dimension size)
Set the size of the Layer in device units. |
void |
setSize(int w,
int h)
Set the size of the Layer in device units. |
void |
setSizeP(Dimension2D size)
Set the size of the Layer in physical coordinates. |
void |
update()
Update DataGroupLayer. |
| Methods inherited from class gov.noaa.pmel.sgt.Layer |
addChild, childElements, childIterator, copy, findChild, getBoundsP, getChild, getChildren, getGraph, getId, getObjectAt, getObjectAt, getObjectAt, getObjectsAt, getPane, getSizeP, getXDtoP, getXPtoD, getXPtoD2, getYDtoP, getYPtoD, getYPtoD2, isChildAttached, isDataInLayer, modified, removeAllChildren, removeChild, removeChild, setGraph, setId, setPane, toString |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setName, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataGroupLayer()
Panel and DataGroup must
be specified.
public DataGroupLayer(Panel panel,
DataGroup dg)
DataGroupLayer.
panel - parentdg - datagroup| Method Detail |
public Panel getPanel()
Panel parent.
public DataGroup getDataGroup()
DataGroup
public java.util.Iterator getLayerIterator()
Layer Iterator.
public java.util.List getLayerList()
List of the Layers.
public void addData(SGTData data,
Attribute attr,
DataKey key)
throws DataTargetMismatchException
DataGroupLayer.
data - SGTDataattr - Attribute associated with datakey - DataKey
DataTargetMismatchExceptionpublic void update()
DataGroupLayer. Used internally.
public void draw(java.awt.Graphics g)
throws PaneNotFoundException
Layer
draw in interface LayerControldraw in class Layerg - graphics context
PaneNotFoundException - if a pane object is not found
public void drawDraggableItems(java.awt.Graphics g)
throws PaneNotFoundException
LayerControl
drawDraggableItems in interface LayerControldrawDraggableItems in class Layerg - Graphics object.
PaneNotFoundException - Pane not found.
public void setBounds(int x,
int y,
int w,
int h)
LayerLayer in device units.
setBounds in class Layerx - horizontal location of the Layery - vertical location of the Layerw - width of the Layerh - height of the Layerpublic void setBounds(java.awt.Rectangle rect)
LayerLayer in device units.
setBounds in class Layerrect - bounds of the Layer
public void setLocation(int x,
int y)
LayerLayer in device units.
setLocation in class Layerx - horizontal location of the Layery - vertical location of the Layerpublic void setLocation(java.awt.Point pt)
LayerLayer in device units.
setLocation in class Layerpt - location of the Layerpublic void setSize(java.awt.Dimension size)
LayerLayer in device units.
setSize in class Layersize - dimension of the Layer
public void setSize(int w,
int h)
LayerLayer in device units.
setSize in class Layerw - width of the Layerh - height of the Layerpublic void setSizeP(Dimension2D size)
LayerLayer in physical coordinates.
setSizeP in class Layersize - The physical size of the Layer.public void setClipping(boolean clip)
DataGroupLayer
clip - if true clip data to bounds.public void resetZoom()
DataGroupLayer.
public void setDomain(SoTDomain domain)
DataGroupLayer domain.
domain - domain
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||