uk.ac.starlink.sog.photom
Class AnnulusFigure

java.lang.Object
  extended by diva.canvas.AbstractFigure
      extended by diva.canvas.toolbox.BasicFigure
          extended by jsky.image.graphics.ImageFigure
              extended by uk.ac.starlink.sog.photom.AnnulusFigure
All Implemented Interfaces:
diva.canvas.CanvasComponent, diva.canvas.Figure, diva.canvas.interactor.ShapedFigure, diva.canvas.VisibleComponent, diva.util.UserObjectContainer, jsky.graphics.CanvasFigure

public class AnnulusFigure
extends jsky.image.graphics.ImageFigure

Create a composite figure that represents a circular aperture plus annulus.

Version:
$Id$
Author:
Peter W. Draper

Field Summary
 
Fields inherited from class jsky.image.graphics.ImageFigure
clientData, listenerManager, slaves
 
Fields inherited from interface jsky.graphics.CanvasFigure
DESELECTED, MOVED, RESIZED, SELECTED
 
Constructor Summary
AnnulusFigure(double radius, Paint fill, Paint outline, float lineWidth, diva.canvas.interactor.Interactor interactor)
          Create an annulus figure.
 
Method Summary
 double getInnerscale()
          Get the innerscale
 double getOuterscale()
          Get the outerscale
 Point2D.Double getPosition()
          Get the position of the aperture.
 double getRadius()
          Get the radius of the aperture
 void setInnerscale(double innerscale)
          Set the innerscale.
 void setOuterscale(double outerscale)
          Set the outerscale.
 void setPosition(Point2D.Double pt)
          Set the central position.
 void setRadius(double radius)
          Set the radius of the aperture
 void transform(AffineTransform at)
           
 void translate(double x, double y)
           
 
Methods inherited from class jsky.image.graphics.ImageFigure
addCanvasFigureListener, addSlave, fireCanvasFigureEvent, getBoundsWithoutLabel, getClientData, hit, isSelected, removeCanvasFigureListener, setClientData, setVisible
 
Methods inherited from class diva.canvas.toolbox.BasicFigure
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaint
 
Methods inherited from class diva.canvas.AbstractFigure
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jsky.graphics.CanvasFigure
getBounds, isVisible
 
Methods inherited from interface diva.canvas.Figure
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText
 
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint
 
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
 
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
 

Constructor Detail

AnnulusFigure

public AnnulusFigure(double radius,
                     Paint fill,
                     Paint outline,
                     float lineWidth,
                     diva.canvas.interactor.Interactor interactor)
Create an annulus figure.

Parameters:
interactor - determines the selection behavior of the figure group (may be null)
Method Detail

setPosition

public void setPosition(Point2D.Double pt)
Set the central position. XXX account for relativeness..


getPosition

public Point2D.Double getPosition()
Get the position of the aperture.


setRadius

public void setRadius(double radius)
Set the radius of the aperture


getRadius

public double getRadius()
Get the radius of the aperture


setInnerscale

public void setInnerscale(double innerscale)
Set the innerscale.


getInnerscale

public double getInnerscale()
Get the innerscale


setOuterscale

public void setOuterscale(double outerscale)
Set the outerscale.


getOuterscale

public double getOuterscale()
Get the outerscale


transform

public void transform(AffineTransform at)
Specified by:
transform in interface diva.canvas.Figure
Overrides:
transform in class diva.canvas.toolbox.BasicFigure

translate

public void translate(double x,
                      double y)
Specified by:
translate in interface diva.canvas.Figure
Overrides:
translate in class jsky.image.graphics.ImageFigure


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.