Documentation of 'sgtplot.beans.DataGroupLayer' Java class
DataGroupLayer
sgtplot.beans

Class 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 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.
    Since:
    3.0
    See Also:
    Page for UML diagram, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addData(SGTData data, Attribute attr, DataKey key)
      Add data to the DataGroupLayer.
      void draw(org.freehep.graphics2d.VectorGraphics g)
      Draw the Layer and its attached classes.
      void drawDraggableItems(org.freehep.graphics2d.VectorGraphics g)
      Used internally by sgtplot.
      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 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataGroupLayer

        public DataGroupLayer()
        Default constructor. Panel and DataGroup must be specified.
      • DataGroupLayer

        public DataGroupLayer(Panel panel,
                              DataGroup dg)
        Construct DataGroupLayer.
        Parameters:
        panel - parent
        dg - datagroup
    • Method Detail

      • getPanel

        public Panel getPanel()
        Get the Panel parent.
        Returns:
        panel
      • getDataGroup

        public DataGroup getDataGroup()
        Get DataGroup
        Returns:
        the datagroup
      • getLayerIterator

        public java.util.Iterator getLayerIterator()
        Get Layer Iterator.
        Returns:
        iterator of Layers
      • getLayerList

        public java.util.List getLayerList()
        Get a List of the Layers.
        Returns:
        layer list
      • update

        public void update()
        Update DataGroupLayer. Used internally.
      • setBounds

        public void setBounds(int x,
                              int y,
                              int w,
                              int h)
        Description copied from class: Layer
        Set the bounds of the Layer in device units.
        Overrides:
        setBounds in class Layer
        Parameters:
        x - horizontal location of the Layer
        y - vertical location of the Layer
        w - width of the Layer
        h - height of the Layer
      • setBounds

        public void setBounds(java.awt.Rectangle rect)
        Description copied from class: Layer
        Set the bounds of the Layer in device units.
        Overrides:
        setBounds in class Layer
        Parameters:
        rect - bounds of the Layer
      • setLocation

        public void setLocation(int x,
                                int y)
        Description copied from class: Layer
        Set the location of the Layer in device units.
        Overrides:
        setLocation in class Layer
        Parameters:
        x - horizontal location of the Layer
        y - vertical location of the Layer
      • setLocation

        public void setLocation(java.awt.Point pt)
        Description copied from class: Layer
        Set the location of the Layer in device units.
        Overrides:
        setLocation in class Layer
        Parameters:
        pt - location of the Layer
      • setSize

        public void setSize(java.awt.Dimension size)
        Description copied from class: Layer
        Set the size of the Layer in device units.
        Overrides:
        setSize in class Layer
        Parameters:
        size - dimension of the Layer
      • setSize

        public void setSize(int w,
                            int h)
        Description copied from class: Layer
        Set the size of the Layer in device units.
        Overrides:
        setSize in class Layer
        Parameters:
        w - width of the Layer
        h - height of the Layer
      • setSizeP

        public void setSizeP(Dimension2D size)
        Description copied from class: Layer
        Set the size of the Layer in physical coordinates.
        Overrides:
        setSizeP in class Layer
        Parameters:
        size - The physical size of the Layer.
      • setClipping

        public void setClipping(boolean clip)
        Set clipping for DataGroupLayer
        Parameters:
        clip - if true clip data to bounds.
      • resetZoom

        public void resetZoom()
        Reset the zoom for this DataGroupLayer.
      • setDomain

        public void setDomain(SoTDomain domain)
        Set DataGroupLayer domain.
        Parameters:
        domain - domain

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.