public interface GralCurveViewTrack_ifc extends GralSetValue_ifc
org.vishia.gral.widget.GralCurveView,
,
GralCurveView_ifc
Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataPath()
Changes the data path
|
GralColor |
getLineColor()
Returns the set color for this line.
|
int |
getLinePercent()
Returns the position of the 0-line as value from 0 to 100 for this track.
|
float |
getOffset()
Returns the value which is shown at the 0-line.
|
float |
getScale7div()
Returns the scaling per division.
|
float |
getValueCursorLeft() |
float |
getValueCursorRight() |
float |
getValueLast() |
float |
getValueMax() |
float |
getValueMin() |
int |
getVisible()
Returns the state to show. 0=hidden, don't show, but the values are stored.
1= show normal. 2= show lifted out (selected).
|
void |
groupTrackScale(GralCurveViewTrack_ifc from)
Refers the same instance
GralCurveView.TrackScale with the other track. |
boolean |
isGroupedTrackScale(GralCurveViewTrack_ifc with)
Checks whether the scaling is shared with the other given thread
|
void |
setDataPath(java.lang.String path)
Sets the data path.
|
void |
setLineProperties(GralColor color,
int width,
int pattern)
Sets the properties for this track.
|
void |
setTrackScale(float scale7div,
float offset,
int line0)
Change the scaling of a track.
|
void |
setVisible(int mode)
Set the state to show. 0=hidden, don't show, but the values are stored.
1= show normal. 2= show lifted out (selected).
|
void |
ungroupTrackScale()
Creates an own instance for the scaling values.
|
getContentInfo, getDataIx, setContentInfo, setDataIx, setLongValue, setMinMax, setText, setValue, setValue
static final int version
getValueCursorLeft()
#getIxTrack()
getDataPath()
, used to write settings.
#setLineProperties(GralColor, int)
instead setLineColor()
setDataPath(String)
GralCurveView.Track
.
Approach: Accessibility. The class Track is protected. Its details should only be used
for implementation and inside GralCurveView
float getScale7div()
float getOffset()
int getLinePercent()
GralColor getLineColor()
java.lang.String getDataPath()
GralSetValue_ifc
getDataPath
in interface GralSetValue_ifc
void setTrackScale(float scale7div, float offset, int line0)
trackNr
- Number of the track in order of creation, 0 ist the first.scale7div
- value per divisionoffset
- value, which is shown at line0line0
- percent of 0-line in graphic.void groupTrackScale(GralCurveViewTrack_ifc from)
GralCurveView.TrackScale
with the other track.
All setTrackScale(float, float, int)
with tracks which are shared influences one another.from
- one of the track of a scale group.boolean isGroupedTrackScale(GralCurveViewTrack_ifc with)
with
- The other track.void ungroupTrackScale()
void setLineProperties(GralColor color, int width, int pattern)
color
- The color of line, null: no changewidth
- The thickness of the line. 0: no changepattern
- a Pattern of the line. Yet the pattern is not used (TODO). Value 0 doesn't change the current one.void setVisible(int mode)
int getVisible()
void setDataPath(java.lang.String path)
GralSetValue_ifc
setDataPath
in interface GralSetValue_ifc
float getValueCursorLeft()
float getValueCursorRight()
float getValueLast()
float getValueMin()
float getValueMax()