uk.ac.starlink.ast.grf
Class DefaultGrfContainer

java.lang.Object
  extended by uk.ac.starlink.ast.grf.DefaultGrfContainer

public class DefaultGrfContainer
extends Object

Java class to store a GRF "context". This means the GRF type, arrays of double precision X and Y coordinates, a GrfState object and an optional integer related value.

Version:
$Id$
Author:
Peter W. Draper

Field Summary
protected  double angle
           
protected  double[] bbox
           
protected  int grfType
          The internal state of container object.
static int LINE
          Types of GRF states.
static int MARK
           
protected  DefaultGrfState state
           
protected  String text
           
static int TEXT
           
protected  int value
           
protected  double xPos
           
protected  double[] xPositions
           
protected  double yPos
           
protected  double[] yPositions
           
 
Constructor Summary
DefaultGrfContainer()
          Create and initialise a default container.
DefaultGrfContainer(int type, double[] x, double[] y, DefaultGrfState gstate)
          Create and initialise a container.
DefaultGrfContainer(int type, double[] x, double[] y, int assoc, DefaultGrfState gstate)
          Create and initialise a container.
DefaultGrfContainer(int type, String ltext, double x, double y, double langle, double[] lbbox, DefaultGrfState gstate)
          Create and initialise a container.
 
Method Summary
 double getAngle()
          Gets the angle attribute of the DefaultGrfContainer object
 double[] getBBox()
          Gets the bBox attribute of the DefaultGrfContainer object
 DefaultGrfState getGrfState()
          Gets the grfState attribute of the DefaultGrfContainer object
 int getInt()
          Gets the int attribute of the DefaultGrfContainer object
 String getText()
          Gets the text attribute of the DefaultGrfContainer object
 int getType()
          Return the internal state.
 double getX()
          Gets the x attribute of the DefaultGrfContainer object
 double[] getXPositions()
          Gets the xPositions attribute of the DefaultGrfContainer object
 double getY()
          Gets the y attribute of the DefaultGrfContainer object
 double[] getYPositions()
          Gets the yPositions attribute of the DefaultGrfContainer object
 void setAngle(double angle)
          Sets the angle attribute of the DefaultGrfContainer object
 void setBBox(double[] bbox)
          Sets the bBox attribute of the DefaultGrfContainer object
 void setGrfState(DefaultGrfState state)
          Sets the grfState attribute of the DefaultGrfContainer object
 void setInt(int value)
          Sets the int attribute of the DefaultGrfContainer object
 void setText(String text)
          Sets the text attribute of the DefaultGrfContainer object
 void setType(int type)
          Sets the type attribute of the DefaultGrfContainer object
 void setX(double xPos)
          Sets the x attribute of the DefaultGrfContainer object
 void setXPositions(double[] xPositions)
          Sets the xPositions attribute of the DefaultGrfContainer object
 void setY(double yPos)
          Sets the y attribute of the DefaultGrfContainer object
 void setYPositions(double[] yPositions)
          Sets the yPositions attribute of the DefaultGrfContainer object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grfType

protected int grfType
The internal state of container object.


xPositions

protected double[] xPositions

yPositions

protected double[] yPositions

bbox

protected double[] bbox

xPos

protected double xPos

yPos

protected double yPos

angle

protected double angle

value

protected int value

state

protected DefaultGrfState state

text

protected String text

LINE

public static final int LINE
Types of GRF states.

See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

MARK

public static final int MARK
See Also:
Constant Field Values
Constructor Detail

DefaultGrfContainer

public DefaultGrfContainer()
Create and initialise a default container.


DefaultGrfContainer

public DefaultGrfContainer(int type,
                           double[] x,
                           double[] y,
                           DefaultGrfState gstate)
Create and initialise a container.


DefaultGrfContainer

public DefaultGrfContainer(int type,
                           double[] x,
                           double[] y,
                           int assoc,
                           DefaultGrfState gstate)
Create and initialise a container.


DefaultGrfContainer

public DefaultGrfContainer(int type,
                           String ltext,
                           double x,
                           double y,
                           double langle,
                           double[] lbbox,
                           DefaultGrfState gstate)
Create and initialise a container.

Method Detail

getType

public int getType()
Return the internal state.


setType

public void setType(int type)
Sets the type attribute of the DefaultGrfContainer object


getInt

public int getInt()
Gets the int attribute of the DefaultGrfContainer object


setInt

public void setInt(int value)
Sets the int attribute of the DefaultGrfContainer object


getXPositions

public double[] getXPositions()
Gets the xPositions attribute of the DefaultGrfContainer object


setXPositions

public void setXPositions(double[] xPositions)
Sets the xPositions attribute of the DefaultGrfContainer object


getYPositions

public double[] getYPositions()
Gets the yPositions attribute of the DefaultGrfContainer object


setYPositions

public void setYPositions(double[] yPositions)
Sets the yPositions attribute of the DefaultGrfContainer object


getX

public double getX()
Gets the x attribute of the DefaultGrfContainer object


setX

public void setX(double xPos)
Sets the x attribute of the DefaultGrfContainer object


getY

public double getY()
Gets the y attribute of the DefaultGrfContainer object


setY

public void setY(double yPos)
Sets the y attribute of the DefaultGrfContainer object


getAngle

public double getAngle()
Gets the angle attribute of the DefaultGrfContainer object


setAngle

public void setAngle(double angle)
Sets the angle attribute of the DefaultGrfContainer object


getBBox

public double[] getBBox()
Gets the bBox attribute of the DefaultGrfContainer object


setBBox

public void setBBox(double[] bbox)
Sets the bBox attribute of the DefaultGrfContainer object


getText

public String getText()
Gets the text attribute of the DefaultGrfContainer object


setText

public void setText(String text)
Sets the text attribute of the DefaultGrfContainer object


getGrfState

public DefaultGrfState getGrfState()
Gets the grfState attribute of the DefaultGrfContainer object


setGrfState

public void setGrfState(DefaultGrfState state)
Sets the grfState attribute of the DefaultGrfContainer object



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