Class JxnRealArrayPlotFrame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Frame
-
- KmgFormelPlotFrame
-
- JxnRealArrayPlotFrame
-
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible
public class JxnRealArrayPlotFrame extends KmgFormelPlotFrame
Displays curve representations ofJxnRealArrayAlgebraobjects in a PlotFrame (display window). The PlotFrame is created by one of theplotmethods inJxnRealArrayAlgebra. Theaddmethods (in this class) show more curves in the same PlotFrame. The methods inKmgFormelPlotFrameallow to customize the display.
Example:pf =plot( t, cos 2 PI t, sin 2 PI t ).add( t, -cos 2 PI t, M ) arg = { 0 : 8 } / 8 pf.add(curve( arg, sin 2 PI arg, G ).setLineWidth(2.) ) ! add curve created from double[] pf.add(curve( t, -sin 2 PI t, C, -10 ).lw(3) ) ! add curve created from JxnRealArrayAlgebra- See Also:
- JXN Tutorial, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
-
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
-
-
Field Summary
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from class KmgFormelPlotFrame
defaultFont, defaultSize, iFrame, isRepeating, nFrames
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JxnRealArrayPlotFrameadd(double[] y)Adds a curve xi = i, yi = y[i], i = 0 ... y.length - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(double[] x, double[] y)Adds a curve xi = x[i], yi = y[i], i = 0 ... min( x.length, y.length ) - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(double[] x, double[] y, Color color)Adds a curve xi = x[i], yi = y[i], i = 0 ... min( x.length, y.length ) - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(double[] y, Color color)Adds a curve xi = i, yi = y[i], i = 0 ... y.length - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(JxnRealArrayAlgebra ry)Adds a curve xi = i, yi = ry.value[i], i = 0 ... length(ry) - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(JxnRealArrayAlgebra ry, Color color)Adds a curve xi = i, yi = ry.value[i], i = 0 ... length(ry) - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry)Adds a curve xi = rx.value[i], yi = ry.value[i], i = 0 ... min( length(rx), length(ry) ) - 1 to the PlotFrame.JxnRealArrayPlotFrameadd(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color)Adds a curve xi = rx.value[i], yi = ry.value[i], i = 0 ... min( length(rx), length(ry) ) - 1 to the PlotFrame.JxnRealArrayPlotFrameplot(double[] y)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y1, double[] y2)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y1, double[] y2, double[] y3)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color, float lineWidth)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color, int lineType)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color, int lineType, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color, int lineType, float lineWidth, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(double[] x, double[] y, Color color, Stroke stroke, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(double[] y, Color color, int lineType)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra ry)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra ry, Color color, int lineType)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, float lineWidth)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType, float lineWidth, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, Stroke stroke)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, Stroke stroke, double dummy_for_vyx_or_logScales)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry1, JxnRealArrayAlgebra ry2)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, JxnRealArrayAlgebra rz, IKmg3DProjection p3d)Called internally...JxnRealArrayPlotFrameplot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry1, JxnRealArrayAlgebra ry2, JxnRealArrayAlgebra ry3)Called internally...-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
-
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setBackground, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
-
Methods inherited from class KmgFormelPlotFrame
add, add, getPlotFrameNumber, getRepeating, getSizeDefault, getXYCanvas, getXYPanel, moveCanvasTo, moveCanvasTo, nop, nop, repaintAll, repaintCanvas, rescale, setAuto, setAuto, setAutoScale, setCanvasSize, setCursorTextEnabled, setFontAll, setFontDefault, setFontSize, setHeadline, setLineWidthDefault, setPlotFrameTitle, setSizeAll, setSizeDefault, setXBounds, setXYBounds, setXYLabels, setYBounds, toRawString, toString, writePNG
-
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
-
-
-
-
Method Detail
-
add
public JxnRealArrayPlotFrame add(JxnRealArrayAlgebra ry)
Adds a curve xi = i, yi = ry.value[i], i = 0 ... length(ry) - 1 to the PlotFrame. The color of the curve is selected internally.
-
add
public JxnRealArrayPlotFrame add(JxnRealArrayAlgebra ry, Color color)
Adds a curve xi = i, yi = ry.value[i], i = 0 ... length(ry) - 1 to the PlotFrame.
Example:plot( ry1 ).add( ry2, Color.PINK )
-
add
public JxnRealArrayPlotFrame add(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry)
Adds a curve xi = rx.value[i], yi = ry.value[i], i = 0 ... min( length(rx), length(ry) ) - 1 to the PlotFrame. The color of the curve is selected internally.
-
add
public JxnRealArrayPlotFrame add(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color)
-
add
public JxnRealArrayPlotFrame add(double[] y)
Adds a curve xi = i, yi = y[i], i = 0 ... y.length - 1 to the PlotFrame. The color of the curve is selected internally.
-
add
public JxnRealArrayPlotFrame add(double[] y, Color color)
Adds a curve xi = i, yi = y[i], i = 0 ... y.length - 1 to the PlotFrame.
Example:plot( y1 ).add( y2, Color.PINK )
-
add
public JxnRealArrayPlotFrame add(double[] x, double[] y)
Adds a curve xi = x[i], yi = y[i], i = 0 ... min( x.length, y.length ) - 1 to the PlotFrame. The color of the curve is selected internally.
-
add
public JxnRealArrayPlotFrame add(double[] x, double[] y, Color color)
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra ry)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra).
The plot methods in this class are called internally to update (repaint) the modified PlotFrame after the change of a slider variable. The plot methods duplicate the plot methods inJxnRealArrayAlgebra(andJxnUtilities) which are called by the user to create the PlotFrame.
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra ry, Color color, int lineType)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, Color, int).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry1, JxnRealArrayAlgebra ry2)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, JxnRealArrayAlgebra).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry1, JxnRealArrayAlgebra ry2, JxnRealArrayAlgebra ry3)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, JxnRealArrayAlgebra).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, double).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, int).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, float lineWidth)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, float).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, Stroke stroke)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, Stroke).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, int, double).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, int lineType, float lineWidth, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, int, float, double).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, Color color, Stroke stroke, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, Color, Stroke, double).
-
plot
public JxnRealArrayPlotFrame plot(JxnRealArrayAlgebra rx, JxnRealArrayAlgebra ry, JxnRealArrayAlgebra rz, IKmg3DProjection p3d)
Called internally... DuplicatesJxnRealArrayAlgebra.plot(JxnRealArrayAlgebra, JxnRealArrayAlgebra, JxnRealArrayAlgebra, IKmg3DProjection).
-
plot
public JxnRealArrayPlotFrame plot(double[] y)
Called internally... DuplicatesJxnUtilities.plot(double[]).
-
plot
public JxnRealArrayPlotFrame plot(double[] y, Color color, int lineType)
Called internally... DuplicatesJxnUtilities.plot(double[], Color, int).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y)
Called internally... DuplicatesJxnUtilities.plot(double[], double[]).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y1, double[] y2)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], double[]).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y1, double[] y2, double[] y3)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], double[], double[]).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], double).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color, int lineType)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color, int).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color, float lineWidth)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color, float).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color, int lineType, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color, int, double).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color, int lineType, float lineWidth, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color, int, float, double).
-
plot
public JxnRealArrayPlotFrame plot(double[] x, double[] y, Color color, Stroke stroke, double dummy_for_vyx_or_logScales)
Called internally... DuplicatesJxnUtilities.plot(double[], double[], Color, Stroke, double).
-
-