|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ast.grf.DefaultGrfContainer
public class DefaultGrfContainer
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.
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 |
---|
protected int grfType
protected double[] xPositions
protected double[] yPositions
protected double[] bbox
protected double xPos
protected double yPos
protected double angle
protected int value
protected DefaultGrfState state
protected String text
public static final int LINE
public static final int TEXT
public static final int MARK
Constructor Detail |
---|
public DefaultGrfContainer()
public DefaultGrfContainer(int type, double[] x, double[] y, DefaultGrfState gstate)
public DefaultGrfContainer(int type, double[] x, double[] y, int assoc, DefaultGrfState gstate)
public DefaultGrfContainer(int type, String ltext, double x, double y, double langle, double[] lbbox, DefaultGrfState gstate)
Method Detail |
---|
public int getType()
public void setType(int type)
public int getInt()
public void setInt(int value)
public double[] getXPositions()
public void setXPositions(double[] xPositions)
public double[] getYPositions()
public void setYPositions(double[] yPositions)
public double getX()
public void setX(double xPos)
public double getY()
public void setY(double yPos)
public double getAngle()
public void setAngle(double angle)
public double[] getBBox()
public void setBBox(double[] bbox)
public String getText()
public void setText(String text)
public DefaultGrfState getGrfState()
public void setGrfState(DefaultGrfState state)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |