Package xal.extension.widgets.plot
Class FunctionGraphsJPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
xal.extension.widgets.plot.FunctionGraphsJPanel
- All Implemented Interfaces:
MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
- Direct Known Subclasses:
TrajectoryGraph
This is the base class of the plotting package. It is a sub-class of JPanel
and displays all graphics
- Version:
- 1.0
- Author:
- shishlo, tap
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescription of the ClassNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe static field that defines HORIZONTAL line on a graph panelstatic final intThe constant defining the legend position at the arbitrary place of the graph panelstatic final intThe constant defining the legend position at the bottom left corner of the graph panelstatic final intThe constant defining the legend position at the bottom right corner of the graph panelstatic final intThe constant defining the legend position at the top left corner of the graph panelstatic final intThe constant defining the legend position at the top right corner of the graph panelprotected static final Stringstatic final intThe static field that defines Vertical line on a graph panelFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a feature to the ChooseListener attribute of the FunctionGraphsJPanel objectvoidaddCurveData(Vector<? extends CurveData> cdV) Adds a feature to the CurveData attribute of the FunctionGraphsJPanel objectvoidaddCurveData(CurveData curveData) Adds a feature to the CurveData attribute of the FunctionGraphsJPanel objectvoidaddDraggedHorLinesListener(ActionListener draggedHorLinesListenerIn) Adds a feature to the DraggedHorLinesListener attribute of the FunctionGraphsJPanel objectvoidaddDraggedVerLinesListener(ActionListener draggedVerLinesListenerIn) Adds a feature to the DraggedVerLinesListener attribute of the FunctionGraphsJPanel objectvoidaddGraphData(Vector<? extends BasicGraphData> gdV) Adds all BasicGraphData instances in the vector to the graph panel.intAdds a BasicGraphData instance to the graph panelintaddHorizontalLine(double y) Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel objectintaddHorizontalLine(double y, Color cl) Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel objectvoidAdds a feature to the HorLimitsListener attribute of the FunctionGraphsJPanel objectvoidAdds a feature to the VerLimitsListener attribute of the FunctionGraphsJPanel objectintaddVerticalLine(double x) Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel objectintaddVerticalLine(double x, Color cl) Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel objectvoidDescription of the MethodReturns the allCurveData attribute of the FunctionGraphsJPanel objectReturns the vector with references to all BasicGraphData objects on this graph panelReturns the borderBackGroundColor attribute of the FunctionGraphsJPanel objectReturns the clickedPointObject attribute of the FunctionGraphsJPanel objectReturns the reference to ColorSurfaceData object that is plotted on the graph panelReturns the currentGL attribute of the FunctionGraphsJPanel objectdoubleReturns the currentMaxX attribute of the FunctionGraphsJPanel objectdoubleReturns the currentMaxY attribute of the FunctionGraphsJPanel objectdoubleReturns the currentMinX attribute of the FunctionGraphsJPanel objectdoubleReturns the currentMinY attribute of the FunctionGraphsJPanel objectgetCurveData(int i) Returns the curveData attribute of the FunctionGraphsJPanel objectintReturns the draggedLineIndex attribute of the FunctionGraphsJPanel objectReturns the external GridLimits objectReturns the graphBackGroundColor attribute of the FunctionGraphsJPanel objectReturns the graphChosenIndex attribute of the FunctionGraphsJPanel objectgetGraphColor(int index) Returns the graphColor attribute of the FunctionGraphsJPanel objectReturns the graphsDefaultColor attribute of the FunctionGraphsJPanel objectbooleanReturns the gridLinesVisibleX attribute of the FunctionGraphsJPanel objectbooleanReturns the gridLinesVisibleY attribute of the FunctionGraphsJPanel objectdoublegetHorizontalValue(int index) Returns the horizontalValue attribute of the FunctionGraphsJPanel objectReturns the horLimitsListeners attribute of the FunctionGraphsJPanel objectdoubleReturns the innerMaxX attribute of the FunctionGraphsJPanel objectdoubleReturns the innerMaxY attribute of the FunctionGraphsJPanel objectdoubleReturns the innerMinX attribute of the FunctionGraphsJPanel objectdoubleReturns the innerMinY attribute of the FunctionGraphsJPanel objectgetInstanceOfGraphData(int index) Returns the reference to BasicGraphData object with a particular indexReturns the legendKeyString attribute of the FunctionGraphsJPanel objectgetName()Returns the name attribute of the FunctionGraphsJPanel objectReturns the newGridLimits attribute of the FunctionGraphsJPanel objectintReturns the numberOfHorizontalLines attribute of the FunctionGraphsJPanel objectintReturns the number of BasicGraphData objects on this graph panelintReturns the numberOfVerticalLines attribute of the FunctionGraphsJPanel objectintReturns the total number of points in the all BasicGraphData objectsReturns the pointChosenIndex attribute of the FunctionGraphsJPanel objectReturns the pointChosenX attribute of the FunctionGraphsJPanel objectReturns the pointChosenY attribute of the FunctionGraphsJPanel objectintgetScreenX(double x) Returns the screenX attribute of the FunctionGraphsJPanel objectintgetScreenY(double y) Returns the screenY attribute of the FunctionGraphsJPanel objectReturns the verLimitsListeners attribute of the FunctionGraphsJPanel objectdoublegetVerticalValue(int index) Returns the verticalValue attribute of the FunctionGraphsJPanel objectbooleanReturns the legendVisible attribute of the FunctionGraphsJPanel objectvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the Methodprotected voidDescription of the MethodvoidUpdate data and the graph panelvoidDescription of the MethodvoidRemoves all BasicGraphData instances from the graph panelvoidDescription of the MethodvoidremoveCurveData(int i) Description of the MethodvoidremoveCurveData(CurveData curveData) Description of the MethodvoidremoveGraphData(int index) Removes a BasicGraphData instance with a particular index from the graph panelvoidremoveGraphData(Vector<? extends BasicGraphData> gdV) Removes all BasicGraphData instances in the vector from the graph panelvoidRemoves a BasicGraphData instance from the graph panelvoidremoveHorizontalValue(int index) Description of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidremoveVerticalValue(int index) Description of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidsetAxisNameColorX(Color clX) Sets the axisNameColorX attribute of the FunctionGraphsJPanel objectvoidsetAxisNameColorY(Color clY) Sets the axisNameColorY attribute of the FunctionGraphsJPanel objectvoidsetAxisNameFontX(Font fnX) Sets the axisNameFontX attribute of the FunctionGraphsJPanel objectvoidsetAxisNameFontY(Font fnY) Sets the axisNameFontY attribute of the FunctionGraphsJPanel objectvoidsetAxisNames(String nameX, String nameY) Sets the axisNames attribute of the FunctionGraphsJPanel objectvoidsetAxisNameX(String nameX) Sets the axisNameX attribute of the FunctionGraphsJPanel objectvoidsetAxisNameY(String nameY) Sets the axisNameY attribute of the FunctionGraphsJPanel objectvoidsetBorderBackGroundColor(Color bkgBorderAreaColor) Sets the borderBackGroundColor attribute of the FunctionGraphsJPanel objectvoidsetChooseModeButtonVisible(boolean vs) Sets the chooseModeButtonVisible attribute of the FunctionGraphsJPanel objectvoidSets the choosingGraphMode attribute of the FunctionGraphsJPanel objectvoidsetColorSurfaceData(ColorSurfaceData colorSurfaceData) Sets ColorSurfaceData object that will be plotted on the graph panelvoidsetCurveData(Vector<? extends CurveData> cdV) Sets the curveData attribute of the FunctionGraphsJPanel objectvoidSets the displayGraphMode attribute of the FunctionGraphsJPanel objectvoidsetDraggedHorLinesMotionListen(boolean draggedHorLinesMotionListenYesIn) Sets the draggedHorLinesMotionListen attribute of the FunctionGraphsJPanel objectvoidsetDraggedVerLinesMotionListen(boolean draggedVerLinesMotionListenYesIn) Sets the draggedVerLinesMotionListen attribute of the FunctionGraphsJPanel objectvoidsetDraggingHorLinesGraphMode(boolean dragLinesModeYes) Sets the draggingHorLinesGraphMode attribute of the FunctionGraphsJPanel objectvoidsetDraggingVerLinesGraphMode(boolean dragLinesModeYes) Sets the draggingVerLinesGraphMode attribute of the FunctionGraphsJPanel objectvoidSets the GridLimits object to the graph panel as an external grid limitsvoidsetGraphBackGroundColor(Color bkgGraphAreaColor) Sets the graphBackGroundColor attribute of the FunctionGraphsJPanel objectbooleansetGraphColor(int index, Color color) Sets the graphColor attribute of the FunctionGraphsJPanel objectvoidsetGraphData(Vector<? extends BasicGraphData> gdV) Sets all BasicGraphData instances in the vector to the graph panel.voidsetGraphLineChoosenColor(Color color) Sets the graphLineChoosenColor attribute of the FunctionGraphsJPanel objectvoidsetGraphsDefaultColor(Color color) Sets the graphsDefaultColor attribute of the FunctionGraphsJPanel objectvoidsetGridLineColor(Color gridLineColor) Sets the grid lines color of the FunctionGraphsJPanel.voidsetGridLinesVisibleX(boolean vsbl) Sets the gridLinesVisibleX attribute of the FunctionGraphsJPanel objectvoidsetGridLinesVisibleY(boolean vsbl) Sets the gridLinesVisibleY attribute of the FunctionGraphsJPanel objectvoidsetHorizontalLineColor(Color cl, int index) Sets the horizontalLineColor attribute of the FunctionGraphsJPanel objectvoidsetHorizontalLineValue(double y, int index) Sets the horizontalLineValue attribute of the FunctionGraphsJPanel objectvoidsetHorLinesButtonVisible(boolean vs) Sets the horLinesButtonVisible attribute of the FunctionGraphsJPanel objectvoidSets the legendBackground attribute of the FunctionGraphsJPanel objectvoidsetLegendButtonVisible(boolean vs) Sets the legendButtonVisible attribute of the FunctionGraphsJPanel objectvoidsetLegendColor(Color cl) Sets the legendColor attribute of the FunctionGraphsJPanel objectvoidsetLegendFont(Font fnt) Sets the legendFont attribute of the FunctionGraphsJPanel objectvoidsetLegendKeyString(String legendKeyString) Sets the legendKeyString attribute of the FunctionGraphsJPanel objectvoidsetLegendPosition(int legendPosition) Sets the legendPosition attribute of the FunctionGraphsJPanel objectvoidsetLegendVisible(boolean vs) Sets the legendVisible attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksX(double vMin, double vMax, double step) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksX(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksX(double vMin, double step, int nStep) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksX(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksY(double vMin, double vMax, double step) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksY(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksY(double vMin, double step, int nStep) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoidsetLimitsAndTicksY(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoidsetMakrsScaleX(double numbMarkScaleXin) Sets the makrsScaleX attribute of the FunctionGraphsJPanel objectvoidsetMakrsScaleY(double numbMarkScaleYin) Sets the makrsScaleY attribute of the FunctionGraphsJPanel objectvoidSets the name attribute of the FunctionGraphsJPanel objectvoidsetNameColor(Color cl) Sets the nameColor attribute of the FunctionGraphsJPanel objectvoidsetNameFont(Font fn) Sets the nameFont attribute of the FunctionGraphsJPanel objectvoidsetNumberColor(Color cl) Sets the numberColor attribute of the FunctionGraphsJPanel objectvoidsetNumberFont(Font fn) Sets the numberFont attribute of the FunctionGraphsJPanel objectvoidSets the numberFormatX attribute of the FunctionGraphsJPanel objectvoidSets the numberFormatY attribute of the FunctionGraphsJPanel objectvoidsetOffScreenImageDrawing(boolean offScreenImageOnIn) Sets the offScreenImageDrawing attribute of the FunctionGraphsJPanel objectvoidsetSmartGL(boolean smart) Sets the boolean value that defines if the smart (slow one) GridLimits object will be used as internal GL manager for the graph panelvoidsetVerLinesButtonVisible(boolean vs) Sets the verLinesButtonVisible attribute of the FunctionGraphsJPanel objectvoidsetVerticalLineColor(Color cl, int index) Sets the verticalLineColor attribute of the FunctionGraphsJPanel objectvoidsetVerticalLineValue(double x, int index) Sets the verticalLineValue attribute of the FunctionGraphsJPanel objectvoidxMarkersOn(boolean gridXmarkerOnIn) Description of the MethodvoidyMarkersOn(boolean gridYmarkerOnIn) Description of the MethodMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, updateMethods 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, validateTreeMethods 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
HORIZONTAL
public static final int HORIZONTALThe static field that defines HORIZONTAL line on a graph panel- See Also:
-
VERTICAL
public static final int VERTICALThe static field that defines Vertical line on a graph panel- See Also:
-
LEGEND_POSITION_ARBITRARY
public static final int LEGEND_POSITION_ARBITRARYThe constant defining the legend position at the arbitrary place of the graph panel- See Also:
-
LEGEND_POSITION_TOP_LEFT
public static final int LEGEND_POSITION_TOP_LEFTThe constant defining the legend position at the top left corner of the graph panel- See Also:
-
LEGEND_POSITION_TOP_RIGHT
public static final int LEGEND_POSITION_TOP_RIGHTThe constant defining the legend position at the top right corner of the graph panel- See Also:
-
LEGEND_POSITION_BOTTOM_LEFT
public static final int LEGEND_POSITION_BOTTOM_LEFTThe constant defining the legend position at the bottom left corner of the graph panel- See Also:
-
LEGEND_POSITION_BOTTOM_RIGHT
public static final int LEGEND_POSITION_BOTTOM_RIGHTThe constant defining the legend position at the bottom right corner of the graph panel- See Also:
-
STRING_DEC_FORMAT
- See Also:
-
-
Constructor Details
-
FunctionGraphsJPanel
public FunctionGraphsJPanel()Constructor for the FunctionGraphsJPanel object
-
-
Method Details
-
addGraphData
Adds a BasicGraphData instance to the graph panel- Parameters:
lgd- The BasicGraphData instance- Returns:
- The index of this new data set in the internal array of data references
-
removeGraphData
public void removeGraphData(int index) Removes a BasicGraphData instance with a particular index from the graph panel- Parameters:
index- The index of this data set in the graph panel
-
removeGraphData
Removes a BasicGraphData instance from the graph panel- Parameters:
gd- The BasicGraphData instance
-
addGraphData
Adds all BasicGraphData instances in the vector to the graph panel. All previous data will remain on the graph panel.- Parameters:
gdV- The vector with BasicGraphData instances
-
setGraphData
Sets all BasicGraphData instances in the vector to the graph panel. All previous data will be removed from the graph panel- Parameters:
gdV- The vector with BasicGraphData instances
-
removeGraphData
Removes all BasicGraphData instances in the vector from the graph panel- Parameters:
gdV- The vector with BasicGraphData instances
-
removeAllGraphData
public void removeAllGraphData()Removes all BasicGraphData instances from the graph panel -
getInstanceOfGraphData
Returns the reference to BasicGraphData object with a particular index- Parameters:
index- The index of BasicGraphData object inside the graph panel- Returns:
- The reference to BasicGraphData object
-
getAllGraphData
Returns the vector with references to all BasicGraphData objects on this graph panel- Returns:
- The vector with references to all BasicGraphData objects
-
getNumberOfInstanceOfGraphData
public int getNumberOfInstanceOfGraphData()Returns the number of BasicGraphData objects on this graph panel- Returns:
- The number of BasicGraphData objects
-
getNumbTotalGraphPoints
public int getNumbTotalGraphPoints()Returns the total number of points in the all BasicGraphData objects- Returns:
- The total number of points in the all BasicGraphData objects on this panel
-
setColorSurfaceData
Sets ColorSurfaceData object that will be plotted on the graph panel- Parameters:
colorSurfaceData- New ColorSurfaceData object
-
getColorSurfaceData
Returns the reference to ColorSurfaceData object that is plotted on the graph panel- Returns:
- The reference to ColorSurfaceData object currently plotted on the graph panel
-
getCurveData
Returns the curveData attribute of the FunctionGraphsJPanel object- Parameters:
i- Description of the Parameter- Returns:
- The curveData value
-
getAllCurveData
Returns the allCurveData attribute of the FunctionGraphsJPanel object- Returns:
- The allCurveData value
-
addCurveData
Adds a feature to the CurveData attribute of the FunctionGraphsJPanel object- Parameters:
curveData- The feature to be added to the CurveData attribute
-
addCurveData
Adds a feature to the CurveData attribute of the FunctionGraphsJPanel object- Parameters:
cdV- The feature to be added to the CurveData attribute
-
setCurveData
Sets the curveData attribute of the FunctionGraphsJPanel object- Parameters:
cdV- The new curveData value
-
removeCurveData
public void removeCurveData(int i) Description of the Method- Parameters:
i- Description of the Parameter
-
removeCurveData
Description of the Method- Parameters:
curveData- Description of the Parameter
-
removeAllCurveData
public void removeAllCurveData()Description of the Method -
setGraphsDefaultColor
Sets the graphsDefaultColor attribute of the FunctionGraphsJPanel object- Parameters:
color- The new graphsDefaultColor value
-
setGraphLineChoosenColor
Sets the graphLineChoosenColor attribute of the FunctionGraphsJPanel object- Parameters:
color- The new graphLineChoosenColor value
-
getGraphsDefaultColor
Returns the graphsDefaultColor attribute of the FunctionGraphsJPanel object- Returns:
- The graphsDefaultColor value
-
resetGraphsDefaultColor
public void resetGraphsDefaultColor()Description of the Method -
removeColorForAllGraphs
public void removeColorForAllGraphs()Description of the Method -
getGraphColor
Returns the graphColor attribute of the FunctionGraphsJPanel object- Parameters:
index- Description of the Parameter- Returns:
- The graphColor value
-
setGraphColor
Sets the graphColor attribute of the FunctionGraphsJPanel object- Parameters:
index- The new graphColor valuecolor- The new graphColor value- Returns:
- Description of the Return Value
-
xMarkersOn
public void xMarkersOn(boolean gridXmarkerOnIn) Description of the Method- Parameters:
gridXmarkerOnIn- Description of the Parameter
-
yMarkersOn
public void yMarkersOn(boolean gridYmarkerOnIn) Description of the Method- Parameters:
gridYmarkerOnIn- Description of the Parameter
-
setOffScreenImageDrawing
public void setOffScreenImageDrawing(boolean offScreenImageOnIn) Sets the offScreenImageDrawing attribute of the FunctionGraphsJPanel object- Parameters:
offScreenImageOnIn- The new offScreenImageDrawing value
-
setDisplayGraphMode
public void setDisplayGraphMode()Sets the displayGraphMode attribute of the FunctionGraphsJPanel object -
setChoosingGraphMode
public void setChoosingGraphMode()Sets the choosingGraphMode attribute of the FunctionGraphsJPanel object -
setChooseModeButtonVisible
public void setChooseModeButtonVisible(boolean vs) Sets the chooseModeButtonVisible attribute of the FunctionGraphsJPanel object- Parameters:
vs- The new chooseModeButtonVisible value
-
getGraphChosenIndex
Returns the graphChosenIndex attribute of the FunctionGraphsJPanel object- Returns:
- The graphChosenIndex value
-
getPointChosenIndex
Returns the pointChosenIndex attribute of the FunctionGraphsJPanel object- Returns:
- The pointChosenIndex value
-
getPointChosenX
Returns the pointChosenX attribute of the FunctionGraphsJPanel object- Returns:
- The pointChosenX value
-
getPointChosenY
Returns the pointChosenY attribute of the FunctionGraphsJPanel object- Returns:
- The pointChosenY value
-
addChooseListener
Adds a feature to the ChooseListener attribute of the FunctionGraphsJPanel object- Parameters:
al- The feature to be added to the ChooseListener attribute
-
getNewGridLimits
Returns the newGridLimits attribute of the FunctionGraphsJPanel object- Returns:
- The newGridLimits value
-
getCurrentGL
Returns the currentGL attribute of the FunctionGraphsJPanel object- Returns:
- The currentGL value
-
setExternalGL
Sets the GridLimits object to the graph panel as an external grid limits- Parameters:
gL- The GridLimits object
-
setSmartGL
public void setSmartGL(boolean smart) Sets the boolean value that defines if the smart (slow one) GridLimits object will be used as internal GL manager for the graph panel- Parameters:
smart- The boolean value
-
getExternalGL
Returns the external GridLimits object- Returns:
- The external GL object
-
getInnerMinX
public double getInnerMinX()Returns the innerMinX attribute of the FunctionGraphsJPanel object- Returns:
- The innerMinX value
-
getInnerMaxX
public double getInnerMaxX()Returns the innerMaxX attribute of the FunctionGraphsJPanel object- Returns:
- The innerMaxX value
-
getInnerMinY
public double getInnerMinY()Returns the innerMinY attribute of the FunctionGraphsJPanel object- Returns:
- The innerMinY value
-
getInnerMaxY
public double getInnerMaxY()Returns the innerMaxY attribute of the FunctionGraphsJPanel object- Returns:
- The innerMaxY value
-
getCurrentMinX
public double getCurrentMinX()Returns the currentMinX attribute of the FunctionGraphsJPanel object- Returns:
- The currentMinX value
-
getCurrentMaxX
public double getCurrentMaxX()Returns the currentMaxX attribute of the FunctionGraphsJPanel object- Returns:
- The currentMaxX value
-
getCurrentMinY
public double getCurrentMinY()Returns the currentMinY attribute of the FunctionGraphsJPanel object- Returns:
- The currentMinY value
-
getCurrentMaxY
public double getCurrentMaxY()Returns the currentMaxY attribute of the FunctionGraphsJPanel object- Returns:
- The currentMaxY value
-
clearZoomStack
public void clearZoomStack()Description of the Method -
setLimitsAndTicksX
public void setLimitsAndTicksX(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksX valuestep- The new limitsAndTicksX valuenStep- The new limitsAndTicksX valuenMinorTicksIn- The new limitsAndTicksX value
-
setLimitsAndTicksY
public void setLimitsAndTicksY(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksY valuestep- The new limitsAndTicksY valuenStep- The new limitsAndTicksY valuenMinorTicksIn- The new limitsAndTicksY value
-
setLimitsAndTicksX
public void setLimitsAndTicksX(double vMin, double step, int nStep) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksX valuestep- The new limitsAndTicksX valuenStep- The new limitsAndTicksX value
-
setLimitsAndTicksY
public void setLimitsAndTicksY(double vMin, double step, int nStep) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksY valuestep- The new limitsAndTicksY valuenStep- The new limitsAndTicksY value
-
setLimitsAndTicksX
public void setLimitsAndTicksX(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksX valuevMax- The new limitsAndTicksX valuestep- The new limitsAndTicksX valuenMinorTicksIn- The new limitsAndTicksX value
-
setLimitsAndTicksY
public void setLimitsAndTicksY(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksY valuevMax- The new limitsAndTicksY valuestep- The new limitsAndTicksY valuenMinorTicksIn- The new limitsAndTicksY value
-
setLimitsAndTicksX
public void setLimitsAndTicksX(double vMin, double vMax, double step) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksX valuevMax- The new limitsAndTicksX valuestep- The new limitsAndTicksX value
-
setLimitsAndTicksY
public void setLimitsAndTicksY(double vMin, double vMax, double step) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel object- Parameters:
vMin- The new limitsAndTicksY valuevMax- The new limitsAndTicksY valuestep- The new limitsAndTicksY value
-
setGraphBackGroundColor
Sets the graphBackGroundColor attribute of the FunctionGraphsJPanel object- Parameters:
bkgGraphAreaColor- The new graphBackGroundColor value
-
setGridLineColor
Sets the grid lines color of the FunctionGraphsJPanel. If it is null object the color of grid lines will be darker than the background color.- Parameters:
gridLineColor- The new grid lines color
-
setBorderBackGroundColor
Sets the borderBackGroundColor attribute of the FunctionGraphsJPanel object- Parameters:
bkgBorderAreaColor- The new borderBackGroundColor value
-
getGraphBackGroundColor
Returns the graphBackGroundColor attribute of the FunctionGraphsJPanel object- Returns:
- The graphBackGroundColor value
-
getBorderBackGroundColor
Returns the borderBackGroundColor attribute of the FunctionGraphsJPanel object- Returns:
- The borderBackGroundColor value
-
setName
Sets the name attribute of the FunctionGraphsJPanel object -
getName
Returns the name attribute of the FunctionGraphsJPanel object -
setAxisNames
Sets the axisNames attribute of the FunctionGraphsJPanel object- Parameters:
nameX- The new axisNames valuenameY- The new axisNames value
-
setAxisNameX
Sets the axisNameX attribute of the FunctionGraphsJPanel object- Parameters:
nameX- The new axisNameX value
-
setAxisNameY
Sets the axisNameY attribute of the FunctionGraphsJPanel object- Parameters:
nameY- The new axisNameY value
-
setNameFont
Sets the nameFont attribute of the FunctionGraphsJPanel object- Parameters:
fn- The new nameFont value
-
setAxisNameFontX
Sets the axisNameFontX attribute of the FunctionGraphsJPanel object- Parameters:
fnX- The new axisNameFontX value
-
setAxisNameFontY
Sets the axisNameFontY attribute of the FunctionGraphsJPanel object- Parameters:
fnY- The new axisNameFontY value
-
setNumberFont
Sets the numberFont attribute of the FunctionGraphsJPanel object- Parameters:
fn- The new numberFont value
-
setNameColor
Sets the nameColor attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new nameColor value
-
setAxisNameColorX
Sets the axisNameColorX attribute of the FunctionGraphsJPanel object- Parameters:
clX- The new axisNameColorX value
-
setAxisNameColorY
Sets the axisNameColorY attribute of the FunctionGraphsJPanel object- Parameters:
clY- The new axisNameColorY value
-
setNumberColor
Sets the numberColor attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new numberColor value
-
setNumberFormatX
Sets the numberFormatX attribute of the FunctionGraphsJPanel object- Parameters:
df- The new numberFormatX value
-
setNumberFormatY
Sets the numberFormatY attribute of the FunctionGraphsJPanel object- Parameters:
df- The new numberFormatY value
-
setMakrsScaleX
public void setMakrsScaleX(double numbMarkScaleXin) Sets the makrsScaleX attribute of the FunctionGraphsJPanel object- Parameters:
numbMarkScaleXin- The new makrsScaleX value
-
setMakrsScaleY
public void setMakrsScaleY(double numbMarkScaleYin) Sets the makrsScaleY attribute of the FunctionGraphsJPanel object- Parameters:
numbMarkScaleYin- The new makrsScaleY value
-
getClickedPointObject
Returns the clickedPointObject attribute of the FunctionGraphsJPanel object- Returns:
- The clickedPointObject value
-
getNumberOfVerticalLines
public int getNumberOfVerticalLines()Returns the numberOfVerticalLines attribute of the FunctionGraphsJPanel object- Returns:
- The numberOfVerticalLines value
-
getNumberOfHorizontalLines
public int getNumberOfHorizontalLines()Returns the numberOfHorizontalLines attribute of the FunctionGraphsJPanel object- Returns:
- The numberOfHorizontalLines value
-
addVerticalLine
public int addVerticalLine(double x) Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel object- Parameters:
x- The feature to be added to the VerticalLine attribute- Returns:
- Description of the Return Value
-
addHorizontalLine
public int addHorizontalLine(double y) Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel object- Parameters:
y- The feature to be added to the HorizontalLine attribute- Returns:
- Description of the Return Value
-
addVerticalLine
Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel object- Parameters:
x- The feature to be added to the VerticalLine attributecl- The feature to be added to the VerticalLine attribute- Returns:
- Description of the Return Value
-
addHorizontalLine
Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel object- Parameters:
y- The feature to be added to the HorizontalLine attributecl- The feature to be added to the HorizontalLine attribute- Returns:
- Description of the Return Value
-
setVerticalLineValue
public void setVerticalLineValue(double x, int index) Sets the verticalLineValue attribute of the FunctionGraphsJPanel object- Parameters:
x- The new verticalLineValue valueindex- The new verticalLineValue value
-
setHorizontalLineValue
public void setHorizontalLineValue(double y, int index) Sets the horizontalLineValue attribute of the FunctionGraphsJPanel object- Parameters:
y- The new horizontalLineValue valueindex- The new horizontalLineValue value
-
setVerticalLineColor
Sets the verticalLineColor attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new verticalLineColor valueindex- The new verticalLineColor value
-
setHorizontalLineColor
Sets the horizontalLineColor attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new horizontalLineColor valueindex- The new horizontalLineColor value
-
getVerticalValue
public double getVerticalValue(int index) Returns the verticalValue attribute of the FunctionGraphsJPanel object- Parameters:
index- Description of the Parameter- Returns:
- The verticalValue value
-
getHorizontalValue
public double getHorizontalValue(int index) Returns the horizontalValue attribute of the FunctionGraphsJPanel object- Parameters:
index- Description of the Parameter- Returns:
- The horizontalValue value
-
removeVerticalValue
public void removeVerticalValue(int index) Description of the Method- Parameters:
index- Description of the Parameter
-
removeHorizontalValue
public void removeHorizontalValue(int index) Description of the Method- Parameters:
index- Description of the Parameter
-
removeVerticalValues
public void removeVerticalValues()Description of the Method -
removeHorizontalValues
public void removeHorizontalValues()Description of the Method -
setDraggingHorLinesGraphMode
public void setDraggingHorLinesGraphMode(boolean dragLinesModeYes) Sets the draggingHorLinesGraphMode attribute of the FunctionGraphsJPanel object- Parameters:
dragLinesModeYes- The new draggingHorLinesGraphMode value
-
setDraggingVerLinesGraphMode
public void setDraggingVerLinesGraphMode(boolean dragLinesModeYes) Sets the draggingVerLinesGraphMode attribute of the FunctionGraphsJPanel object- Parameters:
dragLinesModeYes- The new draggingVerLinesGraphMode value
-
setHorLinesButtonVisible
public void setHorLinesButtonVisible(boolean vs) Sets the horLinesButtonVisible attribute of the FunctionGraphsJPanel object- Parameters:
vs- The new horLinesButtonVisible value
-
setVerLinesButtonVisible
public void setVerLinesButtonVisible(boolean vs) Sets the verLinesButtonVisible attribute of the FunctionGraphsJPanel object- Parameters:
vs- The new verLinesButtonVisible value
-
addDraggedHorLinesListener
Adds a feature to the DraggedHorLinesListener attribute of the FunctionGraphsJPanel object- Parameters:
draggedHorLinesListenerIn- The feature to be added to the DraggedHorLinesListener attribute
-
addDraggedVerLinesListener
Adds a feature to the DraggedVerLinesListener attribute of the FunctionGraphsJPanel object- Parameters:
draggedVerLinesListenerIn- The feature to be added to the DraggedVerLinesListener attribute
-
setDraggedHorLinesMotionListen
public void setDraggedHorLinesMotionListen(boolean draggedHorLinesMotionListenYesIn) Sets the draggedHorLinesMotionListen attribute of the FunctionGraphsJPanel object- Parameters:
draggedHorLinesMotionListenYesIn- The new draggedHorLinesMotionListen value
-
setDraggedVerLinesMotionListen
public void setDraggedVerLinesMotionListen(boolean draggedVerLinesMotionListenYesIn) Sets the draggedVerLinesMotionListen attribute of the FunctionGraphsJPanel object- Parameters:
draggedVerLinesMotionListenYesIn- The new draggedVerLinesMotionListen value
-
getDraggedLineIndex
public int getDraggedLineIndex()Returns the draggedLineIndex attribute of the FunctionGraphsJPanel object- Returns:
- The draggedLineIndex value
-
setGridLinesVisibleX
public void setGridLinesVisibleX(boolean vsbl) Sets the gridLinesVisibleX attribute of the FunctionGraphsJPanel object- Parameters:
vsbl- The new gridLinesVisibleX value
-
getGridLinesVisibleX
public boolean getGridLinesVisibleX()Returns the gridLinesVisibleX attribute of the FunctionGraphsJPanel object- Returns:
- The gridLinesVisibleX value
-
setGridLinesVisibleY
public void setGridLinesVisibleY(boolean vsbl) Sets the gridLinesVisibleY attribute of the FunctionGraphsJPanel object- Parameters:
vsbl- The new gridLinesVisibleY value
-
getGridLinesVisibleY
public boolean getGridLinesVisibleY()Returns the gridLinesVisibleY attribute of the FunctionGraphsJPanel object- Returns:
- The gridLinesVisibleY value
-
addHorLimitsListener
Adds a feature to the HorLimitsListener attribute of the FunctionGraphsJPanel object- Parameters:
al- The feature to be added to the HorLimitsListener attribute
-
addVerLimitsListener
Adds a feature to the VerLimitsListener attribute of the FunctionGraphsJPanel object- Parameters:
al- The feature to be added to the VerLimitsListener attribute
-
removeHorLimitsListener
Description of the Method- Parameters:
al- Description of the Parameter
-
removeVerLimitsListener
Description of the Method- Parameters:
al- Description of the Parameter
-
getHorLimitsListeners
Returns the horLimitsListeners attribute of the FunctionGraphsJPanel object- Returns:
- The horLimitsListeners value
-
getVerLimitsListeners
Returns the verLimitsListeners attribute of the FunctionGraphsJPanel object- Returns:
- The verLimitsListeners value
-
setLegendVisible
public void setLegendVisible(boolean vs) Sets the legendVisible attribute of the FunctionGraphsJPanel object- Parameters:
vs- The new legendVisible value
-
isLegendVisible
public boolean isLegendVisible()Returns the legendVisible attribute of the FunctionGraphsJPanel object- Returns:
- The legendVisible value
-
setLegendButtonVisible
public void setLegendButtonVisible(boolean vs) Sets the legendButtonVisible attribute of the FunctionGraphsJPanel object- Parameters:
vs- The new legendButtonVisible value
-
setLegendKeyString
Sets the legendKeyString attribute of the FunctionGraphsJPanel object- Parameters:
legendKeyString- The new legendKeyString value
-
getLegendKeyString
Returns the legendKeyString attribute of the FunctionGraphsJPanel object- Returns:
- The legendKeyString value
-
setLegendPosition
public void setLegendPosition(int legendPosition) Sets the legendPosition attribute of the FunctionGraphsJPanel object- Parameters:
legendPosition- The new legendPosition value
-
setLegendFont
Sets the legendFont attribute of the FunctionGraphsJPanel object- Parameters:
fnt- The new legendFont value
-
setLegendColor
Sets the legendColor attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new legendColor value
-
setLegendBackground
Sets the legendBackground attribute of the FunctionGraphsJPanel object- Parameters:
cl- The new legendBackground value
-
paintComponent
Description of the Method- Overrides:
paintComponentin classJComponent- Parameters:
g- Description of the Parameter
-
refreshGraphJPanel
public void refreshGraphJPanel()Update data and the graph panel -
getScreenX
public int getScreenX(double x) Returns the screenX attribute of the FunctionGraphsJPanel object- Parameters:
x- Description of the Parameter- Returns:
- The screenX value
-
getScreenY
public int getScreenY(double y) Returns the screenY attribute of the FunctionGraphsJPanel object- Parameters:
y- Description of the Parameter- Returns:
- The screenY value
-
mouseClicked
Description of the Method- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
e- Description of the Parameter
-
mousePressed
Description of the Method- Specified by:
mousePressedin interfaceMouseListener- Parameters:
e- Description of the Parameter
-
mouseReleased
Description of the Method- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
e- Description of the Parameter
-
mouseEntered
Description of the Method- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
e- Description of the Parameter
-
mouseExited
Description of the Method- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
e- Description of the Parameter
-
mouseDragged
Description of the Method- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
e- Description of the Parameter
-
mouseMoved
Description of the Method- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
e- Description of the Parameter
-