|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JNormalizedCanvas
jview.JViewportCanvas
jview.JFrameCanvas
jview.JFitsCanvas
jview.JSkyCanvas
public class JSkyCanvas
A class that shows a finding chart. StarCatalogs can be added to the
sky chart, and a fits-image can be applied as a background.
| Nested Class Summary | |
|---|---|
static class |
JSkyCanvas.Display
Test the functionality. |
| Nested classes/interfaces inherited from class jview.JFitsCanvas |
|---|
JFitsCanvas.Show |
| Nested classes/interfaces inherited from class jview.JFrameCanvas |
|---|
JFrameCanvas.Test |
| Nested classes/interfaces inherited from class jview.JViewportCanvas |
|---|
JViewportCanvas.ViewportKey |
| Nested classes/interfaces inherited from class jview.JNormalizedCanvas |
|---|
JNormalizedCanvas.ShowImage |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
A0
Set name for stars later than . |
static String |
A5
Set name for stars later than . |
static String |
B0
Set name for stars later than . |
static String |
B5
Set name for stars later than . |
private static SortedMap<Float,String> |
BVSPECTRUM
A lookup-table for converting B-V to spectral class names. |
private static String |
CATALOGCOLOR
The action name for toggling the use of catalog colors. |
static String |
CENTRAL
Set name for center. |
private static Color |
DEFBACKGROUND
Default background color. |
private static Color |
DEFCENTRALCOLOR
Default central color. |
private static boolean |
DEFFIXEDSTARSIZE
Default B&W drawing. |
private static Color |
DEFFOREGROUND
Default foreground color, if no catalog color was retrieved. |
private static boolean |
DEFMARKCENTER
Default marking of center. |
private static int |
DEFPREFERREDHEIGHT
Default preferred height. |
private static int |
DEFPREFERREDWIDTH
Default preferred width. |
private static boolean |
DEFUSECATALOGCOLOR
Default B&W drawing. |
static String |
F0
Set name for stars later than . |
static String |
F5
Set name for stars later than . |
static String |
G0
Set name for stars later than . |
static String |
G5
Set name for stars later than . |
static String |
K0
Set name for stars later than . |
static String |
K5
Set name for stars later than . |
static String |
KEY_CENTRALCOLOR
The key to central source color. |
static String |
KEY_FIXEDSTARSIZE
True, if the stars should remain at their size at zooming. |
static String |
KEY_MAGLIMIT
The maximum mag to show. |
static String |
KEY_MARKCENTER
True, if the center of the chart should be marked. |
static String |
KEY_USECATALOGCOLOR
True, if the chart should be displayed in catalog colors only. |
static String |
M0
Set name for stars later than . |
static String |
M5
Set name for stars later than . |
static String |
M8
Set name for stars later than . |
private static String |
MARKCENTER
The action name for toggling the center marking. |
static String |
MX
Set name for the very red stars. |
static String |
O
Set name for stars later than . |
private Map<String,List<PointDraw>> |
pntcats
The list of catalogs. |
private static Map<String,Color> |
SPECTRALSETS
A lookup-table for converting spectral sets names to drawing infos. |
private Map<String,List<ShapeDraw>> |
strcats
The list of catalogs. |
| Fields inherited from class jview.JFitsCanvas |
|---|
ARRAY, KEY_FORMATWCS, KEY_HIGHMODE, KEY_KEEP, KEY_LOWKEEP, KEY_LOWMODE, KEY_MAXMAGNIFY, KEY_NEVERESTIMATESIZE, KEY_RGBGRAY, KEY_SCALING, KEY_SMARTKEEP, KEY_XTENSION, KEY_XTENSIONFLIP, WCS |
| Fields inherited from class jview.JViewportCanvas |
|---|
MAXVIEW, VIEWPORTIMAGEPROPERTY, VIEWPORTPROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JSkyCanvas(ResourceSupplying prop)
Calls the superconstructor with no arguments. |
|
| Method Summary | |
|---|---|
void |
addCatalog(StarCatalog cat,
boolean usebv)
Adds a catalog. |
private void |
addMark()
Adds the central mark. |
protected void |
drawShapes(Graphics2D g2d,
AffineTransform af)
We draw ourselfes by also showing the catalogs. |
void |
init()
Adds the grid and constellation drawing info. |
boolean |
isEmpty()
Returns true if all drawable objects have no entries. |
boolean |
removeCatalog(String name)
Removes a catalog by name. |
private boolean |
removeFrom(String name,
Map<String,?> catalogs)
Removes a catalog by name. |
void |
setComposedProperties(ResourceSupplying prop)
Sets the composed properties of this component. |
void |
setSection(double ra,
double de,
double xs,
double ys)
Sets a new center of the sky chart. |
Action |
toggleCenterDraw()
Toggles black&white drawing. |
Action |
toggleUseCatalogColor()
Toggles black&white drawing. |
| Methods inherited from class jview.JFrameCanvas |
|---|
calculateActiveCanvas, calculateShapeTransform, getArea, isScreenInNormalized, paintObjects, prepareCanvas, wasReshaped |
| Methods inherited from class jview.JViewportCanvas |
|---|
addAttachedViewport, addZoom, getViewport, getViewportImage, isMaximalViewport, isNormalizedOnScreen, removeAttachedViewport, resetViewport, selectArea, selectViewport, setViewportImage, transferView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jview.NormalizedCoordinates |
|---|
getArea, getNormalized, getNormalizedRect, getScreen, getScreenRect, getViewport, isNormalizedOnScreen, isScreenInNormalized |
| Field Detail |
|---|
public static final String MX
public static final String M8
public static final String M5
public static final String M0
public static final String K5
public static final String K0
public static final String G5
public static final String G0
public static final String F5
public static final String F0
public static final String A5
public static final String A0
public static final String B5
public static final String B0
public static final String O
public static final String CENTRAL
public static final String KEY_MAGLIMIT
public static final String KEY_MARKCENTER
public static final String KEY_USECATALOGCOLOR
public static final String KEY_FIXEDSTARSIZE
public static final String KEY_CENTRALCOLOR
private static final String CATALOGCOLOR
private static final String MARKCENTER
private static final int DEFPREFERREDWIDTH
private static final int DEFPREFERREDHEIGHT
private static final boolean DEFMARKCENTER
private static final boolean DEFUSECATALOGCOLOR
private static final boolean DEFFIXEDSTARSIZE
private static final Color DEFFOREGROUND
private static final Color DEFBACKGROUND
private static final Color DEFCENTRALCOLOR
private static final SortedMap<Float,String> BVSPECTRUM
private static final Map<String,Color> SPECTRALSETS
private Map<String,List<PointDraw>> pntcats
private Map<String,List<ShapeDraw>> strcats
| Constructor Detail |
|---|
public JSkyCanvas(ResourceSupplying prop)
ra - Right ascension of the center of projection, degrees.de - Declination of the center of projection, degrees.width - Field-of-view width in degrees.height - Field-of-view height in degrees.| Method Detail |
|---|
public void setComposedProperties(ResourceSupplying prop)
setComposedProperties in interface ResourceAwaresetComposedProperties in class JFitsCanvaspublic void init()
init in interface Initializableinit in class JFitsCanvasprivate void addMark()
public Action toggleUseCatalogColor()
public Action toggleCenterDraw()
public void setSection(double ra,
double de,
double xs,
double ys)
ra - Right ascension of center, degrees.de - Declination of center, degrees.xs - Field width in degrees.ys - Field height in degrees.
public void addCatalog(StarCatalog cat,
boolean usebv)
cat - The catalog to addusebv - If true, the catalog is split into different colors using the
b-v of the stars.public boolean removeCatalog(String name)
private boolean removeFrom(String name,
Map<String,?> catalogs)
public boolean isEmpty()
isEmpty in class JNormalizedCanvas
protected void drawShapes(Graphics2D g2d,
AffineTransform af)
drawShapes in class JNormalizedCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||