public final class InspcCurveView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) GralUserAction |
actionBoldSelected |
GralUserAction |
actionColorSelectorOpen |
GralColorSelector.SetColorIfc |
actionColorSet |
(package private) GralUserAction |
actionDeleteVariable |
(package private) GralUserAction |
actionEnterFile
Action for Enter the file.
|
GralUserAction |
actionFocusScaling |
(package private) GralUserAction |
actionInsertVariable |
GralUserAction |
actionKeyHandlingTable |
(package private) GralUserAction |
actionOnOffTrack |
(package private) GralUserAction |
actionOpenFileDialog |
(package private) GralUserAction |
actionOpenWindow
Adds an info block to the request telegram to get values.
|
(package private) GralUserAction |
actionReadCfg |
(package private) GralUserAction |
actionReadValues |
(package private) GralUserAction |
actionReplaceVariable
This action will be called if the mouse is pressed on the drop field.
|
(package private) GralUserAction |
actionScaleFromMarkedTrack |
(package private) GralUserAction |
actionSelectFile
Action invoked for any selected file.
|
(package private) GralUserAction |
actionSelectOrChgVarPath
called if The text field was entered with mouse
or the focus lost on a changed variable path field.
|
(package private) GralUserAction |
actionSelectVariableInTable
called if The text field was entered with mouse
or the focus lost on a changed variable path field.
|
(package private) GralUserAction |
actionSetScaleValues2Track |
(package private) GralUserAction |
actionShareScale |
(package private) GralUserAction |
actionShiftVariable |
GralUserAction |
actionShowCursorValues |
(package private) GralUserAction |
actionSwapVariable |
GralUserAction |
actionTrackSelectedFromGralCurveViewCtrlMousePressed |
(package private) GralUserAction |
actionUnshareScale |
(package private) GralColor |
colorBlack |
(package private) GralColor |
colorBtnFileActive |
(package private) GralColor |
colorBtnFileInactive |
private static java.lang.String[] |
colorCurveDefault |
(package private) GralColorSelector |
colorSelector
Common ColorSelector for all curve views.
|
(package private) GralColor |
colorTrackNotShown |
(package private) GralColor |
colorTrackNotShownSelected |
(package private) GralColor |
colorTrackOtherScale |
(package private) GralColor |
colorTrackOtherScaleSelected |
(package private) GralColor |
colorTrackSameScale |
(package private) GralColor |
colorTrackSameScaleSelected |
private java.util.Map<java.lang.String,java.lang.String> |
curveExporterClasses |
(package private) FileRemote |
fileCurveCfg
The currently loaded file for curve settings.
|
(package private) FileRemote |
fileCurveData |
(package private) GralMng |
gralMng |
(package private) int |
ixTrackScale |
(package private) java.util.List<GralFileSelector.FavorPath> |
listCfgFavors
A list with some favor paths for cfg files.
|
(package private) java.util.List<GralFileSelector.FavorPath> |
listDataFavors
A list with some favor paths for data files.
|
static java.lang.String |
sBtnReadCfg |
static java.lang.String |
sBtnReadValues |
static java.lang.String |
sBtnSaveCfg |
static java.lang.String |
sBtnSaveValues |
(package private) GralTextField |
scalingWidg
|
(package private) StringFormatter |
sFormatter
Temporary used formatter.
|
(package private) java.lang.String |
sHelpDir |
protected java.lang.String |
sName |
static java.lang.String |
sVersion
Version, history and license.
|
private java.lang.String |
sWhatTodoWithFile |
(package private) GralCurveViewTrack_ifc |
trackScale
The input field which is the current scaling field.
|
(package private) VariableContainer_ifc |
variables |
(package private) GralButton |
wdgButtonAutosave |
(package private) GralButton |
widgBtnColor |
(package private) GralButton |
widgBtnDn |
(package private) GralButton |
widgBtnHelp |
(package private) GralButton |
widgBtnOff |
(package private) GralButton |
widgBtnReadCfg |
(package private) GralButton |
widgBtnReadValues |
(package private) GralButton |
widgBtnSaveCfg |
(package private) GralButton |
widgBtnSaveValues |
(package private) GralButton |
widgBtnScale |
(package private) GralButton |
widgBtnUp |
(package private) GralCurveView |
widgCurve |
private GralTextField |
widgFilename
Shows the name and input name for read/write config and data.
|
private GralFileSelector |
widgFileSelector
Used for read/write config and for read/write data
|
(package private) GralTextField |
widgline0 |
(package private) GralTextField |
widgScale |
(package private) GralTextField |
widgScale0 |
(package private) GralTable<GralCurveViewTrack_ifc> |
widgTableVariables |
(package private) GralTextField |
widgValCursorLeft |
(package private) GralTextField |
widgValCursorRight |
(package private) GralTextField |
widgValdTime |
(package private) GralWindow |
windCurve
The window for curve view.
|
(package private) GralWindow |
windVariables |
private WriteCurve_ifc |
writerCurveCsv |
Constructor and Description |
---|
InspcCurveView(java.lang.String sName,
VariableContainer_ifc variables,
GralCurveView.CommonCurve common,
TimedValues tracksValues,
GralMng gralMng,
boolean visible,
FileRemote defaultDirCfg,
FileRemote defaultDirSave,
java.lang.String sHelpDir,
java.util.Map<java.lang.String,java.lang.String> curveExporterClasses)
Creates the instance with all Gral Widgets.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
actionOpenFileDialog_i(GralWidget_ifc widgd) |
(package private) boolean |
actionReadCfg(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params) |
(package private) void |
actionReadValues(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params)
Action invoked if the read file was selected in the
GralFileSelectWindow |
(package private) void |
actionSaveCfg(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params) |
(package private) void |
actionSaveValues(int actionCode,
GralWidget_ifc widgd,
java.lang.Object... params)
Action invoked if the write file was selected in the
GralFileSelectWindow |
(package private) void |
actionShowCursorValues(GralCurveViewTrack_ifc track)
Show the values of the given track in the
widgValCursorLeft and -Right |
void |
buildGraphic(GralColorSelector colorSelector,
GralCurveView.CommonCurve common,
TimedValues tracksValues)
Builds the graphic, it should be called only one time on startup in the graphic thread
|
protected void |
chgSelectedTrack(GralCurveViewTrack_ifc trackNew) |
protected boolean |
deleteVariable(int actionCode,
GralWidget widgd,
boolean bInsert) |
protected boolean |
dropVariable(int actionCode,
GralWidget widgd,
boolean bInsert) |
(package private) void |
fillTableTracks() |
protected void |
readCurve(java.io.File file)
Reads a curve ///
|
(package private) void |
refreshCurve() |
protected void |
saveCurve(GralCurveView_ifc.ModeWrite mode)
Saves a curve ///
|
(package private) void |
setDatapath(GralTable.TableLineData line,
java.lang.String sDatapath) |
void |
showWindow(boolean bShow)
Shows the window if it is deactivated or deactivates the presentation of the Window.
|
void |
stepSaveCurve()
Step routine to save a curve.
|
public static final java.lang.String sVersion
#windFileSelector
is now an extra window, hence some changes necessary. Yet not all done.
actionSelectVariableInTable
:
repaint after 500 ms without forced repaint instead 100 ms, then variables in the table can be selected fastly.
actionBoldSelected
You can mark some lines in this table, then this curves are repaint with 3 thickness.
This is proper for example to get a print result.
actionSelectVariableInTable
:
It shows the values on cursor for this variable immediately. Very helpfull extension.
fileCurveData
instead dirCurveSave,
actionOpenFileDialog_i(GralWidget_ifc)
called in the actionOpenFileDialog
.
actionReadValues(int, GralWidget_ifc, Object...)
stores the file, not the directory in fileCurveData
to show the same file later again (as also completed in GralFileSelector
.
GralCurveViewTrack_ifc
which refers a GralCurveView.Track
.
fillTableTracks()
, content from actionReadCfg(int, GralWidget_ifc, Object...)
but also invoked in actionReadValues(int, GralWidget_ifc, Object...)
. That may add tracks.
GralTable.getCellTextFocus()
is called to get the datapath as text. This is a new line, it is added.
Therewith now it is easy to add lines to an empty table via path in clibboard.
#actionTrackSelected
with ctrl and left mouse pressed
actionSwapVariable
, actionShiftVariable
actionSwapVariable
, actionSelectOrChgVarPath
GralFileSelectWindow
TrackValues#trackView
is the reference to the track in the
GralCurveView
instance. If a new config is loaded all tracks in GralCurveView.getTrackInfo()
are created newly using GralCurveView.addTrack(String, String, GralColor, int, int, float, float)
.
Therefore the TrackValues#trackView
should be updated.
GralCurveView
in a special window
with the communication in InspcMng
.
public static java.lang.String sBtnReadCfg
public static java.lang.String sBtnSaveCfg
public static java.lang.String sBtnReadValues
public static java.lang.String sBtnSaveValues
protected final java.lang.String sName
private final java.util.Map<java.lang.String,java.lang.String> curveExporterClasses
private final WriteCurve_ifc writerCurveCsv
GralWindow windCurve
GralWindow windVariables
private final GralFileSelector widgFileSelector
private java.lang.String sWhatTodoWithFile
private final GralTextField widgFilename
final GralMng gralMng
java.util.List<GralFileSelector.FavorPath> listDataFavors
java.util.List<GralFileSelector.FavorPath> listCfgFavors
final VariableContainer_ifc variables
private static final java.lang.String[] colorCurveDefault
GralCurveViewTrack_ifc trackScale
int ixTrackScale
final GralColor colorBlack
GralColor colorTrackSameScale
GralColor colorTrackSameScaleSelected
GralColor colorTrackOtherScaleSelected
GralColor colorTrackOtherScale
GralColor colorTrackNotShown
GralColor colorTrackNotShownSelected
GralColor colorBtnFileActive
GralColor colorBtnFileInactive
GralTable<GralCurveViewTrack_ifc> widgTableVariables
GralTextField widgScale
GralTextField widgScale0
GralTextField widgline0
GralTextField scalingWidg
widgScale0
, widgScale0
or widgline0
which was focused lastly.
To use for [+] and [-] button.GralTextField widgValCursorLeft
GralTextField widgValCursorRight
GralTextField widgValdTime
GralButton widgBtnHelp
GralButton widgBtnUp
GralButton widgBtnDn
GralButton widgBtnScale
GralButton widgBtnReadCfg
GralButton widgBtnSaveCfg
GralButton widgBtnReadValues
GralButton widgBtnSaveValues
GralButton wdgButtonAutosave
GralButton widgBtnColor
GralButton widgBtnOff
FileRemote fileCurveCfg
FileRemote fileCurveData
final java.lang.String sHelpDir
StringFormatter sFormatter
GralColorSelector colorSelector
GralCurveView widgCurve
GralUserAction actionOpenWindow
GralUserAction actionReplaceVariable
GralMng.getLastClickedWidget()
is used to detect
which show field was clicked last.GralUserAction actionDeleteVariable
GralUserAction actionBoldSelected
GralUserAction actionOnOffTrack
GralUserAction actionInsertVariable
public GralUserAction actionKeyHandlingTable
GralUserAction actionSwapVariable
GralUserAction actionShiftVariable
GralUserAction actionShareScale
GralUserAction actionUnshareScale
GralUserAction actionSetScaleValues2Track
GralUserAction actionScaleFromMarkedTrack
GralUserAction actionSelectVariableInTable
GralUserAction actionSelectOrChgVarPath
GralUserAction actionReadCfg
GralUserAction actionReadValues
GralUserAction actionOpenFileDialog
GralUserAction actionSelectFile
GralUserAction actionEnterFile
public GralUserAction actionFocusScaling
public GralUserAction actionColorSelectorOpen
public GralColorSelector.SetColorIfc actionColorSet
public GralUserAction actionShowCursorValues
public GralUserAction actionTrackSelectedFromGralCurveViewCtrlMousePressed
public InspcCurveView(java.lang.String sName, VariableContainer_ifc variables, GralCurveView.CommonCurve common, TimedValues tracksValues, GralMng gralMng, boolean visible, FileRemote defaultDirCfg, FileRemote defaultDirSave, java.lang.String sHelpDir, java.util.Map<java.lang.String,java.lang.String> curveExporterClasses)
sName
- Name shown in title bar, can also contain a posString syntax ::=[@variables
- Container to find variablesgralMng
- The Gral Graphic ManagerdefaultDir
- curveExporterClasses
- Class which is used to export curves.public void buildGraphic(GralColorSelector colorSelector, GralCurveView.CommonCurve common, TimedValues tracksValues)
wind
- The main window where the menu to open will be addedsName
- The name, used for menu entry too, sample "curve A"public void showWindow(boolean bShow)
bShow
- false then deactivate.void fillTableTracks()
void refreshCurve()
protected boolean dropVariable(int actionCode, GralWidget widgd, boolean bInsert)
protected boolean deleteVariable(int actionCode, GralWidget widgd, boolean bInsert)
void setDatapath(GralTable.TableLineData line, java.lang.String sDatapath)
public void stepSaveCurve()
protected void readCurve(java.io.File file)
protected void saveCurve(GralCurveView_ifc.ModeWrite mode)
void actionOpenFileDialog_i(GralWidget_ifc widgd)
boolean actionReadCfg(int actionCode, GralWidget_ifc widgd, java.lang.Object... params)
void actionSaveCfg(int actionCode, GralWidget_ifc widgd, java.lang.Object... params)
void actionReadValues(int actionCode, GralWidget_ifc widgd, java.lang.Object... params)
GralFileSelectWindow
void actionSaveValues(int actionCode, GralWidget_ifc widgd, java.lang.Object... params)
GralFileSelectWindow
void actionShowCursorValues(GralCurveViewTrack_ifc track)
widgValCursorLeft
and -Righttrack
- from this trackprotected void chgSelectedTrack(GralCurveViewTrack_ifc trackNew)