stsci.sky
Class SkyImage

java.lang.Object
  |
  +--stsci.sky.SkyImage
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, ImageCont, java.awt.event.ItemListener, PositionTranslator

public class SkyImage
extends java.lang.Object
implements ImageCont, java.awt.event.ItemListener, javax.swing.event.ChangeListener, PositionTranslator

Author:
 

Field Summary
 ImageArchive archive
           
protected  int intensity
          if we do blending we need this * @author
protected  boolean loaded
           
protected  java.lang.String name
           
protected  boolean rotate
           
protected  float rotation
           
protected  java.awt.image.RenderedImage scaledImage
           
protected  double scaleX
           
protected  double scaleY
           
protected  boolean show
           
protected  SkyArea sky
           
protected  java.awt.image.RenderedImage theImage
           
protected  ImageInfo theImageInfo
           
 
Constructor Summary
SkyImage(ImageArchive arc, SkyArea sky)
           
 
Method Summary
 void add(ImageInfo info)
           
 void add(java.awt.image.RenderedImage im)
           
 float calcRotation(SkyImage master)
           
 ImageInfo getImageInfo()
           
 void init(double a, double d, double r)
          This gets called when we want to populate the sky.
 void itemStateChanged(java.awt.event.ItemEvent evt)
           
 java.lang.String name()
           
 void plot()
           
 void reScale()
          Scale changed so we need to rescale the image.
 void setRotate(boolean v)
          apply a rotation to a secondary image if needed
 void setShow(boolean v)
          Plot this catlog or not ? * @param v
 void stateChanged(javax.swing.event.ChangeEvent ev)
           
 Position which(int x, int y)
           
 java.awt.Point whichXY(double alpha, double delta)
          Use projection to find out where the given RA/DEC are on this image.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

show

protected boolean show

intensity

protected int intensity
if we do blending we need this * @author

name

protected java.lang.String name

loaded

protected boolean loaded

scaleX

protected double scaleX

scaleY

protected double scaleY

archive

public ImageArchive archive

sky

protected SkyArea sky

theImage

protected java.awt.image.RenderedImage theImage

theImageInfo

protected ImageInfo theImageInfo

scaledImage

protected java.awt.image.RenderedImage scaledImage

rotate

protected boolean rotate

rotation

protected float rotation
Constructor Detail

SkyImage

public SkyImage(ImageArchive arc,
                SkyArea sky)
Parameters:
arc -  
sky -  
Throws:
-  
Method Detail

setRotate

public void setRotate(boolean v)
apply a rotation to a secondary image if needed

setShow

public void setShow(boolean v)
Plot this catlog or not ? * @param v
Returns:
void
Throws:
-  

plot

public void plot()
Returns:
void
Throws:
-  

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
evt -  
Returns:
void
Throws:
-  

add

public void add(java.awt.image.RenderedImage im)
Specified by:
add in interface ImageCont
Parameters:
im -  
Returns:
void
Throws:
-  

name

public java.lang.String name()
Specified by:
name in interface ImageCont
Returns:
String
Throws:
-  

init

public void init(double a,
                 double d,
                 double r)
This gets called when we want to populate the sky. * @param a
Parameters:
d -  
r -  
Returns:
void
Throws:
-  

reScale

public void reScale()
Scale changed so we need to rescale the image. * @return void
Throws:
-  

add

public void add(ImageInfo info)
Specified by:
add in interface ImageCont
Parameters:
info -  
Returns:
void
Throws:
-  

whichXY

public java.awt.Point whichXY(double alpha,
                              double delta)
                       throws java.lang.Exception
Use projection to find out where the given RA/DEC are on this image. * @param alpha
Specified by:
whichXY in interface PositionTranslator
Parameters:
delta -  
Returns:
Point
Throws:
java.lang.Exception -  

stateChanged

public final void stateChanged(javax.swing.event.ChangeEvent ev)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
ev -  
Returns:
void
Throws:
-  

which

public Position which(int x,
                      int y)
Specified by:
which in interface PositionTranslator
Parameters:
x -  
y -  
Returns:
Position
Throws:
-  

getImageInfo

public ImageInfo getImageInfo()

calcRotation

public float calcRotation(SkyImage master)