uk.ac.starlink.splat.plot
Class GrfFigure

java.lang.Object
  extended by diva.canvas.AbstractFigure
      extended by uk.ac.starlink.splat.plot.GrfFigure
All Implemented Interfaces:
diva.canvas.CanvasComponent, diva.canvas.Figure, diva.canvas.VisibleComponent, diva.util.UserObjectContainer

public class GrfFigure
extends diva.canvas.AbstractFigure

A Figure that encapsulates all the AST graphics drawn in a DivaPlot. This is a very simple figure in that it does not respond to events or transformations. Its only reason for existence is so that the drawing sequence for AST graphics is controllable as part of the Figure drawing (this allows it to be part of the JCanvas ZList and to be made invisible).


Field Summary
protected  DivaPlot plot
           
 
Constructor Summary
GrfFigure(DivaPlot plot)
           
 
Method Summary
 boolean contains(Point2D p)
           
 Rectangle2D getBounds()
           
 diva.canvas.interactor.Interactor getInteractor()
           
 Shape getShape()
           
 boolean hit(Rectangle2D r)
           
 boolean intersects(Rectangle2D r)
           
 void paint(Graphics2D g)
           
 void transform(AffineTransform at)
           
 void translate(double x, double y)
           
 
Methods inherited from class diva.canvas.AbstractFigure
getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plot

protected DivaPlot plot
Constructor Detail

GrfFigure

public GrfFigure(DivaPlot plot)
Method Detail

paint

public void paint(Graphics2D g)
Specified by:
paint in interface diva.canvas.VisibleComponent
Specified by:
paint in class diva.canvas.AbstractFigure

transform

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

translate

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

getBounds

public Rectangle2D getBounds()
Specified by:
getBounds in interface diva.canvas.Figure
Overrides:
getBounds in class diva.canvas.AbstractFigure

getShape

public Shape getShape()
Specified by:
getShape in interface diva.canvas.Figure
Specified by:
getShape in class diva.canvas.AbstractFigure

getInteractor

public diva.canvas.interactor.Interactor getInteractor()
Specified by:
getInteractor in interface diva.canvas.Figure
Overrides:
getInteractor in class diva.canvas.AbstractFigure

hit

public boolean hit(Rectangle2D r)
Specified by:
hit in interface diva.canvas.Figure
Overrides:
hit in class diva.canvas.AbstractFigure

contains

public boolean contains(Point2D p)
Specified by:
contains in interface diva.canvas.Figure
Overrides:
contains in class diva.canvas.AbstractFigure

intersects

public boolean intersects(Rectangle2D r)
Specified by:
intersects in interface diva.canvas.Figure
Overrides:
intersects in class diva.canvas.AbstractFigure


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