public static final class GralCurveView.Track extends java.lang.Object implements GralCurveViewTrack_ifc, GralSetValue_ifc
| Modifier and Type | Field and Description |
|---|---|
private int |
dataIx
Index of a variable
|
(package private) int |
identLastSelect |
private int |
ixList
The index of the track in the List of tracks.
|
GralColor |
lineColor
The color of the line.
|
int |
lineWidth
The brightness of the line.
|
java.lang.String |
name |
private java.lang.Object |
oContent |
private GralCurveView |
outer |
GralCurveView.TrackScale |
scale
Reference to the scaling to show the track.
|
private java.lang.String |
sDataPath |
int |
showSelected
The state to show. 0=hidden, don't show, but the values are stored.
1= show normal. 2= show lifted out (selected).
|
(package private) TimedValues |
timeValues
This is also for debug access to see the time to the values.
|
TimedValues.Track |
valueTrack
Contains all values maybe in different formats double, float, int, short
and also the name of the tracke, min and max.
|
protected VariableAccess_ifc |
variable
This value is set in
GralCurveView.refreshFromVariable(VariableContainer_ifc)
after setDataPath(String) is given. |
protected int[] |
XXXlastValueY
last values for paint.
|
int |
ypixLast
The value from last draw, do not calculate twice.
|
float |
YYYactValue |
version| Constructor and Description |
|---|
Track(GralCurveView outer,
java.lang.String name,
int ixList) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContentInfo()
Gets the application specific info.
|
int |
getDataIx() |
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.
|
private float |
getValueCursor(int cursor) |
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)
Sets the scaling to sharing with another track.
|
boolean |
isGroupedTrackScale(GralCurveViewTrack_ifc with)
Checks whether the scaling is shared with the other given thread
|
void |
setContentInfo(java.lang.Object content)
Sets a application specific info.
|
void |
setDataIx(int dataIx) |
void |
setDataPath(java.lang.String sDataPath)
Sets the data path.
|
void |
setLineProperties(GralColor color,
int width,
int pattern)
Sets the properties for this track.
|
void |
setLongValue(long value)
Sets a value to show.
|
void |
setMinMax(float minValue,
float maxValue)
Maybe used for scaling, yet unused here.
|
void |
setText(java.lang.CharSequence text)
|
void |
setTrackScale(float scale7div,
float offset,
int line0)
Change the scaling of a track.
|
void |
setValue(float value)
Sets a value to show.
|
void |
setValue(java.lang.Object[] value)
Sets some values to show any content.
|
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).
|
java.lang.String |
toString() |
void |
ungroupTrackScale()
Sets the scaling to a own instance of
GralCurveView.TrackScale. |
public final java.lang.String name
final TimedValues timeValues
public final TimedValues.Track valueTrack
TimedValues#timeShortprivate final int ixList
GralCurveView#setSample(float[], int)private final GralCurveView outer
private java.lang.String sDataPath
protected VariableAccess_ifc variable
GralCurveView.refreshFromVariable(VariableContainer_ifc)
after setDataPath(String) is given.private java.lang.Object oContent
private int dataIx
public float YYYactValue
public GralCurveView.TrackScale scale
public GralColor lineColor
public int lineWidth
public int showSelected
protected final int[] XXXlastValueY
int identLastSelect
public int ypixLast
public Track(GralCurveView outer, java.lang.String name, int ixList)
public void setContentInfo(java.lang.Object content)
GralSetValue_ifcsetContentInfo in interface GralSetValue_ifcpublic java.lang.Object getContentInfo()
GralSetValue_ifcGralSetValue_ifc.setContentInfo(Object).getContentInfo in interface GralSetValue_ifcpublic void setDataPath(java.lang.String sDataPath)
GralSetValue_ifcsetDataPath in interface GralCurveViewTrack_ifcsetDataPath in interface GralSetValue_ifcpublic java.lang.String getDataPath()
GralSetValue_ifcgetDataPath in interface GralCurveViewTrack_ifcgetDataPath in interface GralSetValue_ifcpublic int getDataIx()
getDataIx in interface GralSetValue_ifcpublic void setDataIx(int dataIx)
setDataIx in interface GralSetValue_ifcpublic void setValue(float value)
GralSetValue_ifcsetValue in interface GralSetValue_ifcpublic void setLongValue(long value)
GralSetValue_ifcsetLongValue in interface GralSetValue_ifcpublic void setValue(java.lang.Object[] value)
GralSetValue_ifcsetValue in interface GralSetValue_ifcvalue - array of floatspublic void setMinMax(float minValue,
float maxValue)
setMinMax in interface GralSetValue_ifcGralSetValue_ifc.setMinMax(float, float)public int getLinePercent()
GralCurveViewTrack_ifcgetLinePercent in interface GralCurveViewTrack_ifcpublic float getOffset()
GralCurveViewTrack_ifcgetOffset in interface GralCurveViewTrack_ifcpublic float getScale7div()
GralCurveViewTrack_ifcgetScale7div in interface GralCurveViewTrack_ifcpublic GralColor getLineColor()
GralCurveViewTrack_ifcgetLineColor in interface GralCurveViewTrack_ifcpublic void setTrackScale(float scale7div,
float offset,
int line0)
setTrackScale in interface GralCurveViewTrack_ifctrackNr - 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.public void groupTrackScale(GralCurveViewTrack_ifc from)
setTrackScale(float, float, int) influences all shared tracks immediately.
All shared tracks refer the same instance of GralCurveView.TrackScale.groupTrackScale in interface GralCurveViewTrack_ifcfrom - public boolean isGroupedTrackScale(GralCurveViewTrack_ifc with)
GralCurveViewTrack_ifcisGroupedTrackScale in interface GralCurveViewTrack_ifcwith - The other track.public void ungroupTrackScale()
GralCurveView.TrackScale. The track is independent now.ungroupTrackScale in interface GralCurveViewTrack_ifcpublic float getValueCursorLeft()
getValueCursorLeft in interface GralCurveViewTrack_ifcpublic float getValueCursorRight()
getValueCursorRight in interface GralCurveViewTrack_ifcprivate float getValueCursor(int cursor)
public float getValueLast()
getValueLast in interface GralCurveViewTrack_ifcpublic float getValueMin()
getValueMin in interface GralCurveViewTrack_ifcpublic float getValueMax()
getValueMax in interface GralCurveViewTrack_ifcpublic void setLineProperties(GralColor color, int width, int pattern)
GralCurveViewTrack_ifcsetLineProperties in interface GralCurveViewTrack_ifccolor - 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.GralCurveViewTrack_ifc.setLineProperties(org.vishia.gral.ifc.GralColor, int, int)public void setVisible(int mode)
GralCurveViewTrack_ifcsetVisible in interface GralCurveViewTrack_ifcpublic int getVisible()
GralCurveViewTrack_ifcgetVisible in interface GralCurveViewTrack_ifcpublic void setText(java.lang.CharSequence text)
GralSetValue_ifcsetText in interface GralSetValue_ifcpublic java.lang.String toString()
toString in class java.lang.Object