org.joone.edit
Class DrawingRegion
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Canvas
-
- org.joone.edit.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
-
-
Field Summary
-
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 SharedBuffergetBuffer()Return the sharedBuffer object for a mono-serie plotting, have to be called by the Producer object.SharedBuffergetBuffer(ChartingHandle handle)Return the sharedBuffer object for a multi-serie plotting, have to be called by the Producer object.intgetMaxXvalue()Getter for property max_x_value.doublegetMaxYvalue()Getter for property max_y_value.voidpaint(java.awt.Graphics g)Is called by the System, to paint the drawing area.voidrun()Gets the new data from the producer and store them to grafData[].voidsetMaxXvalue(int max_x_value)Setter for property max_x_value.voidsetMaxYvalue(double max_y_value)Setter for property max_y_value.voidstart()Starts the threadvoidstopPloting()This will stop the object and end the thread.voidupdate(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
-
-
-
-
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:
paintin classjava.awt.Canvas
-
update
public void update(java.awt.Graphics g)
- Overrides:
updatein classjava.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:
runin interfacejava.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