jfits
Class FitsRectangle

java.lang.Object
  extended by jfits.AbstractFitsShape
      extended by jfits.FitsRectangle
All Implemented Interfaces:
Shape, FitsShape

public class FitsRectangle
extends AbstractFitsShape

This class represents a rectangular section in a fits file. The principal axis is defined to be along the longer side of the rectangle. The ADU value returned in getPrincipal(java.awt.geom.AffineTransform) is the average along the shorter axis.


Constructor Summary
FitsRectangle(Rectangle2D g)
           
 
Method Summary
 List<Vector2D> getPrincipal(AffineTransform a)
          We grab the list of all adus in our bounding rectangle, then define as the principal axis the longer one of the two sides.
 boolean isClosed()
          We are an open shape.
 
Methods inherited from class jfits.AbstractFitsShape
contains, contains, contains, contains, getAdus, getBounds, getBounds2D, getFitsShape, getPathIterator, getPathIterator, getStatistic, intersects, intersects, registerFits, registerFits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitsRectangle

public FitsRectangle(Rectangle2D g)
Method Detail

getPrincipal

public List<Vector2D> getPrincipal(AffineTransform a)
                            throws nom.tam.fits.FitsException
We grab the list of all adus in our bounding rectangle, then define as the principal axis the longer one of the two sides. For each pixel in this direction, we average along the secondary axis and return this average as the y component.

Parameters:
a - How the generic shape is transformed to FITS space.
Throws:
nom.tam.fits.FitsException

isClosed

public boolean isClosed()
We are an open shape.