Documentation of 'sgtplot.Pane' Java class
Pane
sgtplot

Class Pane

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, AbstractPane

    Deprecated. 
    As of sgtplot 3.0, use JPane.

    public class Pane
    extends java.awt.Container
    implements AbstractPane
    The Pane class is extended from java.awt.Container and is the basis for the gov.noaa.pmel.sgt package.

    The Java scientific graphics toolkit is designed to allow a graphics client developer a great deal of flexibility and freedom. sgtplot is a package that greatly aids a developer in creating graphics applets. sgtplot is not a general purpose graphics package, but provides the tools to enable scientific graphics to be easily incorporated into Applets.

    sgtplot has three main components, the "pane", on which all graphics are drawn. The Pane is a fairly simple class and all drawing is done in "device" coordinates (pixels). By default, the Pane will draw on the screen, but it is designed to allow drawing in an offscreen buffer that can be printed (for applications).

    The next component is the Layer. Several Layers can be associated with a single Pane. The Layer class insulates the developer from the details of device coordinates by using "physical" coordinates. Physical coordinates are a right-hand coordinate systems with an origin of (0.0, 0.0) in the lower-left-hand corner and have the same scale in both the vertical and horizontal directions. Thus, a Layer that is 5.0 units wide and 3.0 units high can be made larger and smaller on the screen by resizing the Pane, but will not be distorted. The Layer class is responsible for displaying labels, keys (color, vector, and line), and rulers. A Layer can contain a single Graph.

    Finally, the Graph component transforms from user coordinates (e.g. cm/sec, time, degC, or meters) to physical coordinates. The Graph classes handle the display of axes and data. Children of the Graph class are capable of creating Cartesian, polar, and map graphics. For Cartesian graphs, several different axes (log, plain and time), transforms (linear, log, and tablelookup), and CartesianGraph (pixel, line, vector, and contour) classes are available. These classes can be combined in almost any combination.

    While only one dataset may be plotted per Layer, co-plotting is supported by allowing layers to use the same transform objects. The order that the layers are plotted can be changed, allowing the developer (or user) to control what may be obscured.

    Member functions, in package gov.noaa.pmel.sgt, follow the following naming convention. Member functions that have a P, U, or nothing at the end of the function name are of type double in Physical units, type double in User units, and type int in Device units, respectively. Variables that start with p, u, t, or d are coordinates of type physical, user, time, or device, respectively.

    All graphics are rendered when the draw() method is invoked.

    Mouse Events

    Mouse events are processed by the JPane object to support object selection and zooming. Object selection is accomplished by left clicking the mouse on the desired object. JPane then fires a PropertyChangeEvent of type "objectSelected" that can be listened for by the users application. The user application then invokes the getSelectedObject() method. Zooming is accomplished in several steps.

     1) Begin a zoom operation by pressing the left button.
     2) Describe a zoom rectangle by dragging the mouse with the left
        button down.
     3) Finish the zoom operation by releasing the left mouse button.
     

    When the mouse button has been release JPane fires a PropertyChangeEvent of type "zoomRectangle" that can be listened for by the users application. The user application can then obtain the zoom rectangle by invoking the getZoomBounds() method.

    An example of object selection and zooming can be found in the JPane documentation.

    Since:
    1.0
    See Also:
    Layer, Graph, Graphics, Serialized Form
    • Nested Class Summary

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

        java.awt.Component.BaselineResizeBehavior
    • Constructor Summary

      Constructors 
      Constructor and Description
      Pane()
      Deprecated. 
      Default constructor.
      Pane(java.lang.String id, java.awt.Dimension size)
      Deprecated. 
      Constructs a Pane.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.awt.Component add(java.awt.Component comp)
      Deprecated. 
      Adds the specified component to the end of the Pane.
      java.awt.Component add(java.awt.Component comp, int index)
      Deprecated. 
      Adds the specified component to the Pane at the given position.
      void add(java.awt.Component comp, java.lang.Object constraints)
      Deprecated. 
      Adds the specified component to the end of this Pane.
      void add(java.awt.Component comp, java.lang.Object constraints, int index)
      Deprecated. 
      Adds the specified component to the end of this Pane at the specified index.
      java.awt.Component add(java.lang.String name, java.awt.Component comp)
      Deprecated. 
      Adds the specified component to this Pane.
      void addPropertyChangeListener(java.beans.PropertyChangeListener l)
      Deprecated. 
      Add a PropertyChangeListener to the list.
      void draw()
      Deprecated. 
      The AbstractPane and all of the attached Classes will be drawn.
      void draw(java.awt.Graphics g)
      Deprecated. 
      The AbstractPane and all of the attached Classes will be drawn.
      void draw(java.awt.Graphics g, int width, int height)
      Deprecated. 
      The AbstractPane and all of the attached Classes will be drawn.
      void draw(org.freehep.graphics2d.VectorGraphics g)
      Deprecated. 
       
      void draw(org.freehep.graphics2d.VectorGraphics g, int width, int height)
      Deprecated. 
       
      void draw(org.freehep.graphics2d.VectorGraphics g, java.lang.String s)
      Deprecated. 
       
      java.awt.Component getComponent()
      Deprecated. 
      Get the Component associated with the pane.
      Layer getFirstLayer()
      Deprecated. 
      Get the first Layer associated with the Pane
      java.lang.String getId()
      Deprecated. 
      Get the Pane identifier.
      Layer getLayer(java.lang.String id)
      Deprecated. 
      Get the Layer associated with the Pane indicated by the id.
      Layer getLayerFromDataId(java.lang.String id)
      Deprecated. 
      Get the Layer associated with the Pane indicated by the data id.
      java.awt.Dimension getMaximumSize()
      Deprecated. 
       
      java.awt.Dimension getMinimumSize()
      Deprecated. 
       
      java.lang.Object getObjectAt(int x, int y)
      Deprecated. 
      Get the current selected object at a point.
      java.lang.Object[] getObjectsAt(int x, int y)
      Deprecated. 
      Return an array of objects whose bounds include x,y.
      java.lang.Object[] getObjectsAt(java.awt.Point pt)
      Deprecated. 
      Return an array of objects whose bounds are at point pt.
      int getPageHAlign()
      Deprecated. 
      Get horizontal alignment for printing.
      java.awt.Point getPageOrigin()
      Deprecated. 
      Get the printer page origin.
      int getPageScaleMode()
      Deprecated. 
      Get printing scale mode.
      java.awt.Dimension getPageSize()
      Deprecated. 
      Get the printer page size.
      int getPageVAlign()
      Deprecated. 
      Get vertical alignment for printing.
      java.awt.Dimension getPreferredSize()
      Deprecated. 
       
      java.lang.Object getSelectedObject()
      Deprecated. 
      Return the last object selected.
      static StrokeDrawer getStrokeDrawer()
      Deprecated. 
      Internal access to jdk1.1 or Java2D line drawing.
      static java.lang.String getVersion()
      Deprecated. 
      Return the version of SGT.
      java.awt.Rectangle getZoomBounds()
      Deprecated. 
      Return the device coordinates of the zoom action.
      java.awt.Point getZoomStart()
      Deprecated. 
      Return the device coordinates of the start of the zoom action.
      void init()
      Deprecated. 
      No initialization required by Pane.
      boolean isBatch()
      Deprecated. 
      Is batching turned on?
      boolean isModified()
      Deprecated. 
      Has the plot been modified?
      boolean isMouseEventsEnabled()
      Deprecated. 
      Are MouseEvents enabled for processing by SGT?
      boolean isPrinter()
      Deprecated. 
      Test if the current Graphics object is a printer.
      void moveLayerDown(Layer lyr)
      Deprecated. 
      Move the Layer down in the stack.
      void moveLayerDown(java.lang.String id)
      Deprecated. 
      Move the Layer down in the stack.
      void moveLayerUp(Layer lyr)
      Deprecated. 
      Move the Layer up in the stack.
      void moveLayerUp(java.lang.String id)
      Deprecated. 
      Move the Layer up in the stack.
      void paint(java.awt.Graphics g)
      Deprecated. 
      Override of the parent paint method.
      void processMouseEvent(java.awt.event.MouseEvent event)
      Deprecated. 
      Overrides the default event methods.
      void processMouseMotionEvent(java.awt.event.MouseEvent event)
      Deprecated. 
       
      void removePropertyChangeListener(java.beans.PropertyChangeListener l)
      Deprecated. 
      Remove the PropertyChangeListener from the list.
      void setBatch(boolean batch)
      Deprecated. 
      Turn on/off batching of updates to the pane.
      void setBatch(boolean batch, java.lang.String msg)
      Deprecated. 
      Turn on/off batching of updates to the pane.
      void setId(java.lang.String id)
      Deprecated. 
      Set the Pane identifier
      void setModified(boolean mod, java.lang.String mess)
      Deprecated. 
      Notify the pane that something has changed and a redraw is required.
      void setMouseEventsEnabled(boolean enable)
      Deprecated. 
      Enable/disable the handling of MouseEvents by SGT.
      void setPageAlign(int vert, int horz)
      Deprecated. 
      Set alignment for printing.
      void setPageHAlign(int horz)
      Deprecated. 
      Set horizontal alignment for printing.
      void setPageOrigin(java.awt.Point p)
      Deprecated. 
      Set the printer page origin.
      void setPageScaleMode(int mode)
      Deprecated. 
      Set printing scale mode.
      void setPageVAlign(int vert)
      Deprecated. 
      Set vertical alignment for printing.
      void setSelectedObject(java.lang.Object obj)
      Deprecated. 
      Primarily used internally by sgtplot.
      void setSize(java.awt.Dimension d)
      Deprecated. 
      Set the size.
      java.lang.String toString()
      Deprecated. 
      Get a String representatinof the Pane.
      void update(java.awt.Graphics g)
      Deprecated. 
      Updates the Pane
      • Methods inherited from class java.awt.Container

        addContainerListener, addNotify, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

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

      • Pane

        public Pane(java.lang.String id,
                    java.awt.Dimension size)
        Deprecated. 
        Constructs a Pane.
        Parameters:
        id - the Pane identifier
        size - the size of the Pane in pixels
      • Pane

        public Pane()
        Deprecated. 
        Default constructor. The identifier is set to an empty string and the size is set to a width and height of 50 pixels. A default constructor is required to work as a component with Visual Cafe.
         import gov.noaa.pmel.sgt.Pane;
         ...
         Pane pane;
         ...
         pane = new Pane("main graph", new Dimension(400, 500));
         pane.setLayout(new StackedLayout());
         ...
         
        See Also:
        StackedLayout
    • Method Detail

      • getVersion

        public static java.lang.String getVersion()
        Deprecated. 
        Return the version of SGT.
        Since:
        3.0
      • draw

        public void draw(org.freehep.graphics2d.VectorGraphics g,
                         java.lang.String s)
        Deprecated. 
      • init

        public void init()
        Deprecated. 
        No initialization required by Pane.
        Specified by:
        init in interface AbstractPane
      • draw

        public void draw(org.freehep.graphics2d.VectorGraphics g)
        Deprecated. 
      • draw

        public void draw(org.freehep.graphics2d.VectorGraphics g,
                         int width,
                         int height)
        Deprecated. 
      • isPrinter

        public boolean isPrinter()
        Deprecated. 
        Description copied from interface: AbstractPane
        Test if the current Graphics object is a printer.
        Specified by:
        isPrinter in interface AbstractPane
        Returns:
        true if a printer
      • getStrokeDrawer

        public static StrokeDrawer getStrokeDrawer()
        Deprecated. 
        Internal access to jdk1.1 or Java2D line drawing.
      • getPageSize

        public java.awt.Dimension getPageSize()
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the printer page size.
        Specified by:
        getPageSize in interface AbstractPane
        Returns:
        page size
      • update

        public void update(java.awt.Graphics g)
        Deprecated. 
        Updates the Pane
        Overrides:
        update in class java.awt.Container
      • paint

        public void paint(java.awt.Graphics g)
        Deprecated. 
        Override of the parent paint method. This method should not be called by a user.
        Overrides:
        paint in class java.awt.Container
      • add

        public java.awt.Component add(java.awt.Component comp)
        Deprecated. 
        Adds the specified component to the end of the Pane.
        Overrides:
        add in class java.awt.Container
        Parameters:
        comp - the component to be added
        Returns:
        component argument
      • add

        public java.awt.Component add(java.awt.Component comp,
                                      int index)
        Deprecated. 
        Adds the specified component to the Pane at the given position.
        Overrides:
        add in class java.awt.Container
        Parameters:
        comp - the component to be added
        index - the position at which to insert the component, or -1 to insert the component at the end.
        Returns:
        component argument
      • add

        public void add(java.awt.Component comp,
                        java.lang.Object constraints)
        Deprecated. 
        Adds the specified component to the end of this Pane. Also notifies the layout manager to add the component to this Pane's layout using the specified constraints object.
        Overrides:
        add in class java.awt.Container
        Parameters:
        comp - the component to be added
        constraints - an object expressing layout constraints for this component
      • add

        public void add(java.awt.Component comp,
                        java.lang.Object constraints,
                        int index)
        Deprecated. 
        Adds the specified component to the end of this Pane at the specified index. Also notifies the layout manager to add the component to this Pane's layout using the specified constraints object.
        Overrides:
        add in class java.awt.Container
        Parameters:
        comp - the component to be added
        constraints - an object expressing layout constraints for this component
        index - the position in the Pane's list at which to insert the component -1 means insert at the end.
      • add

        public java.awt.Component add(java.lang.String name,
                                      java.awt.Component comp)
        Deprecated. 
        Adds the specified component to this Pane. It is strongly advised to use add(Component, Object), in place of this method.
        Overrides:
        add in class java.awt.Container
      • getId

        public java.lang.String getId()
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the Pane identifier.
        Specified by:
        getId in interface AbstractPane
        Returns:
        String containing the Pane identifier.
      • setId

        public void setId(java.lang.String id)
        Deprecated. 
        Description copied from interface: AbstractPane
        Set the Pane identifier
        Specified by:
        setId in interface AbstractPane
      • setPageOrigin

        public void setPageOrigin(java.awt.Point p)
        Deprecated. 
        Description copied from interface: AbstractPane
        Set the printer page origin. Valid for HAlign = SPECIFIED_LOCATION or VAlign = SPECIFIED_LOCATION.
        Specified by:
        setPageOrigin in interface AbstractPane
      • getPageOrigin

        public java.awt.Point getPageOrigin()
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the printer page origin. Valid for HAlign = SPECIFIED_LOCATION or VAlign = SPECIFIED_LOCATION.
        Specified by:
        getPageOrigin in interface AbstractPane
      • setSize

        public void setSize(java.awt.Dimension d)
        Deprecated. 
        Set the size.
        Overrides:
        setSize in class java.awt.Component
      • getFirstLayer

        public Layer getFirstLayer()
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the first Layer associated with the Pane
        Specified by:
        getFirstLayer in interface AbstractPane
        Returns:
        the first Layer object
      • moveLayerUp

        public void moveLayerUp(Layer lyr)
                         throws LayerNotFoundException
        Deprecated. 
        Move the Layer up in the stack. The order of the layers determine when they are drawn. Moving the Layer up causes the Layer to be drawn later and over earlier layers.
        Parameters:
        lyr - Layer object.
        Throws:
        LayerNotFoundException - The specified Layer was not found in the list.
        See Also:
        Layer
      • moveLayerUp

        public void moveLayerUp(java.lang.String id)
                         throws LayerNotFoundException
        Deprecated. 
        Move the Layer up in the stack. The order of the layers determine when they are drawn. Moving the Layer up causes the Layer to be drawn later and over earlier layers.
        Parameters:
        id - identifier.
        Throws:
        LayerNotFoundException - The specified Layer was not found in the list.
        See Also:
        Layer
      • moveLayerDown

        public void moveLayerDown(Layer lyr)
                           throws LayerNotFoundException
        Deprecated. 
        Move the Layer down in the stack. The order of the layers determine when they are drawn. Moving the Layer down causes the Layer to be drawn earlier.
        Parameters:
        lyr - Layer object.
        Throws:
        LayerNotFoundException - The specified Layer was not found in the list.
        See Also:
        Layer
      • moveLayerDown

        public void moveLayerDown(java.lang.String id)
                           throws LayerNotFoundException
        Deprecated. 
        Move the Layer down in the stack. The order of the layers determine when they are drawn. Moving the Layer down causes the Layer to be drawn earlier.
        Parameters:
        id - identifier
        Throws:
        LayerNotFoundException - The specified Layer was not found in the list.
        See Also:
        Layer
      • getSelectedObject

        public java.lang.Object getSelectedObject()
        Deprecated. 
        Description copied from interface: AbstractPane
        Return the last object selected. Returns only objects that are part of Layers currently connected to the pane. AbstractPane tests each layer after a MOUSE_DOWN event for an object whose bounding box contains the mouse. The pane object then passes the event on to the next level.
        Specified by:
        getSelectedObject in interface AbstractPane
      • setSelectedObject

        public void setSelectedObject(java.lang.Object obj)
        Deprecated. 
        Description copied from interface: AbstractPane
        Primarily used internally by sgtplot. This can also be used to mark an object as selected for use in an event handler.
        Specified by:
        setSelectedObject in interface AbstractPane
      • processMouseEvent

        public void processMouseEvent(java.awt.event.MouseEvent event)
        Deprecated. 
        Overrides the default event methods.
        Overrides:
        processMouseEvent in class java.awt.Component
      • processMouseMotionEvent

        public void processMouseMotionEvent(java.awt.event.MouseEvent event)
        Deprecated. 
        Overrides:
        processMouseMotionEvent in class java.awt.Component
      • getZoomBounds

        public java.awt.Rectangle getZoomBounds()
        Deprecated. 
        Description copied from interface: AbstractPane
        Return the device coordinates of the zoom action. The coordinates are in device units and may require transformation to the physical units or user units.
        Specified by:
        getZoomBounds in interface AbstractPane
        Returns:
        zoom rectangle
      • getZoomStart

        public java.awt.Point getZoomStart()
        Deprecated. 
        Description copied from interface: AbstractPane
        Return the device coordinates of the start of the zoom action. The Point is in device coordinates and may require transformation to physical units or user units. Zoom start may be useful to indicate which graph to zoom.
        Specified by:
        getZoomStart in interface AbstractPane
        Returns:
        zoom start
        Since:
        3.0
      • getObjectAt

        public java.lang.Object getObjectAt(int x,
                                            int y)
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the current selected object at a point. Used internally by sgtplot.
        Specified by:
        getObjectAt in interface AbstractPane
      • getObjectsAt

        public java.lang.Object[] getObjectsAt(int x,
                                               int y)
        Deprecated. 
        Description copied from interface: AbstractPane
        Return an array of objects whose bounds include x,y.
        Specified by:
        getObjectsAt in interface AbstractPane
        Since:
        3.0
      • getObjectsAt

        public java.lang.Object[] getObjectsAt(java.awt.Point pt)
        Deprecated. 
        Description copied from interface: AbstractPane
        Return an array of objects whose bounds are at point pt.
        Specified by:
        getObjectsAt in interface AbstractPane
        Since:
        3.0
      • getComponent

        public java.awt.Component getComponent()
        Deprecated. 
        Description copied from interface: AbstractPane
        Get the Component associated with the pane.
        Specified by:
        getComponent in interface AbstractPane
      • getMaximumSize

        public java.awt.Dimension getMaximumSize()
        Deprecated. 
        Overrides:
        getMaximumSize in class java.awt.Container
      • getMinimumSize

        public java.awt.Dimension getMinimumSize()
        Deprecated. 
        Overrides:
        getMinimumSize in class java.awt.Container
      • getPreferredSize

        public java.awt.Dimension getPreferredSize()
        Deprecated. 
        Overrides:
        getPreferredSize in class java.awt.Container
      • toString

        public java.lang.String toString()
        Deprecated. 
        Get a String representatinof the Pane.
        Overrides:
        toString in class java.awt.Component
        Returns:
        String representation
      • setBatch

        public void setBatch(boolean batch,
                             java.lang.String msg)
        Deprecated. 
        Description copied from interface: AbstractPane
        Turn on/off batching of updates to the pane. While batching is true property change events will not cause pane to redraw. When batching is turned back on if the pane has been modified it will then redraw.
        Specified by:
        setBatch in interface AbstractPane
      • setBatch

        public void setBatch(boolean batch)
        Deprecated. 
        Description copied from interface: AbstractPane
        Turn on/off batching of updates to the pane. While batching is true property change events will not cause pane to redraw. When batching is turned back on if the pane has been modified it will then redraw.
        Specified by:
        setBatch in interface AbstractPane
      • isBatch

        public boolean isBatch()
        Deprecated. 
        Description copied from interface: AbstractPane
        Is batching turned on?
        Specified by:
        isBatch in interface AbstractPane
      • setModified

        public void setModified(boolean mod,
                                java.lang.String mess)
        Deprecated. 
        Description copied from interface: AbstractPane
        Notify the pane that something has changed and a redraw is required. Used internally by sgtplot.
        Specified by:
        setModified in interface AbstractPane
      • isModified

        public boolean isModified()
        Deprecated. 
        Description copied from interface: AbstractPane
        Has the plot been modified?
        Specified by:
        isModified in interface AbstractPane
      • setMouseEventsEnabled

        public void setMouseEventsEnabled(boolean enable)
        Deprecated. 
        Description copied from interface: AbstractPane
        Enable/disable the handling of MouseEvents by SGT. Disabling mouse events will turn off object selection, moveable, selectable, draggable, and zooming.
        Specified by:
        setMouseEventsEnabled in interface AbstractPane
        Since:
        3.0
      • isMouseEventsEnabled

        public boolean isMouseEventsEnabled()
        Deprecated. 
        Description copied from interface: AbstractPane
        Are MouseEvents enabled for processing by SGT?
        Specified by:
        isMouseEventsEnabled in interface AbstractPane
        Since:
        3.0
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
        Deprecated. 
        Description copied from interface: AbstractPane
        Add a PropertyChangeListener to the list. Properties for Pane and JPane include "objectSelected" and "zoomRectangle".
        Specified by:
        addPropertyChangeListener in interface AbstractPane
        Overrides:
        addPropertyChangeListener in class java.awt.Container
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
        Deprecated. 
        Description copied from interface: AbstractPane
        Remove the PropertyChangeListener from the list.
        Specified by:
        removePropertyChangeListener in interface AbstractPane
        Overrides:
        removePropertyChangeListener in class java.awt.Component
      • draw

        public void draw(java.awt.Graphics g)
        Deprecated. 
        Description copied from interface: AbstractPane
        The AbstractPane and all of the attached Classes will be drawn. Drawing will occur using the supplied Graphics object.
        Specified by:
        draw in interface AbstractPane
        Parameters:
        g - User supplied Graphics object
        See Also:
        Graphics
      • draw

        public void draw(java.awt.Graphics g,
                         int width,
                         int height)
        Deprecated. 
        Description copied from interface: AbstractPane
        The AbstractPane and all of the attached Classes will be drawn. Drawing will occur using the supplied Graphics object. And clipping will be done to the width and height.
        Specified by:
        draw in interface AbstractPane
        Parameters:
        g - User supplied Graphics object
        width - clipping width
        height - clipping height
        See Also:
        Graphics
      • draw

        public void draw()
        Deprecated. 
        Description copied from interface: AbstractPane
        The AbstractPane and all of the attached Classes will be drawn. Drawing will occur in an offscreen image and then copied to the screen. A new offscreen image is created on the first call to draw() or if the size of the pane has been changed. The offscreen image will be used as a "double" buffer when the screen requires redrawing.

        Each Layer that has been added will be drawn in the order added, except if that order has been change using the moveLayerUp() or moveLayerDown() methods.

        Specified by:
        draw in interface AbstractPane
        See Also:
        Graphics, Layer

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.