public class GPlotPanel extends GPanel implements GListener, GReadWrite
Index | Class | Item | Constraint |
0 | GButton | searchButton | (null) |
1 | GLabel | fileLabel | (null) |
2 | GButton | addPlotPanelButton | (null) |
3 | GCheckBox | fnameInTitleCheckbox | (null) |
4 | GComboBoxWithLabel | xComboBox | 4, 0, 0 => "newline , split 6" 4, 0, 1 => (null) 4, 1 => (null) |
5 | GComboBoxWithLabel | yComboBox | 5, 0, 0 => (null) 5, 0, 1 => (null) 5, 1 => (null) |
6 | GCheckBoxWithIndicator | secondaryAxeCheckbox | 6, 0, 0
=> "split" 6, 0, 1 => (null) 6, 1 => "pushx , skip 1" |
7 | GColorChooser | colorButton | "growy , wmin 20" |
8 | GButton | addPlotButton | (null) |
9 | GButton | delPlotButton | (null) |
10 | GButton | clearPlotButton | (null) |
11 | GCheckBoxWithIndicator | showLeggendCheckbox | 11, 0, 0 =>
"newline , pushy , split , aligny Bottom" 11, 0, 1 => (null) 11, 1 => "aligny Bottom" |
GPanel.Panel, GPanel.ScrollBarVisibility
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GPlotPanel()
Constructor by default
|
GPlotPanel(String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled)
Deprecated.
This Constructor is no longer acceptable
|
GPlotPanel(String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled,
boolean searchButtonAdditionalEnabled)
Deprecated.
This Constructor is no longer acceptable
|
GPlotPanel(String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled,
GPlotDataReaderInterface dataReaderInterface)
Constructor.
|
GPlotPanel(String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled,
GPlotDataReaderInterface dataReaderInterface,
boolean searchButtonAdditionalEnabled)
Constructor.
|
GPlotPanel(String widgetId,
String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled)
Deprecated.
This Constructor is no longer acceptable
|
GPlotPanel(String widgetId,
String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled,
GPlotDataReaderInterface dataReaderInterface)
Constructor.
|
GPlotPanel(String widgetId,
String prefix,
String suffix,
String description,
int maxDetachedPlots,
boolean searchButtonEnabled,
GPlotDataReaderInterface dataReaderInterface,
boolean searchButtonAdditionalEnabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
after(GEvent e)
Called after the event is processed.
|
void |
after2(GEvent e)
Deported for some checkstyle reason.
|
void |
afterAdditionalElements(GEvent e)
Called after the event is processed for GUI elements conected to additional files
|
void |
before(GEvent e)
Called before the event is processed.
|
void |
clearSelectedDispFiles()
Clear dispersed file list
|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
void |
generic()
Abstract generic function that need to be implemented by the descendants.
|
List<GDetachedPlotPanel> |
getDetachedPlotList()
Get the detached plot list
|
GFreeChartXY |
getGFreeChartXY()
getter to retrieve GFreeChartXY
|
GFreeChartXY |
getGFreeChartXYRel()
getter to retrieve relative GFreeChartXY
|
GFreeChartXY.GFreeChartXYItem |
getItemCoordinates()
Method to get the coordinates of a drawn point.
|
GFreeChartXY.GFreeChartXYItem |
getPlaneCoordinates(boolean isSecondaryAxis)
Method to get the coordinates of the click regardless where the click is.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
boolean |
isDisplayingSerie()
checks the existence of a displaying chart
|
boolean |
isInteractive()
Method to know if the interactive mode is activated
|
void |
read()
Implementaion of the routines that allow the component to be loaded from a configuration file.
|
void |
setCalculatorMode(boolean flag)
Set the enable status of the Calculator mode.
|
void |
setDatasetPlotProperties(String datasetId,
Shape shape,
String tooltipColumnName)
Set the plot properties for a certain dataset.
|
protected void |
setDefaultConstraints()
set the defaults constraints
|
void |
setSelectedDispFiles(File[] selectedFilesTab)
Set the selected dispersed files.
|
void |
setSelectedFile(File selectedFile)
Set the selected file.
|
protected void |
setSelectedFileAnnex(File selectedFile)
Method called detached plot panel is called.
|
protected void |
updateButtons()
Update the status of the buttons.
|
void |
updateWithNewVar(List<ColumnInfo> info,
List<Double[]> newData)
Private method to update data thanks to a new variable.
|
void |
write()
Implementaion of the routines that allow the component to be saved to a configuration file.
|
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unput
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPlotPanel()
@Deprecated public GPlotPanel(String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled)
prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.@Deprecated public GPlotPanel(String widgetId, String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled)
widgetId
- widget identifier.prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.public GPlotPanel(String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled, GPlotDataReaderInterface dataReaderInterface, boolean searchButtonAdditionalEnabled)
prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.dataReaderInterface
- interface object that shall be used to read the plot data from the
file.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.searchButtonAdditionalEnabled
- true if the search/open additional files button is
enabled, false otherwise.public GPlotPanel(String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled, GPlotDataReaderInterface dataReaderInterface)
prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.dataReaderInterface
- interface object that shall be used to read the plot data from the
file.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.public GPlotPanel(String widgetId, String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled, GPlotDataReaderInterface dataReaderInterface)
widgetId
- widget identifier.prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.dataReaderInterface
- interface object that shall be used to read the plot data from the
file.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.@Deprecated public GPlotPanel(String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled, boolean searchButtonAdditionalEnabled)
prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.searchButtonAdditionalEnabled
- true if the search/open additional files button is
enabled, false otherwise.public GPlotPanel(String widgetId, String prefix, String suffix, String description, int maxDetachedPlots, boolean searchButtonEnabled, GPlotDataReaderInterface dataReaderInterface, boolean searchButtonAdditionalEnabled)
widgetId
- widget identifier.prefix
- file name prefix (could be "" or even null)suffix
- file name suffix (could be "" or even null)description
- description of this kind of files.maxDetachedPlots
- maximum number of detached plot windows. If greater than 0 a "+"
button is displayed in order to allow to display other plots in detached panels.dataReaderInterface
- interface object that shall be used to read the plot data from the
file.searchButtonEnabled
- true if the file search/open button is enabled, false otherwise.searchButtonAdditionalEnabled
- true if the search/open additional files button is
enabled, false otherwise.protected void setDefaultConstraints()
GPanel
setDefaultConstraints
in class GPanel
public List<GDetachedPlotPanel> getDetachedPlotList()
public void after(GEvent e) throws GException
after
in interface GListener
e
- processed event.GException
- in case there is a problem managing the event.public void after2(GEvent e) throws GException
e
- eventGException
- exceptionpublic void afterAdditionalElements(GEvent e) throws GException
e
- processed eventGException
- in case there is a problem managing the eventpublic void before(GEvent e) throws GException
before
in interface GListener
e
- event to processed.GException
- in case there is a problem managing the event.public void display() throws GException
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public void generic() throws GException
generic
in class GPanel
GException
- in case of problem.protected void setSelectedFileAnnex(File selectedFile) throws GPlotDataReaderException
selectedFile
- the selected fileGPlotDataReaderException
- thrown if failedprotected void updateButtons()
public void setSelectedFile(File selectedFile) throws GPlotDataReaderException
selectedFile
- the selected file.GPlotDataReaderException
- in case of problem loading the selected file.public void setCalculatorMode(boolean flag)
flag
- new enable status.public void setSelectedDispFiles(File[] selectedFilesTab) throws GPlotDataReaderException
selectedFilesTab
- the selected files array.GPlotDataReaderException
- in case of problem loading the selected file.public void clearSelectedDispFiles()
public GComponent getSubComponent(int position) throws GComponentException
getSubComponent
in class GComponent
position
- position of the requested component.GComponentException
- in case the position argument is invalid.public GFreeChartXY.GFreeChartXYItem getPlaneCoordinates(boolean isSecondaryAxis)
isSecondaryAxis
- We consider secondary axis unitspublic boolean isDisplayingSerie()
public GFreeChartXY getGFreeChartXYRel()
public GFreeChartXY getGFreeChartXY()
public GFreeChartXY.GFreeChartXYItem getItemCoordinates()
public boolean isInteractive()
public void setDatasetPlotProperties(String datasetId, Shape shape, String tooltipColumnName)
datasetId
- dataset identifier.shape
- the shape for the symbol.tooltipColumnName
- name of the column containing the tooltips.public void read() throws GException
GReadWrite
read
in interface GReadWrite
GException
- in case of problem while reading the value from file.public void write() throws GException
GReadWrite
write
in interface GReadWrite
GException
- in case of problem while writing the value to file.public void updateWithNewVar(List<ColumnInfo> info, List<Double[]> newData)
info
- new variable informationnewData
- new variable dataCopyright © 2024. All rights reserved.