org.math.plot.canvas
Class Plot3DCanvas

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.math.plot.canvas.PlotCanvas
                      extended by org.math.plot.canvas.Plot3DCanvas
All Implemented Interfaces:
ComponentListener, MouseListener, MouseMotionListener, MouseWheelListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, BaseDependant

public class Plot3DCanvas
extends PlotCanvas

BSD License

Author:
Yann RICHET
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static int ROTATION
           
private static long serialVersionUID
           
 
Fields inherited from class org.math.plot.canvas.PlotCanvas
AALIAS, ActionMode, allowEdit, allowNote, allowNoteCoord, base, coordNoted, dragging, draw, EDIT_COLOR, grid, linkedLegendPanel, mouseClick, mouseCurent, NOTE_COLOR, objects, panelSize, plots, TRANSLATION, ZOOM
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
Plot3DCanvas()
           
Plot3DCanvas(Base b, BasePlot bp)
           
Plot3DCanvas(double[] min, double[] max, String[] axesScales, String[] axesLabels)
           
 
Method Summary
 int addBarPlot(String name, Color c, double[]... XY)
           
 int addBoxPlot(String name, Color c, double[][] XYdX)
           
 int addBoxPlot(String name, Color c, double[][] XY, double[][] dX)
           
 int addGridPlot(String name, Color c, double[][] XYZMatrix)
           
 int addGridPlot(String name, Color c, double[] X, double[] Y, double[][] Z)
           
 int addHistogramPlot(String name, Color c, double[][] XYdX)
           
 int addHistogramPlot(String name, Color c, double[][] XY, double[][] dX)
           
 int addHistogramPlot(String name, Color c, double[][] XY, double[] boundsX, double[] boundsY)
           
 int addHistogramPlot(String name, Color c, double[][] XY, double minX, double maxX, int nX, double minY, double maxY, int nY)
           
 int addHistogramPlot(String name, Color c, double[][] XY, int nX, int nY)
           
 int addLinePlot(String name, Color c, double[]... XY)
           
 int addScatterPlot(String name, Color c, double[]... XY)
           
private static double[][] convertXY(double[][] XY)
           
 void initBasenGrid()
           
 void initBasenGrid(double[] min, double[] max)
           
 void initDrawer()
           
 void mouseDragged(MouseEvent e)
           
 
Methods inherited from class org.math.plot.canvas.PlotCanvas
addBaseLabel, addLabel, addPlot, addPlotable, addQuantiletoPlot, addQuantiletoPlot, addQuantiletoPlot, attachLegend, changePlotColor, changePlotData, changePlotName, componentHidden, componentMoved, componentResized, componentShown, displayDatasFrame, displayDatasFrame, displaySetScalesFrame, getAxesScales, getEditable, getGrid, getNotable, getPlot, getPlotable, getPlotables, getPlotIndex, getPlots, includeInBounds, includeInBounds, initBasenGrid, initBasenGrid, mouseClicked, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paint, removeAllPlots, removePlot, removePlot, removePlotable, removePlotable, resetBase, setActionMode, setAutoBounds, setAutoBounds, setAxeLabel, setAxeScale, setAxesLabels, setAxesScales, setEditable, setFixedBounds, setFixedBounds, setNotable, setNoteCoords, setPlot, toGraphicFile
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ROTATION

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

Plot3DCanvas

public Plot3DCanvas()

Plot3DCanvas

public Plot3DCanvas(Base b,
                    BasePlot bp)

Plot3DCanvas

public Plot3DCanvas(double[] min,
                    double[] max,
                    String[] axesScales,
                    String[] axesLabels)
Method Detail

initDrawer

public void initDrawer()
Specified by:
initDrawer in class PlotCanvas

initBasenGrid

public void initBasenGrid(double[] min,
                          double[] max)
Specified by:
initBasenGrid in class PlotCanvas

initBasenGrid

public void initBasenGrid()
Specified by:
initBasenGrid in class PlotCanvas

convertXY

private static double[][] convertXY(double[][] XY)

addScatterPlot

public int addScatterPlot(String name,
                          Color c,
                          double[]... XY)

addLinePlot

public int addLinePlot(String name,
                       Color c,
                       double[]... XY)

addBarPlot

public int addBarPlot(String name,
                      Color c,
                      double[]... XY)

addBoxPlot

public int addBoxPlot(String name,
                      Color c,
                      double[][] XY,
                      double[][] dX)

addBoxPlot

public int addBoxPlot(String name,
                      Color c,
                      double[][] XYdX)

addHistogramPlot

public int addHistogramPlot(String name,
                            Color c,
                            double[][] XY,
                            double[][] dX)

addHistogramPlot

public int addHistogramPlot(String name,
                            Color c,
                            double[][] XYdX)

addHistogramPlot

public int addHistogramPlot(String name,
                            Color c,
                            double[][] XY,
                            int nX,
                            int nY)

addHistogramPlot

public int addHistogramPlot(String name,
                            Color c,
                            double[][] XY,
                            double[] boundsX,
                            double[] boundsY)

addHistogramPlot

public int addHistogramPlot(String name,
                            Color c,
                            double[][] XY,
                            double minX,
                            double maxX,
                            int nX,
                            double minY,
                            double maxY,
                            int nY)

addGridPlot

public int addGridPlot(String name,
                       Color c,
                       double[] X,
                       double[] Y,
                       double[][] Z)

addGridPlot

public int addGridPlot(String name,
                       Color c,
                       double[][] XYZMatrix)

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class PlotCanvas