public abstract class PlotCanvas extends JPanel implements MouseListener, MouseMotionListener, ComponentListener, BaseDependant, MouseWheelListener
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected static RenderingHints |
AALIAS |
int |
ActionMode |
boolean |
allowEdit |
boolean |
allowNote |
boolean |
allowNoteCoord |
Base |
base |
protected boolean |
dragging |
protected AbstractDrawer |
draw |
static Color |
EDIT_COLOR |
protected BasePlot |
grid |
LegendPanel |
linkedLegendPanel |
protected int[] |
mouseClick |
protected int[] |
mouseCurent |
static Color |
NOTE_COLOR |
LinkedList<Plotable> |
objects |
LinkedList<Plot> |
plots |
static int |
TRANSLATION |
static int |
ZOOM |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PlotCanvas() |
PlotCanvas(Base b,
BasePlot bp) |
PlotCanvas(double[] min,
double[] max) |
PlotCanvas(double[] min,
double[] max,
String[] axesScales,
String[] axesLabels) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBaseLabel(String text,
Color c,
double... where) |
void |
addGaussQuantilestoPlot(int numPlot,
int numAxe,
double s) |
void |
addGaussQuantilestoPlot(int numPlot,
int numAxe,
double[] s) |
void |
addLabel(String text,
Color c,
double... where) |
int |
addPlot(Plot newPlot) |
void |
addPlotable(Plotable p) |
void |
addQuantilestoPlot(int numPlot,
int numAxe,
double[] q) |
void |
addQuantilestoPlot(int numPlot,
int numAxe,
double[][] q) |
void |
addQuantiletoPlot(int numPlot,
int numAxe,
double rate,
boolean symetric,
double q) |
void |
addQuantiletoPlot(int numPlot,
int numAxe,
double rate,
boolean symetric,
double[] q) |
void |
addVectortoPlot(int numPlot,
double[][] v) |
void |
attachLegend(LegendPanel lp) |
void |
changePlotColor(int I,
Color c) |
void |
changePlotData(int I,
double[]... XY) |
void |
changePlotName(int I,
String name) |
void |
clearNotes() |
void |
componentHidden(ComponentEvent e) |
void |
componentMoved(ComponentEvent e) |
void |
componentResized(ComponentEvent e) |
void |
componentShown(ComponentEvent e) |
void |
displayDataFrame() |
void |
displayDataFrame(int i) |
void |
displayScalesFrame() |
boolean |
getAdjustBounds() |
String[] |
getAxisScales() |
boolean |
getEditable() |
BasePlot |
getGrid() |
boolean |
getNotable() |
Plot |
getPlot(int i) |
Plotable |
getPlotable(int i) |
LinkedList<Plotable> |
getPlotables() |
int |
getPlotIndex(Plot p) |
LinkedList<Plot> |
getPlots() |
void |
includeInBounds(double... into) |
void |
includeInBounds(Plot plot) |
abstract void |
initBasenGrid() |
void |
initBasenGrid(Base b,
BasePlot bp) |
abstract void |
initBasenGrid(double[] min,
double[] max) |
void |
initBasenGrid(double[] min,
double[] max,
String[] axesScales,
String[] axesLabels) |
abstract void |
initDrawer() |
boolean |
isOptimizedDrawingEnabled() |
double[][] |
mapData(Object[][] data) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
mouseWheelMoved(MouseWheelEvent e) |
void |
paint(Graphics gcomp) |
void |
removeAllPlotables() |
void |
removeAllPlots() |
void |
removePlot(int I) |
void |
removePlot(Plot p) |
void |
removePlotable(int i) |
void |
removePlotable(Plotable p) |
void |
resetBase() |
void |
resetMapData() |
Object[] |
reverseMapedData(double[] mapeddata) |
Object[][] |
reverseMapedData(double[][] mapeddata) |
void |
setActionMode(int am) |
void |
setAdjustBounds(boolean adjust) |
void |
setAutoBounds() |
void |
setAutoBounds(int axe) |
void |
setAxiScale(int axe,
String scale) |
void |
setAxisLabel(int axe,
String label) |
void |
setAxisLabels(String... labels) |
void |
setAxisScales(String... scales) |
void |
setDataFrame(DataFrame dataFrame) |
void |
setEditable(boolean b) |
void |
setFixedBounds(double[] min,
double[] max) |
void |
setFixedBounds(int axe,
double min,
double max) |
void |
setNotable(boolean b) |
void |
setNoteCoords(boolean b) |
void |
setPlot(int I,
Plot p) |
void |
setScalesFrame(JFrame scalesFrame) |
void |
toGraphicFile(File file) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, 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, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, 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, 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, transferFocusBackward, transferFocusUpCyclepublic Base base
protected AbstractDrawer draw
protected BasePlot grid
public LegendPanel linkedLegendPanel
public LinkedList<Plot> plots
public LinkedList<Plotable> objects
protected static final RenderingHints AALIAS
public static Color NOTE_COLOR
public static Color EDIT_COLOR
public boolean allowEdit
public boolean allowNote
public boolean allowNoteCoord
public static final int ZOOM
public static final int TRANSLATION
public int ActionMode
protected boolean dragging
protected int[] mouseCurent
protected int[] mouseClick
public PlotCanvas()
public PlotCanvas(double[] min,
double[] max)
public boolean isOptimizedDrawingEnabled()
isOptimizedDrawingEnabled in class JComponentpublic void attachLegend(LegendPanel lp)
public abstract void initDrawer()
public void initBasenGrid(double[] min,
double[] max,
String[] axesScales,
String[] axesLabels)
public abstract void initBasenGrid(double[] min,
double[] max)
public abstract void initBasenGrid()
public void setActionMode(int am)
public void setNoteCoords(boolean b)
public void setEditable(boolean b)
public boolean getEditable()
public void setNotable(boolean b)
public boolean getNotable()
public LinkedList<Plot> getPlots()
public Plot getPlot(int i)
public int getPlotIndex(Plot p)
public LinkedList<Plotable> getPlotables()
public Plotable getPlotable(int i)
public BasePlot getGrid()
public String[] getAxisScales()
public void setAxisLabels(String... labels)
public void setAxisLabel(int axe,
String label)
public void setAxisScales(String... scales)
public void setAxiScale(int axe,
String scale)
public void setFixedBounds(double[] min,
double[] max)
public void setFixedBounds(int axe,
double min,
double max)
public void includeInBounds(double... into)
public void includeInBounds(Plot plot)
public void setAutoBounds()
public void setAutoBounds(int axe)
public void resetBase()
resetBase in interface BaseDependantpublic void addPlotable(Plotable p)
public void removePlotable(Plotable p)
public void removePlotable(int i)
public void removeAllPlotables()
public void setAdjustBounds(boolean adjust)
public boolean getAdjustBounds()
public int addPlot(Plot newPlot)
public void setPlot(int I,
Plot p)
public void changePlotData(int I,
double[]... XY)
public void changePlotName(int I,
String name)
public void changePlotColor(int I,
Color c)
public void removePlot(int I)
public void removePlot(Plot p)
public void removeAllPlots()
public void addVectortoPlot(int numPlot,
double[][] v)
public void addQuantiletoPlot(int numPlot,
int numAxe,
double rate,
boolean symetric,
double[] q)
public void addQuantiletoPlot(int numPlot,
int numAxe,
double rate,
boolean symetric,
double q)
public void addQuantilestoPlot(int numPlot,
int numAxe,
double[][] q)
public void addQuantilestoPlot(int numPlot,
int numAxe,
double[] q)
public void addGaussQuantilestoPlot(int numPlot,
int numAxe,
double[] s)
public void addGaussQuantilestoPlot(int numPlot,
int numAxe,
double s)
public void toGraphicFile(File file) throws IOException
IOExceptionpublic void setScalesFrame(JFrame scalesFrame)
public void displayScalesFrame()
public void setDataFrame(DataFrame dataFrame)
public void displayDataFrame(int i)
public void displayDataFrame()
public void resetMapData()
public double[][] mapData(Object[][] data)
public Object[][] reverseMapedData(double[][] mapeddata)
public Object[] reverseMapedData(double[] mapeddata)
public void paint(Graphics gcomp)
paint in class JComponentpublic void clearNotes()
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerCopyright © 2015. All rights reserved.