diagapplet.plotter
Class plotter_NB_UI

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 diagapplet.plotter.plotter_NB_UI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class plotter_NB_UI
extends javax.swing.JPanel

Contain JPanel with PlotGraphJPanel in the center surrounded by several controls.

See Also:
Serialized Form

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
protected  boolean apply_absolute_value
           
protected  boolean Use_Interpolation
           
 
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()
           
 java.lang.String ComputeStatsString()
           
 void FitToGraph()
           
 void FitY()
           
 void ForceRecheckComboFunc()
           
 boolean get_array_mode()
           
 int get_num_plots()
           
 boolean get_paused()
           
 int getFuncArg()
           
 int getGraphFunction()
           
 java.awt.image.BufferedImage getImage()
           
 java.awt.image.BufferedImage getImage(java.awt.Dimension d)
           
 java.lang.String getPlot_order()
           
 boolean isApply_absolute_value()
          Get the value of apply_absolute_value
 boolean isLocked()
           
 boolean isNosplit()
          Get the value of nosplit
 boolean isUse_Interpolation()
          Get the value of Use_Interpolation
 void loadFile(java.lang.String fileName)
           
 void LoadFloatArray(java.lang.String name, float[] fa)
          Loads an arrays into a single plot and displays it.
 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 ResetMinXToZero()
           
 void SaveFile(java.lang.String fileName)
           
 void SaveStatsFile(java.io.File f)
           
 void ScrollRight()
           
 void set_auto_fit_to_graph(boolean _auto_fit_to_graph)
           
 void set_point_size_limit(int _new_point_size_limit)
           
 void setApply_absolute_value(boolean apply_absolute_value)
          Set the value of apply_absolute_value
 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 SetKeyListener(java.awt.event.KeyListener kl)
           
 void setNosplit(boolean nosplit)
          Set the value of nosplit
 void SetOuterArea(double min_x, double max_x, double min_y, double max_y)
           
 void setPlot_order(java.lang.String plot_order)
           
 void SetReverseX(boolean _new_reverse_x)
           
 void setShowKey(boolean _b)
           
 void setSplit(boolean _s_mode)
           
 void setUse_Interpolation(boolean Use_Interpolation)
          Set the value of Use_Interpolation
 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, 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, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Use_Interpolation

protected boolean Use_Interpolation

apply_absolute_value

protected boolean apply_absolute_value
Constructor Detail

plotter_NB_UI

public plotter_NB_UI()
Creates new form plotter_NB_UI

Method Detail

get_array_mode

public boolean get_array_mode()

FitY

public void FitY()

SetEqualizeAxis

public void SetEqualizeAxis(boolean _e_mode)

plotToImage

public java.awt.image.BufferedImage plotToImage()

plotToImage

public java.awt.image.BufferedImage plotToImage(int width,
                                                int height)

set_auto_fit_to_graph

public void set_auto_fit_to_graph(boolean _auto_fit_to_graph)

getPlot_order

public java.lang.String getPlot_order()
Returns:
the plot_order

setPlot_order

public void setPlot_order(java.lang.String plot_order)
Parameters:
plot_order - the plot_order to set

isUse_Interpolation

public boolean isUse_Interpolation()
Get the value of Use_Interpolation

Returns:
the value of Use_Interpolation

setUse_Interpolation

public void setUse_Interpolation(boolean Use_Interpolation)
Set the value of Use_Interpolation

Parameters:
Use_Interpolation - new value of Use_Interpolation

SaveFile

public void SaveFile(java.lang.String fileName)

AddDeleteActionListener

public void AddDeleteActionListener(java.awt.event.ActionListener al)

checkComboBoxFunc

public void checkComboBoxFunc(int new_function_selected)

setSplit

public void setSplit(boolean _s_mode)

Clear

public void Clear()

addClearActionListener

public void addClearActionListener(java.awt.event.ActionListener _al)

setShowKey

public void setShowKey(boolean _b)

FitToGraph

public void FitToGraph()

ZoomOut

public void ZoomOut()

ZoomIn

public void ZoomIn()

getImage

public java.awt.image.BufferedImage getImage()

getImage

public java.awt.image.BufferedImage getImage(java.awt.Dimension d)

SetKeyListener

public void SetKeyListener(java.awt.event.KeyListener kl)

SetGraphLimits

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)

SetReverseX

public void SetReverseX(boolean _new_reverse_x)

ComputeStatsString

public java.lang.String ComputeStatsString()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

SaveStatsFile

public void SaveStatsFile(java.io.File f)

ReloadFile

public void ReloadFile()

get_num_plots

public int get_num_plots()

LoadXYFloatArrays

public void LoadXYFloatArrays(java.lang.String name,
                              float[] xA,
                              float[] yA)
Loads two arrays into a single plot and displays it. The two arrays should be the same length or points will only be plotted up to the shorter of the two.

Parameters:
name - -- name of the plot
xA - -- x axis array
yA - -- y axis array

LoadFloatArray

public void LoadFloatArray(java.lang.String name,
                           float[] fa)
Loads an arrays into a single plot and displays it.

Parameters:
name - -- name of the plot
fa - -- float array to plot.

isNosplit

public boolean isNosplit()
Get the value of nosplit

Returns:
the value of nosplit

setNosplit

public void setNosplit(boolean nosplit)
Set the value of nosplit

Parameters:
nosplit - new value of nosplit

loadFile

public void loadFile(java.lang.String fileName)

ForceRecheckComboFunc

public void ForceRecheckComboFunc()

ScrollRight

public void ScrollRight()

isLocked

public boolean isLocked()

AddPlot

public void AddPlot(PlotData pd,
                    java.lang.String name)

AddArrayPlot

public void AddArrayPlot(PlotData pd,
                         java.lang.String name)

AddPlot

public void AddPlot(PlotData pd)

refresh

public void refresh()

AddPointToPlot

public void AddPointToPlot(PlotData pd,
                           double pre_f_x,
                           double pre_f_y,
                           boolean connected)

AddPointToArrayPlot

public void AddPointToArrayPlot(PlotData pd,
                                int index,
                                double pre_f_y)

AddPointToPlot

public void AddPointToPlot(PlotData pd,
                           double x,
                           double y,
                           boolean connected,
                           double pre_f_x,
                           double pre_f_y)

SetOuterArea

public void SetOuterArea(double min_x,
                         double max_x,
                         double min_y,
                         double max_y)

SetInnerArea

public void SetInnerArea(double min_x,
                         double max_x,
                         double min_y,
                         double max_y)

setGraphFunctionNormal

public void setGraphFunctionNormal()

setGraphFunctionVS

public void setGraphFunctionVS()

setGraphFunctionXY

public void setGraphFunctionXY()

setGraphFunctionXZ

public void setGraphFunctionXZ()

setGraphFunctionYZ

public void setGraphFunctionYZ()

setGraphFunctionSingle

public void setGraphFunctionSingle()

setGraphFunctionSMOOTH

public void setGraphFunctionSMOOTH()

setGraphFunctionDEVIATION

public void setGraphFunctionDEVIATION()

setGraphFunctionDERIVATIVE

public void setGraphFunctionDERIVATIVE()

setGraphFunctionINTEGRAL

public void setGraphFunctionINTEGRAL()

setGraphFunctionDIFF

public void setGraphFunctionDIFF()

setGraphFunctionPPDIFF

public void setGraphFunctionPPDIFF()

setGraphFunctionPPDIFFMODPI

public void setGraphFunctionPPDIFFMODPI()

setGraphFunctionNEGATIVEX

public void setGraphFunctionNEGATIVEX()

setGraphFunction

public void setGraphFunction(java.lang.String function_name)

setGraphFunction

public void setGraphFunction(int i)

getGraphFunction

public int getGraphFunction()

getFuncArg

public int getFuncArg()

setFuncArg

public void setFuncArg(java.lang.String s)

setFuncArg

public void setFuncArg(int _func_arg)

isApply_absolute_value

public boolean isApply_absolute_value()
Get the value of apply_absolute_value

Returns:
the value of apply_absolute_value

setApply_absolute_value

public void setApply_absolute_value(boolean apply_absolute_value)
Set the value of apply_absolute_value

Parameters:
apply_absolute_value - new value of apply_absolute_value

CheckRecalcPlots

public void CheckRecalcPlots()

ResetMinXToZero

public void ResetMinXToZero()

get_paused

public boolean get_paused()

set_point_size_limit

public void set_point_size_limit(int _new_point_size_limit)

setFieldSelectPattern

public void setFieldSelectPattern(java.lang.String _pattern)