gov.sns.tools.plot
Class FunctionGraphsJPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--gov.sns.tools.plot.FunctionGraphsJPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class FunctionGraphsJPanel
extends javax.swing.JPanel
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

See Also:
Serialized Form

Nested Class Summary
 class FunctionGraphsJPanel.ClickedPoint
           
protected  class FunctionGraphsJPanel.graphLegend
           
 class FunctionGraphsJPanel.GridLimits
           
protected  class FunctionGraphsJPanel.gridLimitsPanel
           
 
Field Summary
protected  javax.swing.JDialog axisDialog
           
protected  java.awt.Color bkgBorderAreaColor
           
protected  java.awt.Color bkgGraphAreaColor
           
protected  java.awt.event.ActionListener chooseListener
           
protected  javax.swing.JRadioButton chooseModeButton
           
protected  boolean chooseModeButtonVisible
           
protected  double choosenX
           
protected  double choosenY
           
protected  FunctionGraphsJPanel.ClickedPoint clickedPoint
           
protected  ColorSurfaceData colorSurfaceData
           
protected  java.util.Vector curveDataV
           
protected  java.awt.Color defaultHorizontLineColor
           
protected  java.awt.Color defaultVerticalLineColor
           
protected  java.awt.event.ActionEvent draggedHorLinesEvent
           
protected  java.awt.event.ActionListener draggedHorLinesListener
           
protected  boolean draggedHorLinesMotionListenYes
           
protected  int draggedLinesIndex
           
protected  java.awt.event.ActionEvent draggedVerLinesEvent
           
protected  java.awt.event.ActionListener draggedVerLinesListener
           
protected  boolean draggedVerLinesMotionListenYes
           
protected  javax.swing.JRadioButton dragHorLinesModeButton
           
protected  boolean dragHorLinesModeYes
           
protected  javax.swing.JRadioButton dragVerLinesModeButton
           
protected  boolean dragVerLinesModeYes
           
protected  FunctionGraphsJPanel.GridLimits externalGridLimits
           
protected  int fSizeName
           
protected  int fSizeNumbXhor
           
protected  int fSizeNumbXver
           
protected  int fSizeNumbYhor
           
protected  int fSizeNumbYver
           
protected  int fSizeX
           
protected  int fSizeY
           
protected  FunctionGraphsJPanel.gridLimitsPanel glPanel
           
protected  boolean graphChoosingYes
           
protected  int graphChosenIndex
           
protected  boolean graphChosenYes
           
protected  java.util.Vector graphColorV
           
protected  java.util.Vector graphDataV
           
protected  int graphPointChosenIndex
           
protected  boolean gridLineOnX
           
protected  boolean gridLineOnY
           
protected  boolean gridXmarkerOn
           
protected  boolean gridYmarkerOn
           
protected  java.util.Vector hLinesColorV
           
protected  java.util.Vector hLinesV
           
static int HORIZONTAL
           
protected  boolean horLinesModeButtonVisible
           
protected  FunctionGraphsJPanel.GridLimits innerGridLimits
           
protected  FunctionGraphsJPanel.graphLegend legend
           
static int LEGEND_POSITION_ARBITRARY
           
static int LEGEND_POSITION_BOTTOM_LEFT
           
static int LEGEND_POSITION_BOTTOM_RIGHT
           
static int LEGEND_POSITION_TOP_LEFT
           
static int LEGEND_POSITION_TOP_RIGHT
           
protected  javax.swing.JRadioButton legendButton
           
protected  boolean legendButtonVisible
           
protected  java.lang.String legendKeyString
           
protected  java.awt.Color lineChoosenColor
           
protected  java.awt.Color lineDefaultColor
           
protected  java.lang.String nameOfGraph
           
protected  java.awt.Color nameOfGraphColor
           
protected  java.awt.Font nameOfGraphFont
           
protected  java.lang.String nameX
           
protected  java.awt.Color nameXColor
           
protected  java.awt.Font nameXFont
           
protected  java.lang.String nameY
           
protected  java.awt.Color nameYColor
           
protected  java.awt.Font nameYFont
           
protected  int nTotalCurvePoints
           
protected  int nTotalGraphPoints
           
protected  java.awt.Color numberColor
           
protected  java.awt.Font numberFont
           
protected  java.text.DecimalFormat numberFormatX
           
protected  java.text.DecimalFormat numberFormatY
           
protected  double numbMarkScaleX
           
protected  double numbMarkScaleY
           
protected  java.awt.Image offScreenImage_
           
protected  boolean offScreenImageOn
           
protected  java.lang.Object parentFrameOrDialog
           
protected  double scaleX
           
protected  double scaleY
           
protected  int screenH
           
protected  int screenW
           
protected  java.awt.Polygon triangleMarkerLeft
           
protected  java.awt.Polygon triangleMarkerRight
           
protected  boolean verLinesModeButtonVisible
           
static int VERTICAL
           
protected  java.util.Vector vLinesColorV
           
protected  java.util.Vector vLinesV
           
protected  int xAxisLength
           
protected  int xLOffSet
           
protected  double xMax
           
protected  double xMin
           
protected  int xROffSet
           
protected  int yAxisLength
           
protected  int yBOffSet
           
protected  double yMax
           
protected  double yMin
           
protected  int yUOffSet
           
protected  java.util.Vector zoomGridLimitsV
           
 
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
FunctionGraphsJPanel()
           
 
Method Summary
 void addChooseListener(java.awt.event.ActionListener al)
           
 void addCurveData(CurveData curveData)
           
 void addCurveData(java.util.Vector cdV)
           
 void addDraggedHorLinesListener(java.awt.event.ActionListener draggedHorLinesListenerIn)
           
 void addDraggedVerLinesListener(java.awt.event.ActionListener draggedVerLinesListenerIn)
           
 int addGraphData(BasicGraphData lgd)
           
 void addGraphData(java.util.Vector gdV)
           
 int addHorizontalLine(double y)
           
 int addHorizontalLine(double y, java.awt.Color cl)
           
 int addVerticalLine(double x)
           
 int addVerticalLine(double x, java.awt.Color cl)
           
protected  void chooseGraph(double x, double y)
           
protected  boolean chooseGraphFromLegend(int iX, int iY)
           
 void clearZoomStack()
           
protected  void drawGraphicsData(java.awt.Graphics2D g, int scr_w, int scr_h)
           
 java.util.Vector getAllCurveData()
           
 java.util.Vector getAllGraphData()
           
protected  javax.swing.JDialog getAxisParamDialog()
           
 java.awt.Color getBorderBackGroundColor()
           
 FunctionGraphsJPanel.ClickedPoint getClickedPointObject()
           
 ColorSurfaceData getColorSurfaceData()
           
protected  FunctionGraphsJPanel.GridLimits getCurrentGL()
           
 double getCurrentMaxX()
           
 double getCurrentMaxY()
           
 double getCurrentMinX()
           
 double getCurrentMinY()
           
 CurveData getCurveData(int i)
           
 int getDraggedLineIndex()
           
 FunctionGraphsJPanel.GridLimits getExternalGL()
           
protected  double getFromScreenX(int ix)
           
protected  double getFromScreenY(int iy)
           
 java.awt.Color getGraphBackGroundColor()
           
 java.lang.Integer getGraphChosenIndex()
           
 java.awt.Color getGraphColor(int index)
           
 java.awt.Color getGraphsDefaultColor()
           
 boolean getGridLinesVisibleX()
           
 boolean getGridLinesVisibleY()
           
 double getHorizontalValue(int index)
           
 double getInnerMaxX()
           
 double getInnerMaxY()
           
 double getInnerMinX()
           
 double getInnerMinY()
           
 BasicGraphData getInstanceOfGraphData(int index)
           
 java.lang.String getLegendKeyString()
           
 java.lang.String getName()
           
protected  int getNearestHorizontalLineIndex(double y)
           
protected  int getNearestVerticalLineIndex(double x)
           
 FunctionGraphsJPanel.GridLimits getNewGridLimits()
           
 int getNumberOfHorizontalLines()
           
 int getNumberOfInstanceOfGraphData()
           
 int getNumberOfVerticalLines()
           
 int getNumbTotalGraphPoints()
           
protected  java.awt.Component getParentFrameOrDialog()
           
 java.lang.Integer getPointChosenIndex()
           
 java.lang.Double getPointChosenX()
           
 java.lang.Double getPointChosenY()
           
protected  int getScreenX(double x)
           
protected  int getScreenY(double y)
           
 double getVerticalValue(int index)
           
protected  void initialSettings()
           
 boolean isLegendVisible()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
protected  void paintComponent(java.awt.Graphics g)
           
 void refreshGraphJPanel()
           
 void removeAllCurveData()
           
 void removeAllGraphData()
           
 void removeColorForAllGraphs()
           
 void removeCurveData(CurveData curveData)
           
 void removeCurveData(int i)
           
 void removeGraphData(BasicGraphData gd)
           
 void removeGraphData(int index)
           
 void removeGraphData(java.util.Vector gdV)
           
 void removeHorizontalValue(int index)
           
 void removeHorizontalValues()
           
 void removeVerticalValue(int index)
           
 void removeVerticalValues()
           
 void resetGraphsDefaultColor()
           
 void setAxisNameColorX(java.awt.Color clX)
           
 void setAxisNameColorY(java.awt.Color clY)
           
 void setAxisNameFontX(java.awt.Font fnX)
           
 void setAxisNameFontY(java.awt.Font fnY)
           
 void setAxisNames(java.lang.String nameX, java.lang.String nameY)
           
 void setAxisNameX(java.lang.String nameX)
           
 void setAxisNameY(java.lang.String nameY)
           
 void setBorderBackGroundColor(java.awt.Color bkgBorderAreaColor)
           
 void setChooseModeButtonVisible(boolean vs)
           
 void setChoosingGraphMode()
           
 void setColorSurfaceData(ColorSurfaceData colorSurfaceData)
           
 void setDisplayGraphMode()
           
 void setDraggedHorLinesMotionListen(boolean draggedHorLinesMotionListenYesIn)
           
 void setDraggedVerLinesMotionListen(boolean draggedVerLinesMotionListenYesIn)
           
 void setDraggingHorLinesGraphMode(boolean dragLinesModeYes)
           
 void setDraggingVerLinesGraphMode(boolean dragLinesModeYes)
           
 void setExternalGL(FunctionGraphsJPanel.GridLimits GL)
           
 void setGraphBackGroundColor(java.awt.Color bkgGraphAreaColor)
           
 boolean setGraphColor(int index, java.awt.Color color)
           
 void setGraphLineChoosenColor(java.awt.Color color)
           
 void setGraphsDefaultColor(java.awt.Color color)
           
 void setGridLinesVisibleX(boolean vsbl)
           
 void setGridLinesVisibleY(boolean vsbl)
           
 void setHorizontalLineColor(java.awt.Color cl, int index)
           
 void setHorizontalLineValue(double y, int index)
           
 void setHorLinesButtonVisible(boolean vs)
           
 void setLegendBackground(java.awt.Color cl)
           
 void setLegendButtonVisible(boolean vs)
           
 void setLegendColor(java.awt.Color cl)
           
 void setLegendFont(java.awt.Font fnt)
           
 void setLegendKeyString(java.lang.String legendKeyString)
           
 void setLegendPosition(int legendPosition)
           
 void setLegendVisible(boolean vs)
           
 void setLimitsAndTicksX(double vMin, double vMax, double step)
           
 void setLimitsAndTicksX(double vMin, double vMax, double step, int nMinorTicksIn)
           
 void setLimitsAndTicksX(double vMin, double step, int nStep)
           
 void setLimitsAndTicksX(double vMin, double step, int nStep, int nMinorTicksIn)
           
 void setLimitsAndTicksY(double vMin, double vMax, double step)
           
 void setLimitsAndTicksY(double vMin, double vMax, double step, int nMinorTicksIn)
           
 void setLimitsAndTicksY(double vMin, double step, int nStep)
           
 void setLimitsAndTicksY(double vMin, double step, int nStep, int nMinorTicksIn)
           
 void setMakrsScaleX(double numbMarkScaleXin)
           
 void setMakrsScaleY(double numbMarkScaleYin)
           
 void setName(java.lang.String name)
           
 void setNameColor(java.awt.Color cl)
           
 void setNameFont(java.awt.Font fn)
           
 void setNumberColor(java.awt.Color cl)
           
 void setNumberFont(java.awt.Font fn)
           
 void setNumberFormatX(java.text.DecimalFormat df)
           
 void setNumberFormatY(java.text.DecimalFormat df)
           
 void setOffScreenImageDrawing(boolean offScreenImageOnIn)
           
 void setVerLinesButtonVisible(boolean vs)
           
 void setVerticalLineColor(java.awt.Color cl, int index)
           
 void setVerticalLineValue(double x, int index)
           
protected  void unChooseGraph()
           
protected  void updateData()
           
protected  void updateGraphJPanel()
           
 void xMarkersOn(boolean gridXmarkerOnIn)
           
 void yMarkersOn(boolean gridYmarkerOnIn)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, 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

HORIZONTAL

public static int HORIZONTAL

VERTICAL

public static int VERTICAL

graphDataV

protected java.util.Vector graphDataV

graphColorV

protected java.util.Vector graphColorV

nTotalGraphPoints

protected int nTotalGraphPoints

curveDataV

protected java.util.Vector curveDataV

nTotalCurvePoints

protected int nTotalCurvePoints

colorSurfaceData

protected ColorSurfaceData colorSurfaceData

bkgGraphAreaColor

protected java.awt.Color bkgGraphAreaColor

bkgBorderAreaColor

protected java.awt.Color bkgBorderAreaColor

lineDefaultColor

protected java.awt.Color lineDefaultColor

lineChoosenColor

protected java.awt.Color lineChoosenColor

nameOfGraph

protected java.lang.String nameOfGraph

nameX

protected java.lang.String nameX

nameY

protected java.lang.String nameY

nameOfGraphFont

protected java.awt.Font nameOfGraphFont

nameXFont

protected java.awt.Font nameXFont

nameYFont

protected java.awt.Font nameYFont

numberFont

protected java.awt.Font numberFont

nameOfGraphColor

protected java.awt.Color nameOfGraphColor

nameXColor

protected java.awt.Color nameXColor

nameYColor

protected java.awt.Color nameYColor

numberColor

protected java.awt.Color numberColor

numberFormatX

protected java.text.DecimalFormat numberFormatX

numberFormatY

protected java.text.DecimalFormat numberFormatY

gridLineOnX

protected boolean gridLineOnX

gridLineOnY

protected boolean gridLineOnY

gridXmarkerOn

protected boolean gridXmarkerOn

gridYmarkerOn

protected boolean gridYmarkerOn

numbMarkScaleX

protected double numbMarkScaleX

numbMarkScaleY

protected double numbMarkScaleY

vLinesV

protected java.util.Vector vLinesV

hLinesV

protected java.util.Vector hLinesV

vLinesColorV

protected java.util.Vector vLinesColorV

hLinesColorV

protected java.util.Vector hLinesColorV

defaultVerticalLineColor

protected java.awt.Color defaultVerticalLineColor

defaultHorizontLineColor

protected java.awt.Color defaultHorizontLineColor

innerGridLimits

protected FunctionGraphsJPanel.GridLimits innerGridLimits

externalGridLimits

protected FunctionGraphsJPanel.GridLimits externalGridLimits

zoomGridLimitsV

protected java.util.Vector zoomGridLimitsV

offScreenImage_

protected java.awt.Image offScreenImage_

offScreenImageOn

protected boolean offScreenImageOn

scaleX

protected double scaleX

scaleY

protected double scaleY

xAxisLength

protected int xAxisLength

yAxisLength

protected int yAxisLength

xMin

protected double xMin

yMin

protected double yMin

xMax

protected double xMax

yMax

protected double yMax

xLOffSet

protected int xLOffSet

xROffSet

protected int xROffSet

yUOffSet

protected int yUOffSet

yBOffSet

protected int yBOffSet

screenW

protected int screenW

screenH

protected int screenH

fSizeName

protected int fSizeName

fSizeX

protected int fSizeX

fSizeY

protected int fSizeY

fSizeNumbXhor

protected int fSizeNumbXhor

fSizeNumbXver

protected int fSizeNumbXver

fSizeNumbYhor

protected int fSizeNumbYhor

fSizeNumbYver

protected int fSizeNumbYver

clickedPoint

protected FunctionGraphsJPanel.ClickedPoint clickedPoint

axisDialog

protected javax.swing.JDialog axisDialog

parentFrameOrDialog

protected java.lang.Object parentFrameOrDialog

glPanel

protected FunctionGraphsJPanel.gridLimitsPanel glPanel

graphChoosingYes

protected boolean graphChoosingYes

graphChosenYes

protected boolean graphChosenYes

graphChosenIndex

protected int graphChosenIndex

graphPointChosenIndex

protected int graphPointChosenIndex

choosenX

protected double choosenX

choosenY

protected double choosenY

chooseModeButton

protected javax.swing.JRadioButton chooseModeButton

chooseModeButtonVisible

protected boolean chooseModeButtonVisible

chooseListener

protected java.awt.event.ActionListener chooseListener

dragHorLinesModeYes

protected boolean dragHorLinesModeYes

dragVerLinesModeYes

protected boolean dragVerLinesModeYes

dragHorLinesModeButton

protected javax.swing.JRadioButton dragHorLinesModeButton

dragVerLinesModeButton

protected javax.swing.JRadioButton dragVerLinesModeButton

horLinesModeButtonVisible

protected boolean horLinesModeButtonVisible

verLinesModeButtonVisible

protected boolean verLinesModeButtonVisible

draggedLinesIndex

protected int draggedLinesIndex

draggedHorLinesListener

protected java.awt.event.ActionListener draggedHorLinesListener

draggedVerLinesListener

protected java.awt.event.ActionListener draggedVerLinesListener

draggedHorLinesEvent

protected java.awt.event.ActionEvent draggedHorLinesEvent

draggedVerLinesEvent

protected java.awt.event.ActionEvent draggedVerLinesEvent

draggedHorLinesMotionListenYes

protected boolean draggedHorLinesMotionListenYes

draggedVerLinesMotionListenYes

protected boolean draggedVerLinesMotionListenYes

triangleMarkerLeft

protected java.awt.Polygon triangleMarkerLeft

triangleMarkerRight

protected java.awt.Polygon triangleMarkerRight

legend

protected FunctionGraphsJPanel.graphLegend legend

legendButton

protected javax.swing.JRadioButton legendButton

legendButtonVisible

protected boolean legendButtonVisible

legendKeyString

protected java.lang.String legendKeyString

LEGEND_POSITION_ARBITRARY

public static int LEGEND_POSITION_ARBITRARY

LEGEND_POSITION_TOP_LEFT

public static int LEGEND_POSITION_TOP_LEFT

LEGEND_POSITION_TOP_RIGHT

public static int LEGEND_POSITION_TOP_RIGHT

LEGEND_POSITION_BOTTOM_LEFT

public static int LEGEND_POSITION_BOTTOM_LEFT

LEGEND_POSITION_BOTTOM_RIGHT

public static int LEGEND_POSITION_BOTTOM_RIGHT
Constructor Detail

FunctionGraphsJPanel

public FunctionGraphsJPanel()
Method Detail

initialSettings

protected void initialSettings()

addGraphData

public int addGraphData(BasicGraphData lgd)

removeGraphData

public void removeGraphData(int index)

removeGraphData

public void removeGraphData(BasicGraphData gd)

addGraphData

public void addGraphData(java.util.Vector gdV)

removeGraphData

public void removeGraphData(java.util.Vector gdV)

removeAllGraphData

public void removeAllGraphData()

getInstanceOfGraphData

public BasicGraphData getInstanceOfGraphData(int index)

getAllGraphData

public java.util.Vector getAllGraphData()

getNumberOfInstanceOfGraphData

public int getNumberOfInstanceOfGraphData()

getNumbTotalGraphPoints

public int getNumbTotalGraphPoints()

setColorSurfaceData

public void setColorSurfaceData(ColorSurfaceData colorSurfaceData)

getColorSurfaceData

public ColorSurfaceData getColorSurfaceData()

getCurveData

public CurveData getCurveData(int i)

getAllCurveData

public java.util.Vector getAllCurveData()

addCurveData

public void addCurveData(CurveData curveData)

addCurveData

public void addCurveData(java.util.Vector cdV)

removeCurveData

public void removeCurveData(int i)

removeCurveData

public void removeCurveData(CurveData curveData)

removeAllCurveData

public void removeAllCurveData()

setGraphsDefaultColor

public void setGraphsDefaultColor(java.awt.Color color)

setGraphLineChoosenColor

public void setGraphLineChoosenColor(java.awt.Color color)

getGraphsDefaultColor

public java.awt.Color getGraphsDefaultColor()

resetGraphsDefaultColor

public void resetGraphsDefaultColor()

removeColorForAllGraphs

public void removeColorForAllGraphs()

getGraphColor

public java.awt.Color getGraphColor(int index)

setGraphColor

public boolean setGraphColor(int index,
                             java.awt.Color color)

xMarkersOn

public void xMarkersOn(boolean gridXmarkerOnIn)

yMarkersOn

public void yMarkersOn(boolean gridYmarkerOnIn)

setOffScreenImageDrawing

public void setOffScreenImageDrawing(boolean offScreenImageOnIn)

setDisplayGraphMode

public void setDisplayGraphMode()

setChoosingGraphMode

public void setChoosingGraphMode()

setChooseModeButtonVisible

public void setChooseModeButtonVisible(boolean vs)

unChooseGraph

protected void unChooseGraph()

chooseGraphFromLegend

protected boolean chooseGraphFromLegend(int iX,
                                        int iY)

chooseGraph

protected void chooseGraph(double x,
                           double y)

getGraphChosenIndex

public java.lang.Integer getGraphChosenIndex()

getPointChosenIndex

public java.lang.Integer getPointChosenIndex()

getPointChosenX

public java.lang.Double getPointChosenX()

getPointChosenY

public java.lang.Double getPointChosenY()

addChooseListener

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

getNewGridLimits

public FunctionGraphsJPanel.GridLimits getNewGridLimits()

getCurrentGL

protected FunctionGraphsJPanel.GridLimits getCurrentGL()

setExternalGL

public void setExternalGL(FunctionGraphsJPanel.GridLimits GL)

getExternalGL

public FunctionGraphsJPanel.GridLimits getExternalGL()

getInnerMinX

public double getInnerMinX()

getInnerMaxX

public double getInnerMaxX()

getInnerMinY

public double getInnerMinY()

getInnerMaxY

public double getInnerMaxY()

getCurrentMinX

public double getCurrentMinX()

getCurrentMaxX

public double getCurrentMaxX()

getCurrentMinY

public double getCurrentMinY()

getCurrentMaxY

public double getCurrentMaxY()

clearZoomStack

public void clearZoomStack()

setLimitsAndTicksX

public void setLimitsAndTicksX(double vMin,
                               double step,
                               int nStep,
                               int nMinorTicksIn)

setLimitsAndTicksY

public void setLimitsAndTicksY(double vMin,
                               double step,
                               int nStep,
                               int nMinorTicksIn)

setLimitsAndTicksX

public void setLimitsAndTicksX(double vMin,
                               double step,
                               int nStep)

setLimitsAndTicksY

public void setLimitsAndTicksY(double vMin,
                               double step,
                               int nStep)

setLimitsAndTicksX

public void setLimitsAndTicksX(double vMin,
                               double vMax,
                               double step,
                               int nMinorTicksIn)

setLimitsAndTicksY

public void setLimitsAndTicksY(double vMin,
                               double vMax,
                               double step,
                               int nMinorTicksIn)

setLimitsAndTicksX

public void setLimitsAndTicksX(double vMin,
                               double vMax,
                               double step)

setLimitsAndTicksY

public void setLimitsAndTicksY(double vMin,
                               double vMax,
                               double step)

setGraphBackGroundColor

public void setGraphBackGroundColor(java.awt.Color bkgGraphAreaColor)

setBorderBackGroundColor

public void setBorderBackGroundColor(java.awt.Color bkgBorderAreaColor)

getGraphBackGroundColor

public java.awt.Color getGraphBackGroundColor()

getBorderBackGroundColor

public java.awt.Color getBorderBackGroundColor()

setName

public void setName(java.lang.String name)
Overrides:
setName in class java.awt.Component

getName

public java.lang.String getName()
Overrides:
getName in class java.awt.Component

setAxisNames

public void setAxisNames(java.lang.String nameX,
                         java.lang.String nameY)

setAxisNameX

public void setAxisNameX(java.lang.String nameX)

setAxisNameY

public void setAxisNameY(java.lang.String nameY)

setNameFont

public void setNameFont(java.awt.Font fn)

setAxisNameFontX

public void setAxisNameFontX(java.awt.Font fnX)

setAxisNameFontY

public void setAxisNameFontY(java.awt.Font fnY)

setNumberFont

public void setNumberFont(java.awt.Font fn)

setNameColor

public void setNameColor(java.awt.Color cl)

setAxisNameColorX

public void setAxisNameColorX(java.awt.Color clX)

setAxisNameColorY

public void setAxisNameColorY(java.awt.Color clY)

setNumberColor

public void setNumberColor(java.awt.Color cl)

setNumberFormatX

public void setNumberFormatX(java.text.DecimalFormat df)

setNumberFormatY

public void setNumberFormatY(java.text.DecimalFormat df)

setMakrsScaleX

public void setMakrsScaleX(double numbMarkScaleXin)

setMakrsScaleY

public void setMakrsScaleY(double numbMarkScaleYin)

getClickedPointObject

public FunctionGraphsJPanel.ClickedPoint getClickedPointObject()

getNumberOfVerticalLines

public int getNumberOfVerticalLines()

getNumberOfHorizontalLines

public int getNumberOfHorizontalLines()

addVerticalLine

public int addVerticalLine(double x)

addHorizontalLine

public int addHorizontalLine(double y)

addVerticalLine

public int addVerticalLine(double x,
                           java.awt.Color cl)

addHorizontalLine

public int addHorizontalLine(double y,
                             java.awt.Color cl)

setVerticalLineValue

public void setVerticalLineValue(double x,
                                 int index)

setHorizontalLineValue

public void setHorizontalLineValue(double y,
                                   int index)

setVerticalLineColor

public void setVerticalLineColor(java.awt.Color cl,
                                 int index)

setHorizontalLineColor

public void setHorizontalLineColor(java.awt.Color cl,
                                   int index)

getVerticalValue

public double getVerticalValue(int index)

getHorizontalValue

public double getHorizontalValue(int index)

removeVerticalValue

public void removeVerticalValue(int index)

removeHorizontalValue

public void removeHorizontalValue(int index)

removeVerticalValues

public void removeVerticalValues()

removeHorizontalValues

public void removeHorizontalValues()

setDraggingHorLinesGraphMode

public void setDraggingHorLinesGraphMode(boolean dragLinesModeYes)

setDraggingVerLinesGraphMode

public void setDraggingVerLinesGraphMode(boolean dragLinesModeYes)

setHorLinesButtonVisible

public void setHorLinesButtonVisible(boolean vs)

setVerLinesButtonVisible

public void setVerLinesButtonVisible(boolean vs)

addDraggedHorLinesListener

public void addDraggedHorLinesListener(java.awt.event.ActionListener draggedHorLinesListenerIn)

addDraggedVerLinesListener

public void addDraggedVerLinesListener(java.awt.event.ActionListener draggedVerLinesListenerIn)

setDraggedHorLinesMotionListen

public void setDraggedHorLinesMotionListen(boolean draggedHorLinesMotionListenYesIn)

setDraggedVerLinesMotionListen

public void setDraggedVerLinesMotionListen(boolean draggedVerLinesMotionListenYesIn)

getDraggedLineIndex

public int getDraggedLineIndex()

getNearestHorizontalLineIndex

protected int getNearestHorizontalLineIndex(double y)

getNearestVerticalLineIndex

protected int getNearestVerticalLineIndex(double x)

setGridLinesVisibleX

public void setGridLinesVisibleX(boolean vsbl)

getGridLinesVisibleX

public boolean getGridLinesVisibleX()

setGridLinesVisibleY

public void setGridLinesVisibleY(boolean vsbl)

getGridLinesVisibleY

public boolean getGridLinesVisibleY()

getParentFrameOrDialog

protected java.awt.Component getParentFrameOrDialog()

getAxisParamDialog

protected javax.swing.JDialog getAxisParamDialog()

setLegendVisible

public void setLegendVisible(boolean vs)

isLegendVisible

public boolean isLegendVisible()

setLegendButtonVisible

public void setLegendButtonVisible(boolean vs)

setLegendKeyString

public void setLegendKeyString(java.lang.String legendKeyString)

getLegendKeyString

public java.lang.String getLegendKeyString()

setLegendPosition

public void setLegendPosition(int legendPosition)

setLegendFont

public void setLegendFont(java.awt.Font fnt)

setLegendColor

public void setLegendColor(java.awt.Color cl)

setLegendBackground

public void setLegendBackground(java.awt.Color cl)

updateData

protected void updateData()

paintComponent

protected void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class javax.swing.JComponent

updateGraphJPanel

protected void updateGraphJPanel()

refreshGraphJPanel

public void refreshGraphJPanel()

drawGraphicsData

protected void drawGraphicsData(java.awt.Graphics2D g,
                                int scr_w,
                                int scr_h)

getScreenX

protected int getScreenX(double x)

getScreenY

protected int getScreenY(double y)

getFromScreenX

protected double getFromScreenX(int ix)

getFromScreenY

protected double getFromScreenY(int iy)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener