|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--rvl.awt.Plot
|
+--rvl.awt.IntPlot
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Fields inherited from class rvl.awt.Plot |
defaultColor, defaultDotSize, dotColor, dotSize, h0, h1, hMax, hMin, lineColor, mh, mv, needsRescaling, sameScale, scaleColor, scaleFont, swap, title, v0, v1, vMax, vMin, x, xAxisLab, xCustomLab, xMax, xMin, xTick, xTickLab, y, yAxisLab, yCustomLab, yMax, yMin, yTick, yTickLab |
| 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 |
| Constructor Summary | |
IntPlot(double[][] x,
double[][] y)
Constructor for general case. |
|
IntPlot(double[] x,
double[] y)
Constructor for a simple plot of one variable against another. |
|
IntPlot(double[] x,
double[][] y)
Constructor for a multiple plot of several y[]s, all with same x[]. |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Add an action listener for this component |
boolean |
isMoveable()
|
protected int[] |
locate(int H,
int V,
int radius)
Locate a point near given screen coordinates |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
If mouse button is pressed, register which point (if any) is to be moved |
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setConstraints(boolean cx,
boolean cy)
Set constraints on directions points may be moved Warning: If both arguments are true,
we are saying neither coordinate can be changed; so this
has the side effect of calling setMoveable(false). |
void |
setMoveable(boolean moveable)
|
void |
update(java.awt.Graphics g)
Double-buffers so we don't get flickering when moving points |
| Methods inherited from class rvl.awt.Plot |
getMinimumSize, getPreferredSize, getXData, getYData, isBad, minimumSize, paint, preferredSize, rescale, setAxisLabels, setAxisLabels, setData, setData, setData, setData, setData, setData, setDefaultColor, setDefaultDotSize, setDotColor, setDotColor, setDotColor, setDotMode, setDotSize, setDotSize, setDotSize, setLineColor, setLineColor, setLineColor, setLineMode, setSameScale, setScaleColor, setTickMode, setTitle, setTitle, setTranspose, setXData, setXData, setXTicks, setYData, setYData, setYTicks |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IntPlot(double[][] x,
double[][] y)
Plot
public IntPlot(double[] x,
double[] y)
public IntPlot(double[] x,
double[][] y)
| Method Detail |
public void setMoveable(boolean moveable)
moveable - if true, the user may move points using the mousepublic boolean isMoveable()
public void setConstraints(boolean cx,
boolean cy)
true,
we are saying neither coordinate can be changed; so this
has the side effect of calling setMoveable(false).cx - if true, the x coordinate cannot be changedcy - if true, the y coordinate cannot be changedsetMoveable(boolean)public void addActionListener(java.awt.event.ActionListener l)
public void update(java.awt.Graphics g)
update in class java.awt.Component
protected int[] locate(int H,
int V,
int radius)
H - Horizontal screen coordinate of pointV - Vertical screen coordinate of pointradius - Specifies how near is near enough.radius of (x,y) is identified.
If there are no such points, a null is returned.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListener
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||