java.awt.event.ComponentListener
, java.awt.image.ImageObserver
, java.awt.MenuContainer
, java.io.Serializable
, java.util.EventListener
, javax.accessibility.Accessible
, PlotContainer
, PlotDecorator.PlotRenderer
PlotSlider
public class Plot2DJ extends javax.swing.JPanel implements java.awt.event.ComponentListener, PlotContainer, PlotDecorator.PlotRenderer
java.awt.Component.BaselineResizeBehavior
javax.swing.JComponent.AccessibleJComponent
PlotContainer.PlotElement
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor | Description |
---|---|
Plot2DJ() |
Modifier and Type | Method | Description |
---|---|---|
void |
clearPlot(int ip) |
|
void |
componentHidden(java.awt.event.ComponentEvent e) |
|
void |
componentMoved(java.awt.event.ComponentEvent e) |
|
void |
componentResized(java.awt.event.ComponentEvent e) |
|
void |
componentShown(java.awt.event.ComponentEvent e) |
|
void |
copyPlot(int ip_src,
int ip_dst) |
|
int |
getXPix(double val) |
|
double |
getXVal(int pix) |
|
int |
getYPix(double val) |
|
double |
getYVal(int pix) |
|
void |
paintComponent(java.awt.Graphics g) |
|
void |
removePlot(PlotContainer.PlotElement pv,
int x0,
int y0,
int x1,
int y1) |
|
void |
renderPlots(java.awt.Graphics2D g,
PlotDecorator r) |
|
void |
restorePlot(PlotContainer.PlotElement pv,
int x0,
int y0,
int x1,
int y1) |
|
void |
restoreScale() |
|
void |
rotatePlot(double c,
double s,
int ip) |
|
void |
setCenterX(boolean center) |
|
void |
setCenterXY(boolean center) |
|
void |
setCenterY(boolean center) |
|
void |
setGrid(double[] x,
double[] y,
boolean[] c,
int ig) |
|
void |
setGridX(double x0,
double dx,
int n1,
int n2,
double y0,
double y1) |
|
void |
setGridY(double y0,
double dy,
int n1,
int n2,
double x0,
double x1) |
|
void |
setPlot(double[] x,
double[] y,
boolean[] c,
int ip) |
|
void |
setPlot(double[] x,
double[] y,
boolean[] c,
int nxy,
int ip) |
|
void |
setPlot(double[] x,
double[] y,
int ip) |
|
void |
setPlot(double[] x,
double[] y,
int nxy,
int ip) |
|
void |
setPlot(float[] x,
float[] y,
int ip) |
|
void |
setRangeX(double x0,
double x1) |
|
void |
setRangeY(double y0,
double y1) |
|
void |
setRenderScale(int x0,
int y0,
int dx,
int dy) |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
public void paintComponent(java.awt.Graphics g)
public void setRangeX(double x0, double x1)
public void setRangeY(double y0, double y1)
public void setCenterX(boolean center)
public void setCenterY(boolean center)
public void setCenterXY(boolean center)
public void setGrid(double[] x, double[] y, boolean[] c, int ig)
public void setGridX(double x0, double dx, int n1, int n2, double y0, double y1)
public void setGridY(double y0, double dy, int n1, int n2, double x0, double x1)
public int getXPix(double val)
getXPix
in interface PlotDecorator.PlotRenderer
public double getXVal(int pix)
public int getYPix(double val)
getYPix
in interface PlotDecorator.PlotRenderer
public double getYVal(int pix)
public void setPlot(double[] x, double[] y, boolean[] c, int nxy, int ip)
public void setPlot(double[] x, double[] y, int nxy, int ip)
public void setPlot(double[] x, double[] y, boolean[] c, int ip)
public void setPlot(double[] x, double[] y, int ip)
public void setPlot(float[] x, float[] y, int ip)
public void copyPlot(int ip_src, int ip_dst)
public void clearPlot(int ip)
public void rotatePlot(double c, double s, int ip)
public void setRenderScale(int x0, int y0, int dx, int dy)
setRenderScale
in interface PlotDecorator.PlotRenderer
public void renderPlots(java.awt.Graphics2D g, PlotDecorator r)
renderPlots
in interface PlotDecorator.PlotRenderer
public void restoreScale()
restoreScale
in interface PlotDecorator.PlotRenderer
public void removePlot(PlotContainer.PlotElement pv, int x0, int y0, int x1, int y1)
removePlot
in interface PlotContainer
public void restorePlot(PlotContainer.PlotElement pv, int x0, int y0, int x1, int y1)
restorePlot
in interface PlotContainer
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent e)
componentResized
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener