java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
diagapplet.plotter.plotter_NB_UI
public class plotter_NB_UI
Contain JPanel with PlotGraphJPanel in the center surrounded by several controls.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
plotter_NB_UI()
Creates new form plotter_NB_UI |
Method Summary | |
---|---|
void |
AddArrayPlot(PlotData pd,
java.lang.String name)
|
void |
addClearActionListener(java.awt.event.ActionListener _al)
|
void |
AddDeleteActionListener(java.awt.event.ActionListener al)
|
void |
AddPlot(PlotData pd)
|
void |
AddPlot(PlotData pd,
java.lang.String name)
|
void |
AddPointToArrayPlot(PlotData pd,
int index,
double pre_f_y)
|
void |
AddPointToPlot(PlotData pd,
double pre_f_x,
double pre_f_y,
boolean connected)
|
void |
AddPointToPlot(PlotData pd,
double x,
double y,
boolean connected,
double pre_f_x,
double pre_f_y)
|
void |
checkComboBoxFunc(int new_function_selected)
|
void |
CheckRecalcPlots()
|
void |
Clear()
|
void |
FitToGraph()
|
void |
FitY()
|
void |
ForceRecheckComboFunc()
|
boolean |
get_array_mode()
|
int |
get_num_plots()
|
boolean |
get_paused()
|
int |
getFuncArg()
|
int |
getGraphFunction()
|
boolean |
isLocked()
|
void |
loadFile(java.lang.String fileName)
|
void |
LoadXYFloatArrays(java.lang.String name,
float[] xA,
float[] yA)
Loads two arrays into a single plot and displays it. |
java.awt.image.BufferedImage |
plotToImage()
|
java.awt.image.BufferedImage |
plotToImage(int width,
int height)
|
void |
refresh()
|
void |
ReloadFile()
|
void |
SaveFile(java.lang.String fileName)
|
void |
ScrollRight()
|
void |
set_auto_fit_to_graph(boolean _auto_fit_to_graph)
|
void |
SetEqualizeAxis(boolean _e_mode)
|
void |
setFieldSelectPattern(java.lang.String _pattern)
|
void |
setFuncArg(int _func_arg)
|
void |
setFuncArg(java.lang.String s)
|
void |
setGraphFunction(int i)
|
void |
setGraphFunction(java.lang.String function_name)
|
void |
setGraphFunctionDERIVATIVE()
|
void |
setGraphFunctionDEVIATION()
|
void |
setGraphFunctionDIFF()
|
void |
setGraphFunctionINTEGRAL()
|
void |
setGraphFunctionNEGATIVEX()
|
void |
setGraphFunctionNormal()
|
void |
setGraphFunctionPPDIFF()
|
void |
setGraphFunctionPPDIFFMODPI()
|
void |
setGraphFunctionSingle()
|
void |
setGraphFunctionSMOOTH()
|
void |
setGraphFunctionVS()
|
void |
setGraphFunctionXY()
|
void |
setGraphFunctionXZ()
|
void |
setGraphFunctionYZ()
|
void |
SetGraphLimits(double new_x_show_area_min,
double new_x_show_area_max,
double new_y_show_area_min,
double new_y_show_area_max)
|
void |
SetInnerArea(double min_x,
double max_x,
double min_y,
double max_y)
|
void |
SetOuterArea(double min_x,
double max_x,
double min_y,
double max_y)
|
void |
SetReverseX(boolean _new_reverse_x)
|
void |
setShowKey(boolean _b)
|
void |
setSplit(boolean _s_mode)
|
void |
ZoomIn()
|
void |
ZoomOut()
|
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, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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 |
Constructor Detail |
---|
public plotter_NB_UI()
Method Detail |
---|
public boolean get_array_mode()
public void FitY()
public void SetEqualizeAxis(boolean _e_mode)
public java.awt.image.BufferedImage plotToImage()
public java.awt.image.BufferedImage plotToImage(int width, int height)
public void set_auto_fit_to_graph(boolean _auto_fit_to_graph)
public void SaveFile(java.lang.String fileName)
public void AddDeleteActionListener(java.awt.event.ActionListener al)
public void checkComboBoxFunc(int new_function_selected)
public void setSplit(boolean _s_mode)
public void Clear()
public void addClearActionListener(java.awt.event.ActionListener _al)
public void setShowKey(boolean _b)
public void FitToGraph()
public void ZoomOut()
public void ZoomIn()
public void SetGraphLimits(double new_x_show_area_min, double new_x_show_area_max, double new_y_show_area_min, double new_y_show_area_max)
public void SetReverseX(boolean _new_reverse_x)
public void ReloadFile()
public int get_num_plots()
public void LoadXYFloatArrays(java.lang.String name, float[] xA, float[] yA)
name
- -- name of the plotxA
- -- x axis arrayyA
- -- y axis arraypublic void loadFile(java.lang.String fileName)
public void ForceRecheckComboFunc()
public void ScrollRight()
public boolean isLocked()
public void AddPlot(PlotData pd, java.lang.String name)
public void AddArrayPlot(PlotData pd, java.lang.String name)
public void AddPlot(PlotData pd)
public void refresh()
public void AddPointToPlot(PlotData pd, double pre_f_x, double pre_f_y, boolean connected)
public void AddPointToArrayPlot(PlotData pd, int index, double pre_f_y)
public void AddPointToPlot(PlotData pd, double x, double y, boolean connected, double pre_f_x, double pre_f_y)
public void SetOuterArea(double min_x, double max_x, double min_y, double max_y)
public void SetInnerArea(double min_x, double max_x, double min_y, double max_y)
public void setGraphFunctionNormal()
public void setGraphFunctionVS()
public void setGraphFunctionXY()
public void setGraphFunctionXZ()
public void setGraphFunctionYZ()
public void setGraphFunctionSingle()
public void setGraphFunctionSMOOTH()
public void setGraphFunctionDEVIATION()
public void setGraphFunctionDERIVATIVE()
public void setGraphFunctionINTEGRAL()
public void setGraphFunctionDIFF()
public void setGraphFunctionPPDIFF()
public void setGraphFunctionPPDIFFMODPI()
public void setGraphFunctionNEGATIVEX()
public void setGraphFunction(java.lang.String function_name)
public void setGraphFunction(int i)
public int getGraphFunction()
public int getFuncArg()
public void setFuncArg(java.lang.String s)
public void setFuncArg(int _func_arg)
public void CheckRecalcPlots()
public boolean get_paused()
public void setFieldSelectPattern(java.lang.String _pattern)