|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stsci.sky.Catalog2D
This represebts a continer for all stars retreived from a particular Archive at a particular time. * @author This decides which color is used for plotting the points.This will actually call back up to the SkyArea toget x,y positions so stars can do the plotting - this is because the SkyArea knows the coordinate system but the star remembers where it was last time and the Catalog contains the color information
Field Summary | |
protected SourceArchive |
archive
|
protected java.awt.Color |
col
|
protected Criteria |
crit
|
protected boolean |
loaded
|
protected java.lang.String |
name
|
protected boolean |
plot
|
protected boolean |
serverSideFilter
|
protected SkyArea |
sky
|
protected java.util.ArrayList |
stars
|
Constructor Summary | |
Catalog2D()
|
|
Catalog2D(SourceArchive arc,
SkyArea sky)
|
Method Summary | |
void |
add(ArchiveObject o)
|
java.awt.Color |
color()
The color to use plotting this catalog. |
boolean |
filter(Star2D s)
Apply the criteria to the given star. |
Star2D |
findNear(int x,
int y)
Find the star plotted near the given screen coordinates - this came from Hipparcos - it assumes stars are ordered in RA comming from the catalog and does a binary searc based on that assumption. |
Star2D |
findStar(java.lang.String id)
|
java.util.Iterator |
getStars()
|
void |
init(double a,
double d,
double r)
This gets called when we want to populate the sky. |
void |
itemStateChanged(java.awt.event.ItemEvent arg0)
|
void |
moveStars(int year)
|
java.lang.String |
name()
|
void |
plot()
Plot all Stars matching the criteria. |
void |
plot(Star2D s,
java.awt.Rectangle r)
Plot individual Star if it matches criteria. |
protected void |
replot()
Unplot Stars no longer matching the criteria but plot thoose which do. |
void |
reScale()
Scale changed so all stars must have positions recalcuolated * @return void |
void |
setCol(java.awt.Color c)
|
void |
setCrit(Criteria c)
|
void |
setPlot(boolean v)
Plot this catlog or not ? * @param v |
void |
setPos(Star2D s)
Set the X,Y coordinate on screen of the star. |
void |
setServerSideFilter(boolean v)
Apply the criteria on the serverside or not - cuts down data transfer but allows less flexibility in the client. |
void |
unplot()
unplot all stars from this catalogue * @return void |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected boolean plot
protected boolean serverSideFilter
protected boolean loaded
protected java.util.ArrayList stars
protected Criteria crit
protected SkyArea sky
protected SourceArchive archive
protected java.awt.Color col
protected java.lang.String name
Constructor Detail |
public Catalog2D(SourceArchive arc, SkyArea sky)
arc
- sky
-
- public Catalog2D()
- Method Detail |
public void setPlot(boolean v)
- public void setCrit(Criteria c)
c
-
- public void setCol(java.awt.Color c)
c
-
- public void moveStars(int year)
year
-
- public void plot()
- protected void replot()
- public void unplot()
- public void plot(Star2D s, java.awt.Rectangle r)
- public void add(ArchiveObject o)
add
in interface ArcObjCont
o
-
- public java.lang.String name()
name
in interface ArcObjCont
- public Star2D findNear(int x, int y)
y
-
- public Star2D findStar(java.lang.String id)
public java.awt.Color color()
- public void itemStateChanged(java.awt.event.ItemEvent arg0)
itemStateChanged
in interface java.awt.event.ItemListener
arg0
-
- public void init(double a, double d, double r)
d
- r
-
- public void setServerSideFilter(boolean v)
- public void reScale()
- public void setPos(Star2D s)
- public java.util.Iterator getStars()
- public boolean filter(Star2D s)
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |