us.ihmc.plotting
Class PlotGraph2d

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by flanagan.plot.Plot
              extended by us.ihmc.plotting.PlotGraph2d
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PlotGraph2d
extends flanagan.plot.Plot

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static int CLOSE_PROGRAM_WITH_WINDOW
           
static int CLOSE_WINDOW_ONLY
           
 
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
PlotGraph2d(double[][] data)
           
PlotGraph2d(double[] xData, double[] yData)
           
 
Method Summary
static PlotGraph2d createFrameVectorPlotGraph2d(java.util.ArrayList<java.lang.Double> x, java.util.ArrayList<FrameVector> frameVectors)
           
static PlotGraph2d createPlotGraph2d(java.util.ArrayList<java.lang.Double> x, java.util.ArrayList<java.lang.Double> y)
           
static PlotGraph2d createPlotGraph2dMultipleCurves(java.util.ArrayList<double[][]> listOfXYCurves)
           
static PlotGraph2d createVectorPlotGraph2d(java.util.ArrayList<java.lang.Double> x, java.util.ArrayList<javax.vecmath.Vector3d> vectors)
           
 void endProgram()
           
 int getCloseChoice()
           
static double[][] getDoubleArray(java.util.ArrayList<java.lang.Double> x, java.util.ArrayList<java.lang.Double> y)
           
 int getGraphHeight()
           
 int getGraphWidth()
           
static void main(java.lang.String[] args)
           
 void paint(java.awt.Graphics g)
           
 void plot()
           
 void rescaleX(double xScaleFactor)
           
 void rescaleY(double yScaleFactor)
           
 void setCloseChoice(int choice)
           
 void setGraphHeight(int graphHeight)
           
 void setGraphWidth(int graphWidth)
           
 
Methods inherited from class flanagan.plot.Plot
axesScaleOffset, data, doubleSelectionSort, getDashlength, getDataFillValue, getFontSize, getLine, getNiPoints, getNoXoffset, getNoYoffset, getPoint, getPointsize, getXaxisLen, getXlow, getXlowFac, getXmax, getXmin, getYaxisLen, getYhigh, getYlowFac, getYmax, getYmin, graph, limits, minMax, offset, printCheck, scale, setDashLength, setDashLength, setDataFillValue, setErrorBars, setFontSize, setGraphTitle, setGraphTitle2, setLine, setLine, setMinMaxOpt, setNiPoints, setNoOffset, setNoXoffset, setNoYoffset, setPoint, setPoint, setPointSize, setPointSize, setTrimOpt, setXaxisLegend, setXaxisLen, setXaxisUnitsName, setXlow, setXlowFac, setYaxisLegend, setYaxisLen, setYaxisUnitsName, setYhigh, setYlowFac, ticks
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
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, 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
 

Field Detail

CLOSE_PROGRAM_WITH_WINDOW

public static final int CLOSE_PROGRAM_WITH_WINDOW
See Also:
Constant Field Values

CLOSE_WINDOW_ONLY

public static final int CLOSE_WINDOW_ONLY
See Also:
Constant Field Values
Constructor Detail

PlotGraph2d

public PlotGraph2d(double[][] data)

PlotGraph2d

public PlotGraph2d(double[] xData,
                   double[] yData)
Method Detail

getDoubleArray

public static double[][] getDoubleArray(java.util.ArrayList<java.lang.Double> x,
                                        java.util.ArrayList<java.lang.Double> y)

createPlotGraph2d

public static PlotGraph2d createPlotGraph2d(java.util.ArrayList<java.lang.Double> x,
                                            java.util.ArrayList<java.lang.Double> y)

createPlotGraph2dMultipleCurves

public static PlotGraph2d createPlotGraph2dMultipleCurves(java.util.ArrayList<double[][]> listOfXYCurves)

rescaleY

public void rescaleY(double yScaleFactor)

rescaleX

public void rescaleX(double xScaleFactor)

getGraphWidth

public int getGraphWidth()

getGraphHeight

public int getGraphHeight()

setGraphHeight

public void setGraphHeight(int graphHeight)

setGraphWidth

public void setGraphWidth(int graphWidth)

getCloseChoice

public int getCloseChoice()

setCloseChoice

public void setCloseChoice(int choice)

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

plot

public void plot()

endProgram

public void endProgram()

main

public static void main(java.lang.String[] args)

createFrameVectorPlotGraph2d

public static PlotGraph2d createFrameVectorPlotGraph2d(java.util.ArrayList<java.lang.Double> x,
                                                       java.util.ArrayList<FrameVector> frameVectors)

createVectorPlotGraph2d

public static PlotGraph2d createVectorPlotGraph2d(java.util.ArrayList<java.lang.Double> x,
                                                  java.util.ArrayList<javax.vecmath.Vector3d> vectors)