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 class
Description of the ClassNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The static field that defines HORIZONTAL line on a graph panelstatic final int
The constant defining the legend position at the arbitrary place of the graph panelstatic final int
The constant defining the legend position at the bottom left corner of the graph panelstatic final int
The constant defining the legend position at the bottom right corner of the graph panelstatic final int
The constant defining the legend position at the top left corner of the graph panelstatic final int
The constant defining the legend position at the top right corner of the graph panelprotected static final String
static final int
The 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_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a feature to the ChooseListener attribute of the FunctionGraphsJPanel objectvoid
addCurveData
(Vector<? extends CurveData> cdV) Adds a feature to the CurveData attribute of the FunctionGraphsJPanel objectvoid
addCurveData
(CurveData curveData) Adds a feature to the CurveData attribute of the FunctionGraphsJPanel objectvoid
addDraggedHorLinesListener
(ActionListener draggedHorLinesListenerIn) Adds a feature to the DraggedHorLinesListener attribute of the FunctionGraphsJPanel objectvoid
addDraggedVerLinesListener
(ActionListener draggedVerLinesListenerIn) Adds a feature to the DraggedVerLinesListener attribute of the FunctionGraphsJPanel objectvoid
addGraphData
(Vector<? extends BasicGraphData> gdV) Adds all BasicGraphData instances in the vector to the graph panel.int
Adds a BasicGraphData instance to the graph panelint
addHorizontalLine
(double y) Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel objectint
addHorizontalLine
(double y, Color cl) Adds a feature to the HorizontalLine attribute of the FunctionGraphsJPanel objectvoid
Adds a feature to the HorLimitsListener attribute of the FunctionGraphsJPanel objectvoid
Adds a feature to the VerLimitsListener attribute of the FunctionGraphsJPanel objectint
addVerticalLine
(double x) Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel objectint
addVerticalLine
(double x, Color cl) Adds a feature to the VerticalLine attribute of the FunctionGraphsJPanel objectvoid
Description 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 objectdouble
Returns the currentMaxX attribute of the FunctionGraphsJPanel objectdouble
Returns the currentMaxY attribute of the FunctionGraphsJPanel objectdouble
Returns the currentMinX attribute of the FunctionGraphsJPanel objectdouble
Returns the currentMinY attribute of the FunctionGraphsJPanel objectgetCurveData
(int i) Returns the curveData attribute of the FunctionGraphsJPanel objectint
Returns 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 objectboolean
Returns the gridLinesVisibleX attribute of the FunctionGraphsJPanel objectboolean
Returns the gridLinesVisibleY attribute of the FunctionGraphsJPanel objectdouble
getHorizontalValue
(int index) Returns the horizontalValue attribute of the FunctionGraphsJPanel objectReturns the horLimitsListeners attribute of the FunctionGraphsJPanel objectdouble
Returns the innerMaxX attribute of the FunctionGraphsJPanel objectdouble
Returns the innerMaxY attribute of the FunctionGraphsJPanel objectdouble
Returns the innerMinX attribute of the FunctionGraphsJPanel objectdouble
Returns 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 objectint
Returns the numberOfHorizontalLines attribute of the FunctionGraphsJPanel objectint
Returns the number of BasicGraphData objects on this graph panelint
Returns the numberOfVerticalLines attribute of the FunctionGraphsJPanel objectint
Returns 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 objectint
getScreenX
(double x) Returns the screenX attribute of the FunctionGraphsJPanel objectint
getScreenY
(double y) Returns the screenY attribute of the FunctionGraphsJPanel objectReturns the verLimitsListeners attribute of the FunctionGraphsJPanel objectdouble
getVerticalValue
(int index) Returns the verticalValue attribute of the FunctionGraphsJPanel objectboolean
Returns the legendVisible attribute of the FunctionGraphsJPanel objectvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodprotected void
Description of the Methodvoid
Update data and the graph panelvoid
Description of the Methodvoid
Removes all BasicGraphData instances from the graph panelvoid
Description of the Methodvoid
removeCurveData
(int i) Description of the Methodvoid
removeCurveData
(CurveData curveData) Description of the Methodvoid
removeGraphData
(int index) Removes a BasicGraphData instance with a particular index from the graph panelvoid
removeGraphData
(Vector<? extends BasicGraphData> gdV) Removes all BasicGraphData instances in the vector from the graph panelvoid
Removes a BasicGraphData instance from the graph panelvoid
removeHorizontalValue
(int index) Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
removeVerticalValue
(int index) Description of the Methodvoid
Description of the Methodvoid
Description of the Methodvoid
setAxisNameColorX
(Color clX) Sets the axisNameColorX attribute of the FunctionGraphsJPanel objectvoid
setAxisNameColorY
(Color clY) Sets the axisNameColorY attribute of the FunctionGraphsJPanel objectvoid
setAxisNameFontX
(Font fnX) Sets the axisNameFontX attribute of the FunctionGraphsJPanel objectvoid
setAxisNameFontY
(Font fnY) Sets the axisNameFontY attribute of the FunctionGraphsJPanel objectvoid
setAxisNames
(String nameX, String nameY) Sets the axisNames attribute of the FunctionGraphsJPanel objectvoid
setAxisNameX
(String nameX) Sets the axisNameX attribute of the FunctionGraphsJPanel objectvoid
setAxisNameY
(String nameY) Sets the axisNameY attribute of the FunctionGraphsJPanel objectvoid
setBorderBackGroundColor
(Color bkgBorderAreaColor) Sets the borderBackGroundColor attribute of the FunctionGraphsJPanel objectvoid
setChooseModeButtonVisible
(boolean vs) Sets the chooseModeButtonVisible attribute of the FunctionGraphsJPanel objectvoid
Sets the choosingGraphMode attribute of the FunctionGraphsJPanel objectvoid
setColorSurfaceData
(ColorSurfaceData colorSurfaceData) Sets ColorSurfaceData object that will be plotted on the graph panelvoid
setCurveData
(Vector<? extends CurveData> cdV) Sets the curveData attribute of the FunctionGraphsJPanel objectvoid
Sets the displayGraphMode attribute of the FunctionGraphsJPanel objectvoid
setDraggedHorLinesMotionListen
(boolean draggedHorLinesMotionListenYesIn) Sets the draggedHorLinesMotionListen attribute of the FunctionGraphsJPanel objectvoid
setDraggedVerLinesMotionListen
(boolean draggedVerLinesMotionListenYesIn) Sets the draggedVerLinesMotionListen attribute of the FunctionGraphsJPanel objectvoid
setDraggingHorLinesGraphMode
(boolean dragLinesModeYes) Sets the draggingHorLinesGraphMode attribute of the FunctionGraphsJPanel objectvoid
setDraggingVerLinesGraphMode
(boolean dragLinesModeYes) Sets the draggingVerLinesGraphMode attribute of the FunctionGraphsJPanel objectvoid
Sets the GridLimits object to the graph panel as an external grid limitsvoid
setGraphBackGroundColor
(Color bkgGraphAreaColor) Sets the graphBackGroundColor attribute of the FunctionGraphsJPanel objectboolean
setGraphColor
(int index, Color color) Sets the graphColor attribute of the FunctionGraphsJPanel objectvoid
setGraphData
(Vector<? extends BasicGraphData> gdV) Sets all BasicGraphData instances in the vector to the graph panel.void
setGraphLineChoosenColor
(Color color) Sets the graphLineChoosenColor attribute of the FunctionGraphsJPanel objectvoid
setGraphsDefaultColor
(Color color) Sets the graphsDefaultColor attribute of the FunctionGraphsJPanel objectvoid
setGridLineColor
(Color gridLineColor) Sets the grid lines color of the FunctionGraphsJPanel.void
setGridLinesVisibleX
(boolean vsbl) Sets the gridLinesVisibleX attribute of the FunctionGraphsJPanel objectvoid
setGridLinesVisibleY
(boolean vsbl) Sets the gridLinesVisibleY attribute of the FunctionGraphsJPanel objectvoid
setHorizontalLineColor
(Color cl, int index) Sets the horizontalLineColor attribute of the FunctionGraphsJPanel objectvoid
setHorizontalLineValue
(double y, int index) Sets the horizontalLineValue attribute of the FunctionGraphsJPanel objectvoid
setHorLinesButtonVisible
(boolean vs) Sets the horLinesButtonVisible attribute of the FunctionGraphsJPanel objectvoid
Sets the legendBackground attribute of the FunctionGraphsJPanel objectvoid
setLegendButtonVisible
(boolean vs) Sets the legendButtonVisible attribute of the FunctionGraphsJPanel objectvoid
setLegendColor
(Color cl) Sets the legendColor attribute of the FunctionGraphsJPanel objectvoid
setLegendFont
(Font fnt) Sets the legendFont attribute of the FunctionGraphsJPanel objectvoid
setLegendKeyString
(String legendKeyString) Sets the legendKeyString attribute of the FunctionGraphsJPanel objectvoid
setLegendPosition
(int legendPosition) Sets the legendPosition attribute of the FunctionGraphsJPanel objectvoid
setLegendVisible
(boolean vs) Sets the legendVisible attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksX
(double vMin, double vMax, double step) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksX
(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksX
(double vMin, double step, int nStep) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksX
(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksX attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksY
(double vMin, double vMax, double step) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksY
(double vMin, double vMax, double step, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksY
(double vMin, double step, int nStep) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoid
setLimitsAndTicksY
(double vMin, double step, int nStep, int nMinorTicksIn) Sets the limitsAndTicksY attribute of the FunctionGraphsJPanel objectvoid
setMakrsScaleX
(double numbMarkScaleXin) Sets the makrsScaleX attribute of the FunctionGraphsJPanel objectvoid
setMakrsScaleY
(double numbMarkScaleYin) Sets the makrsScaleY attribute of the FunctionGraphsJPanel objectvoid
Sets the name attribute of the FunctionGraphsJPanel objectvoid
setNameColor
(Color cl) Sets the nameColor attribute of the FunctionGraphsJPanel objectvoid
setNameFont
(Font fn) Sets the nameFont attribute of the FunctionGraphsJPanel objectvoid
setNumberColor
(Color cl) Sets the numberColor attribute of the FunctionGraphsJPanel objectvoid
setNumberFont
(Font fn) Sets the numberFont attribute of the FunctionGraphsJPanel objectvoid
Sets the numberFormatX attribute of the FunctionGraphsJPanel objectvoid
Sets the numberFormatY attribute of the FunctionGraphsJPanel objectvoid
setOffScreenImageDrawing
(boolean offScreenImageOnIn) Sets the offScreenImageDrawing attribute of the FunctionGraphsJPanel objectvoid
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 panelvoid
setVerLinesButtonVisible
(boolean vs) Sets the verLinesButtonVisible attribute of the FunctionGraphsJPanel objectvoid
setVerticalLineColor
(Color cl, int index) Sets the verticalLineColor attribute of the FunctionGraphsJPanel objectvoid
setVerticalLineValue
(double x, int index) Sets the verticalLineValue attribute of the FunctionGraphsJPanel objectvoid
xMarkersOn
(boolean gridXmarkerOnIn) Description of the Methodvoid
yMarkersOn
(boolean gridYmarkerOnIn) Description of the MethodMethods 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, 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, 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, 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:
paintComponent
in 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:
mouseClicked
in interfaceMouseListener
- Parameters:
e
- Description of the Parameter
-
mousePressed
Description of the Method- Specified by:
mousePressed
in interfaceMouseListener
- Parameters:
e
- Description of the Parameter
-
mouseReleased
Description of the Method- Specified by:
mouseReleased
in interfaceMouseListener
- Parameters:
e
- Description of the Parameter
-
mouseEntered
Description of the Method- Specified by:
mouseEntered
in interfaceMouseListener
- Parameters:
e
- Description of the Parameter
-
mouseExited
Description of the Method- Specified by:
mouseExited
in interfaceMouseListener
- Parameters:
e
- Description of the Parameter
-
mouseDragged
Description of the Method- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Parameters:
e
- Description of the Parameter
-
mouseMoved
Description of the Method- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Parameters:
e
- Description of the Parameter
-