net.aerith.misao.util.star
Class MergedStar
java.lang.Object
|
+--net.aerith.misao.util.Position
|
+--net.aerith.misao.util.star.StarPosition
|
+--net.aerith.misao.util.star.Star
|
+--net.aerith.misao.util.star.MergedStar
- Direct Known Subclasses:
- BlendingStar, UnifiedStar
- public class MergedStar
- extends Star
- implements StarContainer
The MergedStar
represents a set of some star data. It
is a super class of UnifiedStar
and
BlendingStar
.
Field Summary |
protected java.util.Vector |
content_list
The list of content stars. |
Fields inherited from class net.aerith.misao.util.Position |
x,
y |
Constructor Summary |
MergedStar(Star star)
Constructs a MergedStar of only one star. |
Methods inherited from class net.aerith.misao.util.star.Star |
equals,
getColor,
getCoor,
getCoorString,
getCoorStringWithoutUnit,
getDecl,
getItemDelimiter,
getKeyAndValueDelimiter,
getKeyAndValues,
getName,
getOutputString,
getOutputStringWithoutName,
getOutputStringWithXY,
getPair,
getPositionString,
getPxfString,
getPxfStringWithXY,
getRA,
getVsnetName,
mapCoordinatesToXY,
mapXYToCoordinates,
setColor,
setCoor,
setKeyAndValue,
setPair |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
content_list
protected java.util.Vector content_list
- The list of content stars.
MergedStar
public MergedStar(Star star)
- Constructs a
MergedStar
of only one star.
- Parameters:
star
- the initial star.
getStarCount
public int getStarCount()
- Gets the number of content stars.
- Specified by:
- getStarCount in interface StarContainer
- Returns:
- the number of content stars.
getStarAt
public Star getStarAt(int index)
- Gets a star at the specified index.
- Specified by:
- getStarAt in interface StarContainer
- Parameters:
index
- the index.- Returns:
- the star at the specified index.
append
public void append(Star star)
- Appends a
Star
to this object.
- Parameters:
star
- the star to append.
add
public void add(Position position)
- Adds the specified
Position
to this.
- Overrides:
- add in class Position
- Parameters:
position
- the value to add.
rescale
public void rescale(double ratio)
- Rescales the position by magnifying the specified value.
- Overrides:
- rescale in class Position
- Parameters:
ratio
- the value to magnify.
mapCoordinatesToXY
public void mapCoordinatesToXY(ChartMapFunction cmf,
DistortionField df)
- Maps the R.A. and Decl. to the (x,y) position based on the
specified
ChartMapFunction
.
- Overrides:
- mapCoordinatesToXY in class Star
- Parameters:
cmf
- the map function.df
- the distortion field.
mapXYToCoordinates
public void mapXYToCoordinates(ChartMapFunction cmf,
DistortionField df)
- Maps the (x,y) position to the R.A. and Decl. based on the
specified
ChartMapFunction
.
- Overrides:
- mapXYToCoordinates in class Star
- Parameters:
cmf
- the map function.df
- the distortion field.
getOutputStrings
public java.lang.String[] getOutputStrings()
- Returns an array of string representations of the state of
stars contained in this object.
- Overrides:
- getOutputStrings in class StarPosition
- Returns:
- an array of string representations.
getOutputStringsWithXY
public java.lang.String[] getOutputStringsWithXY()
- Returns an array of string representations of the state of
stars contained in this object.
- Overrides:
- getOutputStringsWithXY in class Star
- Returns:
- an array of string representations.
getPxfStringsWithXY
public java.lang.String[] getPxfStringsWithXY()
- Returns an array of string representations of the state of
stars contained in this object.
- Overrides:
- getPxfStringsWithXY in class Star
- Returns:
- an array of string representations.