|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.raben.telescope.comm.CelestronCoordinateConverter
Facade to encode and decode Celestron coordinate formats
| Constructor Summary | |
CelestronCoordinateConverter()
Creates a new instance of CelestronCoordinateAdapater |
|
| Method Summary | |
void |
decodeHexadecimal(java.lang.String str,
java.awt.geom.Point2D coord)
Decode hexadecimal string |
java.lang.String |
encodeHexadecimal(double val)
Encode angle as hexadecimal value |
java.lang.String |
encodeHexadecimal16(double val)
Encode as 16 bit hexadecimal value |
java.lang.String |
encodeHexadecimal24(double val)
Encode as 24 bit hexadecimal value |
TelescopeModel |
getTelescopeModel()
Get the Telescope model |
boolean |
isHighPrecision()
Returns whether precision is high or not |
void |
setHighPrecision(boolean precision)
Set whether encode/decode should be high precision (24 bit) |
void |
setTelescopeModel(TelescopeModel telescopeModel)
Set the Telescope model |
java.lang.String |
toString()
Return String representation of CelestronCoordinateAdapter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CelestronCoordinateConverter()
| Method Detail |
public java.lang.String encodeHexadecimal(double val)
val - Angle to be encoded
public java.lang.String encodeHexadecimal16(double val)
val - Value to be converted
public java.lang.String encodeHexadecimal24(double val)
val - Value to be converted
public void decodeHexadecimal(java.lang.String str,
java.awt.geom.Point2D coord)
str - String containing coordinate from telescopecoord - Point2D coordinate to be setpublic void setHighPrecision(boolean precision)
precision - True if high precision is to be usedpublic boolean isHighPrecision()
public void setTelescopeModel(TelescopeModel telescopeModel)
telescopeModel - to be usedpublic TelescopeModel getTelescopeModel()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||