Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.biomage.ArrayDesign
Class ZoneLayout  view ZoneLayout download ZoneLayout.java

java.lang.Object
  extended byorg.biomage.Common.Extendable
      extended byorg.biomage.ArrayDesign.ZoneLayout
All Implemented Interfaces:
org.biomage.Interface.HasDistanceUnit, org.biomage.Interface.HasPropertySets, java.io.Serializable

public class ZoneLayout
extends org.biomage.Common.Extendable
implements java.io.Serializable, org.biomage.Interface.HasDistanceUnit

Specifies the layout of features in a rectangular grid.


Nested Class Summary
 
Nested classes inherited from class org.biomage.Interface.HasPropertySets
org.biomage.Interface.HasPropertySets.PropertySets_list
 
Field Summary
private  org.biomage.Measurement.DistanceUnit distanceUnit
          Unit of the ZoneLayout attributes.
(package private)  int numFeaturesPerCol
          The number of features from top to bottom of the grid.
(package private)  int numFeaturesPerRow
          The number of features from left to right.
(package private)  float spacingBetweenCols
          Spacing between the columns.
(package private)  float spacingBetweenRows
          Spacing between the rows.
 
Fields inherited from class org.biomage.Common.Extendable
 
Constructor Summary
ZoneLayout()
          Default constructor.
ZoneLayout(org.xml.sax.Attributes atts)
          Attribute constructor.
 
Method Summary
 org.biomage.Measurement.DistanceUnit getDistanceUnit()
          Get method for distanceUnit
 int getNumFeaturesPerCol()
          Get method for numFeaturesPerCol
 int getNumFeaturesPerRow()
          Get method for numFeaturesPerRow
 float getSpacingBetweenCols()
          Get method for spacingBetweenCols
 float getSpacingBetweenRows()
          Get method for spacingBetweenRows
 void setDistanceUnit(org.biomage.Measurement.DistanceUnit distanceUnit)
          Set method for distanceUnit
 void setNumFeaturesPerCol(int numFeaturesPerCol)
          Set method for numFeaturesPerCol
 void setNumFeaturesPerRow(int numFeaturesPerRow)
          Set method for numFeaturesPerRow
 void setSpacingBetweenCols(float spacingBetweenCols)
          Set method for spacingBetweenCols
 void setSpacingBetweenRows(float spacingBetweenRows)
          Set method for spacingBetweenRows
 void writeAssociations(java.io.Writer out)
          writeAssociations
 void writeAttributes(java.io.Writer out)
          writeAttributes
 void writeMAGEML(java.io.Writer out)
          writeMAGEML
 
Methods inherited from class org.biomage.Common.Extendable
addToPropertySets, addToPropertySets, getFromPropertySets, getPropertySets, removeElementAtFromPropertySets, removeFromPropertySets, setPropertySets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numFeaturesPerRow

int numFeaturesPerRow
The number of features from left to right.


numFeaturesPerCol

int numFeaturesPerCol
The number of features from top to bottom of the grid.


spacingBetweenRows

float spacingBetweenRows
Spacing between the rows.


spacingBetweenCols

float spacingBetweenCols
Spacing between the columns.


distanceUnit

private org.biomage.Measurement.DistanceUnit distanceUnit
Unit of the ZoneLayout attributes.

Constructor Detail

ZoneLayout

public ZoneLayout()
Default constructor.


ZoneLayout

public ZoneLayout(org.xml.sax.Attributes atts)
Attribute constructor. Looks up the attributes in the parameter and casts them from strings appropriately

Method Detail

writeMAGEML

public void writeMAGEML(java.io.Writer out)
                 throws java.io.IOException
writeMAGEML

This method is responsible for assembling the attribute and association data into XML. It creates the object tag and then calls the writeAttributes and writeAssociation methods.


writeAttributes

public void writeAttributes(java.io.Writer out)
                     throws java.io.IOException
writeAttributes

This method is responsible for assembling the attribute data into XML. It calls the super method to write out all attributes of this class and it's ancestors.


writeAssociations

public void writeAssociations(java.io.Writer out)
                       throws java.io.IOException
writeAssociations

This method is responsible for assembling the association data into XML. It calls the super method to write out all associations of this class's ancestors.


setNumFeaturesPerRow

public void setNumFeaturesPerRow(int numFeaturesPerRow)
Set method for numFeaturesPerRow


getNumFeaturesPerRow

public int getNumFeaturesPerRow()
Get method for numFeaturesPerRow


setNumFeaturesPerCol

public void setNumFeaturesPerCol(int numFeaturesPerCol)
Set method for numFeaturesPerCol


getNumFeaturesPerCol

public int getNumFeaturesPerCol()
Get method for numFeaturesPerCol


setSpacingBetweenRows

public void setSpacingBetweenRows(float spacingBetweenRows)
Set method for spacingBetweenRows


getSpacingBetweenRows

public float getSpacingBetweenRows()
Get method for spacingBetweenRows


setSpacingBetweenCols

public void setSpacingBetweenCols(float spacingBetweenCols)
Set method for spacingBetweenCols


getSpacingBetweenCols

public float getSpacingBetweenCols()
Get method for spacingBetweenCols


setDistanceUnit

public void setDistanceUnit(org.biomage.Measurement.DistanceUnit distanceUnit)
Set method for distanceUnit

Specified by:
setDistanceUnit in interface org.biomage.Interface.HasDistanceUnit

getDistanceUnit

public org.biomage.Measurement.DistanceUnit getDistanceUnit()
Get method for distanceUnit

Specified by:
getDistanceUnit in interface org.biomage.Interface.HasDistanceUnit