|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CDasherViewSquare.Cymap
protected class CDasherViewSquare.Cymap
Helper class which applies and unapplies the y-axis non-linearity.
| Field Summary | |
|---|---|
protected long |
m_Y1
Compression factor |
protected long |
m_Y2
Y co-ordinate above which to apply compression |
protected long |
m_Y3
Y co-ordinate below which to apply compression |
| Constructor Summary | |
|---|---|
CDasherViewSquare.Cymap(long iScale)
Calculates m_Y1, 2 and 3 based on the total length of the y axis and hard coded scaling factors which state that objects should be scaled down a factor of 4 when within 5% of the outer edges. |
|
| Method Summary | |
|---|---|
long |
map(long y)
Converts a y co-ordinate according to this schema |
long |
unmap(long ydash)
Restores a y co-ordinate by unapplying non-linearity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long m_Y1
protected long m_Y2
protected long m_Y3
| Constructor Detail |
|---|
public CDasherViewSquare.Cymap(long iScale)
iScale - Total y-axis length| Method Detail |
|---|
public long map(long y)
y - Raw y co-ordinate
public long unmap(long ydash)
ydash - Converted y co-ordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||