Documentation of 'org.joone.edit.DrawingRegion' Java class
DrawingRegion
org.joone.edit

Class DrawingRegion

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible


    public class DrawingRegion
    extends java.awt.Canvas
    implements java.lang.Runnable
    See Also:
    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, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor and Description
      DrawingRegion(java.awt.Dimension dimension, double ySpredning, int xSpredning)
      Creates a drawing area, with a interval between each label on the x-axis calculated by the int xSpredning.
      DrawingRegion(java.awt.Dimension dimension, int xSpredning) 
      DrawingRegion(int xSpredning)
      Creates a drowing area of 550x350, with a interval between each label on the x-axis calculated by the int xSpredning.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      SharedBuffer getBuffer()
      Return the sharedBuffer object for a mono-serie plotting, have to be called by the Producer object.
      SharedBuffer getBuffer(ChartingHandle handle)
      Return the sharedBuffer object for a multi-serie plotting, have to be called by the Producer object.
      int getMaxXvalue()
      Getter for property max_x_value.
      double getMaxYvalue()
      Getter for property max_y_value.
      void paint(java.awt.Graphics g)
      Is called by the System, to paint the drawing area.
      void run()
      Gets the new data from the producer and store them to grafData[].
      void setMaxXvalue(int max_x_value)
      Setter for property max_x_value.
      void setMaxYvalue(double max_y_value)
      Setter for property max_y_value.
      void start()
      Starts the thread
      void stopPloting()
      This will stop the object and end the thread.
      void update(java.awt.Graphics g) 
      • Methods inherited from class java.awt.Canvas

        addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, 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, 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, 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, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
      • Methods inherited from class java.lang.Object

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

      • DrawingRegion

        public DrawingRegion(java.awt.Dimension dimension,
                             double ySpredning,
                             int xSpredning)
        Creates a drawing area, with a interval between each label on the x-axis calculated by the int xSpredning. Use number of trainig cycles as a roule of thumb.
      • DrawingRegion

        public DrawingRegion(java.awt.Dimension dimension,
                             int xSpredning)
      • DrawingRegion

        public DrawingRegion(int xSpredning)
        Creates a drowing area of 550x350, with a interval between each label on the x-axis calculated by the int xSpredning. Use number of trainig cycles as a roule of thumb.
    • Method Detail

      • stopPloting

        public void stopPloting()
        This will stop the object and end the thread.
      • getBuffer

        public SharedBuffer getBuffer()
        Return the sharedBuffer object for a mono-serie plotting, have to be called by the Producer object.
        Returns:
        a SharedBuffer not linked to a particular ChartingHandle
      • getBuffer

        public SharedBuffer getBuffer(ChartingHandle handle)
        Return the sharedBuffer object for a multi-serie plotting, have to be called by the Producer object.
        Returns:
        a SharedBuffer linked to the passed ChartingHandle
      • paint

        public void paint(java.awt.Graphics g)
        Is called by the System, to paint the drawing area. Do not use this!
        Overrides:
        paint in class java.awt.Canvas
      • update

        public void update(java.awt.Graphics g)
        Overrides:
        update in class java.awt.Canvas
      • start

        public void start()
        Starts the thread
      • run

        public void run()
        Gets the new data from the producer and store them to grafData[].
        Specified by:
        run in interface java.lang.Runnable
      • getMaxXvalue

        public int getMaxXvalue()
        Getter for property max_x_value.
        Returns:
        Value of property max_x_value.
      • setMaxXvalue

        public void setMaxXvalue(int max_x_value)
        Setter for property max_x_value.
        Parameters:
        max_x_value - New value of property max_x_value.
      • getMaxYvalue

        public double getMaxYvalue()
        Getter for property max_y_value.
        Returns:
        Value of property max_y_value.
      • setMaxYvalue

        public void setMaxYvalue(double max_y_value)
        Setter for property max_y_value.
        Parameters:
        max_y_value - New value of property max_y_value.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.