|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.ui.CalcYCoord
public class CalcYCoord
Calculates proper y-coordinates for events based on max and min stepping and visual scale. Mainly used by MSC and related classes.
Constructor Summary | |
---|---|
CalcYCoord(DataView dataView,
SettingsMSC settings)
|
Method Summary | |
---|---|
int |
getFirstYCoord()
Getter for first y-coord in this layer, normaly 0. |
int |
getLastYCoord()
Getter for last y-coord in this layer. |
float |
getLinearTimeForYCoord(int yCoord)
Getter for linear time for given y-coord. |
int |
getLinearYCoordForTime(float time)
Getter for linear y-coord for given time, i.e. the ratio time/total time is equal to the ratio y-coord / greatest y-coord. |
float |
getTimeForYCoord(int yCoord)
Getter for time for given y-coord. |
int |
getYCoordForTime(float time)
Getter for y-coordinate for given time. |
void |
setMaxGap(int maxGap)
Setter for maximum gap. |
void |
setMaxStepping(int maxStepping)
Setter for maximum stepping. |
void |
setMinStepping(int minStepping)
Setter for minimum stepping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalcYCoord(DataView dataView, SettingsMSC settings)
Method Detail |
---|
public int getYCoordForTime(float time)
time
-
public int getLinearYCoordForTime(float time)
time
-
public int getLastYCoord()
public int getFirstYCoord()
public float getTimeForYCoord(int yCoord)
value
-
public float getLinearTimeForYCoord(int yCoord)
yCoord
-
public void setMaxStepping(int maxStepping)
maxStepping
- public void setMinStepping(int minStepping)
minStepping
- public void setMaxGap(int maxGap)
maxGap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |