gravsphcolldemo
Class ProjectionBrData

java.lang.Object
  |
  +--gravsphcolldemo.ProjectionBrData

public class ProjectionBrData
extends java.lang.Object

This class stores data that can be used to construct an ArrayBlockReader representing an OutputProjection law. It is used by Applet2 to transfer data to and from EditProjectionDialog.

Version:
May 2001
Author:
Miklos Reiter

Constructor Summary
ProjectionBrData()
          Creates a new ProjectionBrData object, without initializing any of the variables.
ProjectionBrData(java.lang.String aName, java.lang.String aNormal, java.lang.String aXmin, java.lang.String aXmax, java.lang.String aYmin, java.lang.String aYmax)
          Creates a new ProjectionBrData object that is initialized from the arguments.
 
Method Summary
 void assertValid()
          Asserts that all the data is provided (If it is, it has to be valid, because there is no way of storing it in this object, other than getting it via the public accessors.
 ArrayBlockReader getAnimGifArrayBlockReader(java.lang.String gifName, java.lang.String period)
          Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object.
 ArrayBlockReader getArrayBlockReader(java.lang.String x, java.lang.String y)
          Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object.
 ArrayBlockReader getArrayBlockReader(java.lang.String x, java.lang.String y, java.lang.String period)
          Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object.
 java.lang.String getName()
          Returns the name of the OutputProjection law.
 java.lang.String getNormal()
          Returns the normal.
 java.lang.String getXmax()
          Returns xmax.
 java.lang.String getXmin()
          Returns xmin.
 java.lang.String getYmax()
          Gets ymax.
 java.lang.String getYmin()
          Gets ymin.
 void setName(java.lang.String newName)
          Sets the name of the OutputProjection law.
 void setNormal(java.lang.String newNormal)
          Sets the normal.
 void setXmax(java.lang.String newXmax)
          Sets xmax.
 void setXmin(java.lang.String newXmin)
          Sets xmin.
 void setYmax(java.lang.String newYmax)
          Sets ymax
 void setYmin(java.lang.String newYmin)
          Sets ymin.
 java.lang.String toString()
          This method returns a String representation of ProjectionBrData, that can be used to add it to a AWT List.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectionBrData

public ProjectionBrData()
Creates a new ProjectionBrData object, without initializing any of the variables.

ProjectionBrData

public ProjectionBrData(java.lang.String aName,
                        java.lang.String aNormal,
                        java.lang.String aXmin,
                        java.lang.String aXmax,
                        java.lang.String aYmin,
                        java.lang.String aYmax)
                 throws java.lang.IllegalArgumentException
Creates a new ProjectionBrData object that is initialized from the arguments.
Method Detail

getName

public java.lang.String getName()
Returns the name of the OutputProjection law.

setName

public void setName(java.lang.String newName)
Sets the name of the OutputProjection law.

getNormal

public java.lang.String getNormal()
Returns the normal.

setNormal

public void setNormal(java.lang.String newNormal)
               throws java.lang.IllegalArgumentException
Sets the normal.

getXmin

public java.lang.String getXmin()
Returns xmin.

setXmin

public void setXmin(java.lang.String newXmin)
             throws java.lang.IllegalArgumentException
Sets xmin.

getXmax

public java.lang.String getXmax()
Returns xmax.

setXmax

public void setXmax(java.lang.String newXmax)
             throws java.lang.IllegalArgumentException
Sets xmax.

getYmin

public java.lang.String getYmin()
Gets ymin.

setYmin

public void setYmin(java.lang.String newYmin)
             throws java.lang.IllegalArgumentException
Sets ymin.

getYmax

public java.lang.String getYmax()
Gets ymax.

setYmax

public void setYmax(java.lang.String newYmax)
             throws java.lang.IllegalArgumentException
Sets ymax

assertValid

public void assertValid()
                 throws java.lang.IllegalArgumentException
Asserts that all the data is provided (If it is, it has to be valid, because there is no way of storing it in this object, other than getting it via the public accessors.

toString

public java.lang.String toString()
                          throws java.lang.IllegalArgumentException
This method returns a String representation of ProjectionBrData, that can be used to add it to a AWT List.
Overrides:
toString in class java.lang.Object

getArrayBlockReader

public ArrayBlockReader getArrayBlockReader(java.lang.String x,
                                            java.lang.String y)
                                     throws java.lang.IllegalArgumentException
Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object. Calls assertValid() first.

getArrayBlockReader

public ArrayBlockReader getArrayBlockReader(java.lang.String x,
                                            java.lang.String y,
                                            java.lang.String period)
                                     throws java.lang.IllegalArgumentException
Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object. Calls assertValid() first.

getAnimGifArrayBlockReader

public ArrayBlockReader getAnimGifArrayBlockReader(java.lang.String gifName,
                                                   java.lang.String period)
                                            throws java.lang.IllegalArgumentException
Returns an ArrayBlockReader object representing the OutputProjection law, whose data is stored in this ProjectionBrData object. Calls assertValid() first.