uk.ac.starlink.ast.grf
Class DefaultGrfState

java.lang.Object
  extended by uk.ac.starlink.ast.grf.DefaultGrfState
All Implemented Interfaces:
Cloneable

public class DefaultGrfState
extends Object
implements Cloneable

Java class to store the current GRF state. The GRF state is defined as the current colour, line style & width, character and marker size.

Version:
$Id$
Author:
Peter W. Draper

Constructor Summary
DefaultGrfState()
          Constructor for the DefaultGrfState object
DefaultGrfState(double istyle, double iwidth, double isize, double ifont, double icolour)
          Constructor for the DefaultGrfState object
DefaultGrfState(double istyle, double iwidth, double isize, double ifont, double icolour, Rectangle iclip, double ialpha)
          Constructor for the DefaultGrfState object
 
Method Summary
 Object clone()
           
 double getAlpha()
          Gets the alpha attribute of the DefaultGrfState object
 Rectangle getClip()
          Gets the clip attribute of the DefaultGrfState object
 double getColour()
          Gets the colour attribute of the DefaultGrfState object
 double getFont()
          Gets the font attribute of the DefaultGrfState object
 double getSize()
          Gets the size attribute of the DefaultGrfState object
 double getStyle()
          Gets the style attribute of the DefaultGrfState object
 double getWidth()
          Gets the width attribute of the DefaultGrfState object
 void setAlpha(double value)
          Sets the alpha attribute of the DefaultGrfState object
 void setClip(Rectangle value)
          Sets the clip attribute of the DefaultGrfState object
 void setColour(double value)
          Sets the colour attribute of the DefaultGrfState object
 void setFont(double value)
          Sets the font attribute of the DefaultGrfState object
 void setSize(double value)
          Sets the size attribute of the DefaultGrfState object
 void setStyle(double value)
          Sets the style attribute of the DefaultGrfState object
 void setWidth(double value)
          Sets the width attribute of the DefaultGrfState object
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGrfState

public DefaultGrfState()
Constructor for the DefaultGrfState object


DefaultGrfState

public DefaultGrfState(double istyle,
                       double iwidth,
                       double isize,
                       double ifont,
                       double icolour)
Constructor for the DefaultGrfState object


DefaultGrfState

public DefaultGrfState(double istyle,
                       double iwidth,
                       double isize,
                       double ifont,
                       double icolour,
                       Rectangle iclip,
                       double ialpha)
Constructor for the DefaultGrfState object

Method Detail

getWidth

public double getWidth()
Gets the width attribute of the DefaultGrfState object


getSize

public double getSize()
Gets the size attribute of the DefaultGrfState object


getFont

public double getFont()
Gets the font attribute of the DefaultGrfState object


getColour

public double getColour()
Gets the colour attribute of the DefaultGrfState object


getStyle

public double getStyle()
Gets the style attribute of the DefaultGrfState object


getClip

public Rectangle getClip()
Gets the clip attribute of the DefaultGrfState object


getAlpha

public double getAlpha()
Gets the alpha attribute of the DefaultGrfState object


setWidth

public void setWidth(double value)
Sets the width attribute of the DefaultGrfState object


setSize

public void setSize(double value)
Sets the size attribute of the DefaultGrfState object


setFont

public void setFont(double value)
Sets the font attribute of the DefaultGrfState object


setColour

public void setColour(double value)
Sets the colour attribute of the DefaultGrfState object


setStyle

public void setStyle(double value)
Sets the style attribute of the DefaultGrfState object


setClip

public void setClip(Rectangle value)
Sets the clip attribute of the DefaultGrfState object


setAlpha

public void setAlpha(double value)
Sets the alpha attribute of the DefaultGrfState object


clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object


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