public interface GralCurveView_ifc extends GralWidget_ifc, GralSetValue_ifc, GetGralWidget_ifc
Modifier and Type | Interface and Description |
---|---|
static class |
GralCurveView_ifc.ModeWrite |
GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
syntaxSettings
The ZBNF-syntax of a setting for curve view.
|
static int |
version
Version, history and license.
|
sVersion
Modifier and Type | Method and Description |
---|---|
void |
activate(boolean activate)
Activates or deactivates.
|
boolean |
applySettings(java.lang.String in)
Applies the settings from the given String (maybe read from a file)
and sets all tracks newly.
|
boolean |
isActiv()
Returns true if the curve view is active.
|
boolean |
isFreezed()
Returns true if the curve view is active but freezed in presentation.
|
void |
setSample(float[] values,
int timeShort,
int timeShortAdd)
Adds a sampling value set.
|
void |
setTimePoint(long date,
int timeshort,
float millisecPerTimeshort)
Sets a point of absolute time.
|
java.lang.CharSequence |
timeInitAutoSave()
Initializes an auto-save data write process.
|
void |
writeCurve(WriteCurve_ifc out,
GralCurveView_ifc.ModeWrite mode)
Writes the curve to the given interface, it is an exporter class.
|
void |
writeSettings(java.lang.Appendable out)
Writes the settings of the curve view in an output, maybe a file.
|
getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getImplWidget, isChanged, isEditable, isGraphicDisposed, isNotEditableOrShouldInitialize, redraw, redraw, refreshFromVariable, refreshFromVariable, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setText, setTextColor
getFocusedWidget, getImplAccess, getName, gralMng, isInFocus, isVisible, pos, setFocus, setFocused, setFocusedWidget, setVisible
getContentInfo, getDataIx, getDataPath, setContentInfo, setDataIx, setDataPath, setLongValue, setMinMax, setText, setValue, setValue
getGralWidget
static final int version
applySettings(String)
and writeSettings(Appendable)
for saving
and getting the configuration of curve view from a file or another text.
GralCurveView
.
Approach: The capabilities should be described by an interface. Yet only 1 method.
static final java.lang.String syntaxSettings
void setSample(float[] values, int timeShort, int timeShortAdd)
values
- The values.timeShort
- relative time-stamp as currently wrapping time in any user step width, for example milliseconds.timeShortAdd
- additional value for timeShort to refer to an absolute time stamp.setTimePoint(long, int, float)
void setTimePoint(long date, int timeshort, float millisecPerTimeshort)
date
- The absolute time appropriate to the timeshort value.timeshort
- The wrapping short time at this moment of data.millisecPerTimeshort
- Number of milliseconds per step of timeshort.void activate(boolean activate)
activate
- true to activate, false to deactivate.boolean isActiv()
activate(boolean)
.boolean isFreezed()
java.lang.CharSequence timeInitAutoSave()
writeCurve(WriteCurve_ifc, org.vishia.gral.ifc.GralCurveView_ifc.ModeWrite)
with GralCurveView_ifc.ModeWrite.autoSave
can be done with this current time range.void writeCurve(WriteCurve_ifc out, GralCurveView_ifc.ModeWrite mode)
out
- exporter class referencemode
- autosave: Then the data range from timeInitAutoSave()
is used.
currentView: Then the data range visible in window will be used.boolean applySettings(java.lang.String in)
in
- Input, syntax see syntaxSettings
void writeSettings(java.lang.Appendable out)
applySettings(String)
.out
- any output stream.