public class Plot
extends java.awt.Component
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
int |
bottomMargin
The bottom margin.
|
static int |
CIRCLE
The Constant CIRCLE.
|
int |
leftMargin
The left margin.
|
static int |
LINE
The Constant LINE.
|
double |
xSelected
The x selected.
|
double |
ySelected
The y selected.
|
double |
zoomFactor
The zoom factor.
|
Constructor and Description |
---|
Plot()
Instantiates a new plot.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double[] x,
double[] y,
java.awt.Color c,
int type,
int w)
Adds the.
|
void |
clear()
Clear.
|
java.awt.geom.Rectangle2D.Double |
getPlotBounds()
Gets the plot bounds.
|
static void |
main(java.lang.String[] args)
The main method.
|
void |
mark(double start,
double end,
java.awt.Color c)
Mark.
|
void |
markClear()
Mark clear.
|
void |
paint(java.awt.Graphics g)
Paint.
|
void |
run()
Run.
|
void |
setPlotBounds(double xMin,
double yMin,
double xMax,
double yMax)
Sets the plot bounds.
|
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, 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, update, validate
public static final int LINE
public static final int CIRCLE
public double zoomFactor
public int leftMargin
public int bottomMargin
public double xSelected
public double ySelected
public void run()
run
in interface java.lang.Runnable
public void add(double[] x, double[] y, java.awt.Color c, int type, int w)
x
- the xy
- the yc
- the ctype
- the typew
- the wpublic void clear()
public void mark(double start, double end, java.awt.Color c)
start
- the startend
- the endc
- the cpublic void markClear()
public void setPlotBounds(double xMin, double yMin, double xMax, double yMax)
xMin
- the x minyMin
- the y minxMax
- the x maxyMax
- the y maxpublic java.awt.geom.Rectangle2D.Double getPlotBounds()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Component
g
- the gpublic static void main(java.lang.String[] args)
args
- the arguments