|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.Position | +--net.aerith.misao.util.star.StarPosition | +--net.aerith.misao.util.star.Star
The Star
represents a star which consists of (x,y)
position, R.A. and Decl., and magnitude. They are expressed in
float data. It also has a color to plot on a chart.
Field Summary | |
protected java.awt.Color |
color
The colot to plot on a chart. |
protected StarPair |
container_pair
The pair which contains this object. |
protected Coor |
coor
The R.A. |
Fields inherited from class net.aerith.misao.util.star.StarPosition |
mag |
Fields inherited from class net.aerith.misao.util.Position |
x,
y |
Constructor Summary | |
Star()
Constructs an empty Star . |
Method Summary | |
boolean |
equals(Star star)
Returns true when the specified star equals to this object. |
java.awt.Color |
getColor()
Gets the colot to plot on a chart. |
Coor |
getCoor()
Gets R.A. |
java.lang.String |
getCoorString()
Gets a string representing the R.A. |
java.lang.String |
getCoorStringWithoutUnit()
Gets a string representing the R.A. |
double |
getDecl()
Gets Decl. |
static java.lang.String |
getItemDelimiter()
Gets a string representing the delimiter between each items, that is two space characters. |
static java.lang.String |
getKeyAndValueDelimiter()
Gets a string representing the delimiter between the key and the value, that is a colon. |
KeyAndValue[] |
getKeyAndValues()
Gets an array of keys and values to output. |
java.lang.String |
getName()
Gets the name of this star. |
java.lang.String |
getOutputString()
Returns a string representation of the state of this object. |
java.lang.String[] |
getOutputStringsWithXY()
Returns an array of string representations of the state of stars contained in this object. |
java.lang.String |
getOutputStringWithoutName()
Returns a string representation of the state of this object. |
java.lang.String |
getOutputStringWithXY()
Returns a string representation of the state of this object. |
StarPair |
getPair()
Gets the pair which contains this object. |
java.lang.String |
getPositionString()
Gets a string representing the (x,y) position. |
java.lang.String |
getPxfString()
Returns a string representation of the state of this object for PXF output. |
java.lang.String[] |
getPxfStringsWithXY()
Returns an array of string representations of the state of stars contained in this object. |
java.lang.String |
getPxfStringWithXY()
Returns a string representation of the state of this object for PXF output. |
double |
getRA()
Gets R.A. |
java.lang.String |
getVsnetName()
Gets the name of this star in a format for the VSNET (Variable Star Network). |
void |
mapCoordinatesToXY(ChartMapFunction cmf)
Maps the R.A. |
void |
mapCoordinatesToXY(ChartMapFunction cmf,
DistortionField df)
Maps the R.A. |
void |
mapXYToCoordinates(ChartMapFunction cmf)
Maps the (x,y) position to the R.A. |
void |
mapXYToCoordinates(ChartMapFunction cmf,
DistortionField df)
Maps the (x,y) position to the R.A. |
void |
setColor(java.awt.Color new_color)
Sets the colot to plot on a chart. |
void |
setCoor(Coor new_coor)
Sets R.A. |
void |
setKeyAndValue(KeyAndValue key_and_value)
Sets the value of the specified key. |
void |
setPair(StarPair pair)
Sets the pair which contains this object. |
Methods inherited from class net.aerith.misao.util.star.StarPosition |
getMag,
getOutputStrings,
paramString,
setMag,
toString |
Methods inherited from class net.aerith.misao.util.Position |
add,
getDistanceFrom,
getPositionAngleTo,
getX,
getY,
rescale,
setPosition,
setX,
setY |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Coor coor
protected StarPair container_pair
protected java.awt.Color color
Constructor Detail |
public Star()
Star
. All member fields are
set as 0.Method Detail |
public double getRA()
public double getDecl()
public Coor getCoor()
public void setCoor(Coor new_coor)
new_coor
- the new R.A. and Decl.public java.awt.Color getColor()
public void setColor(java.awt.Color new_color)
public java.lang.String getName()
public java.lang.String getVsnetName()
public void mapCoordinatesToXY(ChartMapFunction cmf)
ChartMapFunction
.cmf
- the map function.public void mapCoordinatesToXY(ChartMapFunction cmf, DistortionField df)
ChartMapFunction
.cmf
- the map function.df
- the distortion field.public void mapXYToCoordinates(ChartMapFunction cmf)
ChartMapFunction
.cmf
- the map function.public void mapXYToCoordinates(ChartMapFunction cmf, DistortionField df)
ChartMapFunction
.cmf
- the map function.df
- the distortion field.public StarPair getPair()
public void setPair(StarPair pair)
pair
- the pair which contains this object.public boolean equals(Star star)
public static final java.lang.String getItemDelimiter()
public static final java.lang.String getKeyAndValueDelimiter()
public java.lang.String getCoorString()
public java.lang.String getCoorStringWithoutUnit()
public java.lang.String getPositionString()
public KeyAndValue[] getKeyAndValues()
public void setKeyAndValue(KeyAndValue key_and_value)
key_and_value
- the key and value to set.public java.lang.String getOutputString()
public java.lang.String getOutputStringWithoutName()
public java.lang.String getOutputStringWithXY()
public java.lang.String[] getOutputStringsWithXY()
UnifiedStar
and BlendingStar
,
the subclasses of Star
.public java.lang.String getPxfString()
public java.lang.String getPxfStringWithXY()
public java.lang.String[] getPxfStringsWithXY()
UnifiedStar
and BlendingStar
,
the subclasses of Star
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |