public class StarChart extends StarChartLoader
Modifier and Type | Class and Description |
---|---|
static class |
StarChart.StarChartDialogue
Enable users to set coordinates and other parameters for creating
a star chart.
|
Modifier and Type | Field and Description |
---|---|
static int |
STAR_SIZE |
cos90ap, cosdp, epoch, equinox, sin90ap, sindp, sinFieldRadius
Constructor and Description |
---|
StarChart(java.lang.String title,
RA ra,
Dec dec,
Epoch equinox,
JulianDate epoch,
double fieldWidthDegrees,
boolean showVariables,
boolean showChartCentre,
StarChartSource source)
If the title is null then one is constructed from the data (so many
degrees around position).
|
StarChart(java.lang.String title,
RA ra,
Dec dec,
Epoch equinox,
JulianDate epoch,
double fieldWidthDegrees,
StarChartSource source)
Use this constructor if you always want to mark variable stars and the
chart centre.
|
Modifier and Type | Method and Description |
---|---|
static void |
createChart()
Interacts with user to determine which area to chart.
|
static void |
createChart(java.awt.Frame parent)
Interacts with user to determine which area to chart.
|
Star |
findNearestStar(int x,
int y)
Return the star nearest to the given chart coordinates.
|
static Star |
getSelectedStar()
Get a reference to the star most recently selected (by the user
clicking near it).
|
static StarChart |
getSourceOfSelectedStar()
Get a reference to the chart from which the most recently selected
star came.
|
java.util.List<Star> |
getStars()
Get a reference to the list of stars used in the chart.
|
static StarChart |
loadFromHTML(java.lang.String filePath)
Attempt to load from an HTML file which is a saved AAVSO reference
sequence page.
|
static StarChart |
loadFromXML(java.lang.String filePath)
Load from a .chart file saved from this class.
|
static void |
mergeCharts(java.util.List<StarChartFrame> chartFrames)
Let user select a number of .chart files which are then merged into
one new one.
NB: Changed 10.4.7 to pass chartFrames in as a parameter, thus enabling StarChart to compile independently of GRIP. |
void |
saveAsXML(java.lang.String filePath,
java.lang.String title) |
void |
showNearestStarData(int x,
int y)
Displays details of the star nearest to the given position, in a
message dialogue, and puts the Star object on the clipboard.
|
java.lang.StringBuffer |
toXML(java.lang.String title) |
calculateChartCoordinates, getEpoch, getEquinox, initialiseChartCoordinates
public static final int STAR_SIZE
public StarChart(java.lang.String title, RA ra, Dec dec, Epoch equinox, JulianDate epoch, double fieldWidthDegrees, StarChartSource source)
public StarChart(java.lang.String title, RA ra, Dec dec, Epoch equinox, JulianDate epoch, double fieldWidthDegrees, boolean showVariables, boolean showChartCentre, StarChartSource source)
public java.util.List<Star> getStars()
public static Star getSelectedStar()
public static StarChart getSourceOfSelectedStar()
public static void createChart()
public static void createChart(java.awt.Frame parent)
public void showNearestStarData(int x, int y)
public Star findNearestStar(int x, int y)
public static void mergeCharts(java.util.List<StarChartFrame> chartFrames)
public static StarChart loadFromHTML(java.lang.String filePath)
public static StarChart loadFromXML(java.lang.String filePath)
public void saveAsXML(java.lang.String filePath, java.lang.String title)
public java.lang.StringBuffer toXML(java.lang.String title)