sgtplot.beans
Class DataGroupLayer
- java.lang.Object
-
- java.awt.Component
-
- sgtplot.Layer
-
- sgtplot.beans.DataGroupLayer
-
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Cloneable, LayerControl
public class DataGroupLayer extends Layer
A holder forDataGroupandLayerassociated with axes andGraph. Multiple sets of data can be added to a DataGroupLayer, but each will share the sameDataGroup. I.e., the same axes and transforms.- Since:
- 3.0
- See Also:
Page for UML diagram, Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor and Description DataGroupLayer()Default constructor.DataGroupLayer(Panel panel, DataGroup dg)ConstructDataGroupLayer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddData(SGTData data, Attribute attr, DataKey key)Add data to theDataGroupLayer.voiddraw(org.freehep.graphics2d.VectorGraphics g)Draw the Layer and its attached classes.voiddrawDraggableItems(org.freehep.graphics2d.VectorGraphics g)Used internally by sgtplot.DataGroupgetDataGroup()GetDataGroupjava.util.IteratorgetLayerIterator()GetLayerIterator.java.util.ListgetLayerList()Get aListof theLayers.PanelgetPanel()Get thePanelparent.voidresetZoom()Reset the zoom for thisDataGroupLayer.voidsetBounds(int x, int y, int w, int h)Set the bounds of theLayerin device units.voidsetBounds(java.awt.Rectangle rect)Set the bounds of theLayerin device units.voidsetClipping(boolean clip)Set clipping forDataGroupLayervoidsetDomain(SoTDomain domain)SetDataGroupLayerdomain.voidsetLocation(int x, int y)Set the location of theLayerin device units.voidsetLocation(java.awt.Point pt)Set the location of theLayerin device units.voidsetSize(java.awt.Dimension size)Set the size of theLayerin device units.voidsetSize(int w, int h)Set the size of theLayerin device units.voidsetSizeP(Dimension2D size)Set the size of theLayerin physical coordinates.voidupdate()UpdateDataGroupLayer.-
Methods inherited from class sgtplot.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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, 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, 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, revalidate, 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
-
-
-
-
Constructor Detail
-
DataGroupLayer
public DataGroupLayer()
Default constructor.PanelandDataGroupmust be specified.
-
-
Method Detail
-
getPanel
public Panel getPanel()
Get thePanelparent.- Returns:
- panel
-
getDataGroup
public DataGroup getDataGroup()
GetDataGroup- Returns:
- the datagroup
-
getLayerIterator
public java.util.Iterator getLayerIterator()
GetLayerIterator.- Returns:
- iterator of Layers
-
getLayerList
public java.util.List getLayerList()
Get aListof theLayers.- Returns:
- layer list
-
addData
public void addData(SGTData data, Attribute attr, DataKey key) throws DataTargetMismatchException
Add data to theDataGroupLayer.- Parameters:
data- SGTDataattr- Attribute associated with datakey- DataKey- Throws:
DataTargetMismatchException
-
update
public void update()
UpdateDataGroupLayer. Used internally.
-
draw
public void draw(org.freehep.graphics2d.VectorGraphics g) throws PaneNotFoundExceptionDescription copied from class:LayerDraw the Layer and its attached classes.- Specified by:
drawin interfaceLayerControl- Overrides:
drawin classLayer- Parameters:
g- graphics context- Throws:
PaneNotFoundException- if a pane object is not found
-
drawDraggableItems
public void drawDraggableItems(org.freehep.graphics2d.VectorGraphics g) throws PaneNotFoundExceptionDescription copied from interface:LayerControlUsed internally by sgtplot.- Specified by:
drawDraggableItemsin interfaceLayerControl- Overrides:
drawDraggableItemsin classLayer- Parameters:
g- Graphics object.- Throws:
PaneNotFoundException- Pane not found.
-
setBounds
public void setBounds(int x, int y, int w, int h)Description copied from class:LayerSet the bounds of theLayerin device units.
-
setBounds
public void setBounds(java.awt.Rectangle rect)
Description copied from class:LayerSet the bounds of theLayerin device units.
-
setLocation
public void setLocation(int x, int y)Description copied from class:LayerSet the location of theLayerin device units.- Overrides:
setLocationin classLayer- Parameters:
x- horizontal location of theLayery- vertical location of theLayer
-
setLocation
public void setLocation(java.awt.Point pt)
Description copied from class:LayerSet the location of theLayerin device units.- Overrides:
setLocationin classLayer- Parameters:
pt- location of theLayer
-
setSize
public void setSize(java.awt.Dimension size)
Description copied from class:LayerSet the size of theLayerin device units.
-
setSize
public void setSize(int w, int h)Description copied from class:LayerSet the size of theLayerin device units.
-
setSizeP
public void setSizeP(Dimension2D size)
Description copied from class:LayerSet the size of theLayerin physical coordinates.
-
setClipping
public void setClipping(boolean clip)
Set clipping forDataGroupLayer- Parameters:
clip- if true clip data to bounds.
-
resetZoom
public void resetZoom()
Reset the zoom for thisDataGroupLayer.
-
setDomain
public void setDomain(SoTDomain domain)
SetDataGroupLayerdomain.- Parameters:
domain- domain
-
-
DMelt 3.0 © DataMelt by jWork.ORG