|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
gov.noaa.pmel.sgt.Layer
gov.noaa.pmel.sgt.beans.DataGroupLayer
public class 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 FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class gov.noaa.pmel.sgt.Layer |
---|
pane_ |
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 Layer s. |
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, getXOffset, getXPtoD, getXPtoD2, getXSlope, getYDtoP, getYOffset, getYPtoD, getYPtoD2, getYSlope, 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, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMinimumSize, setName, setPreferredSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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
- datagroupMethod 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 Layer
s.
public void addData(SGTData data, Attribute attr, DataKey key) throws DataTargetMismatchException
DataGroupLayer
.
data
- SGTDataattr
- Attribute associated with datakey
- DataKey
DataTargetMismatchException
public void update()
DataGroupLayer
. Used internally.
public void draw(java.awt.Graphics g) throws PaneNotFoundException
Layer
draw
in interface LayerControl
draw
in class Layer
g
- graphics context
PaneNotFoundException
- if a pane object is not foundpublic void drawDraggableItems(java.awt.Graphics g) throws PaneNotFoundException
LayerControl
drawDraggableItems
in interface LayerControl
drawDraggableItems
in class Layer
g
- Graphics object.
PaneNotFoundException
- Pane not found.public void setBounds(int x, int y, int w, int h)
Layer
Layer
in device units.
setBounds
in class Layer
x
- horizontal location of the Layer
y
- vertical location of the Layer
w
- width of the Layer
h
- height of the Layer
public void setBounds(java.awt.Rectangle rect)
Layer
Layer
in device units.
setBounds
in class Layer
rect
- bounds of the Layer
public void setLocation(int x, int y)
Layer
Layer
in device units.
setLocation
in class Layer
x
- horizontal location of the Layer
y
- vertical location of the Layer
public void setLocation(java.awt.Point pt)
Layer
Layer
in device units.
setLocation
in class Layer
pt
- location of the Layer
public void setSize(java.awt.Dimension size)
Layer
Layer
in device units.
setSize
in class Layer
size
- dimension of the Layer
public void setSize(int w, int h)
Layer
Layer
in device units.
setSize
in class Layer
w
- width of the Layer
h
- height of the Layer
public void setSizeP(Dimension2D size)
Layer
Layer
in physical coordinates.
setSizeP
in class Layer
size
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |