org.das2.graph
Class DasRow

java.lang.Object
  extended by org.das2.graph.DasDevicePosition
      extended by org.das2.graph.DasRow
All Implemented Interfaces:
java.io.Serializable, Editable

public class DasRow
extends DasDevicePosition

See Also:
Serialized Form

Field Summary
static DasRow NULL
           
 
Fields inherited from class org.das2.graph.DasDevicePosition
canvas, listenerList, parent
 
Constructor Summary
DasRow(DasCanvas canvas, DasRow parent, double nMin, double nMax, double emMin, double emMax, int ptMin, int ptMax)
           
DasRow(DasCanvas parent, double top, double bottom)
           
 
Method Summary
 int bottom()
          return the device location of the bottom (non-inclusive) of the row.
static DasRow create(DasCanvas parent)
           
static DasRow create(DasCanvas canvas, DasRow parent, java.lang.String minStr, java.lang.String maxStr)
          makes a new DasRow by parsing a string like "100%-5em+3pt" to get the offsets.
static DasRow create(DasCanvas parent, int iplot, int nplot)
           
 DasRow createAttachedRow(double ptop, double pbottom)
           
 DasRow createSubRow(double ptop, double pbottom)
          Deprecated. This created a row that was not attached to anything, so it was simply a convenience method that didn't save much effort.
 org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
           
 int getHeight()
           
 int top()
          return the device location of the top of the row.
 
Methods inherited from class org.das2.graph.DasDevicePosition
addPropertyChangeListener, addPropertyChangeListener, addpwUpdateListener, contains, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireUpdate, formatLayoutStr, getCanvas, getDasName, getDeviceSize, getDMaximum, getDMiddle, getDMinimum, getEmMaximum, getEmMinimum, getEmSize, getMaximum, getMinimum, getParent, getParentDevicePosition, getPtMaximum, getPtMinimum, isValueIsAdjusting, mutatorLock, parseFormatStr, parseLayoutStr, removePropertyChangeListener, removepwUpdateListener, setDasName, setDMaximum, setDMinimum, setDPosition, setEmMaximum, setEmMinimum, setMaximum, setMinimum, setParent, setPtMaximum, setPtMinimum, toRectangle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final DasRow NULL
Constructor Detail

DasRow

public DasRow(DasCanvas parent,
              double top,
              double bottom)

DasRow

public DasRow(DasCanvas canvas,
              DasRow parent,
              double nMin,
              double nMax,
              double emMin,
              double emMax,
              int ptMin,
              int ptMax)
Method Detail

create

public static DasRow create(DasCanvas canvas,
                            DasRow parent,
                            java.lang.String minStr,
                            java.lang.String maxStr)
makes a new DasRow by parsing a string like "100%-5em+3pt" to get the offsets. The three qualifiers are "%", "em", and "pt", but "px" is allowed as well as surely people will use that by mistake. If an offset or the normal position is not specified, then 0 is used.

Parameters:
canvas - the canvas for the layout, ignored when a parent DasRow is used.
parent - if non-null, this DasRow is specified with respect to parent.
minStr - a string like "0%+5em"
maxStr - a string like "100%-7em"
Throws:
java.lang.IllegalArgumentException - if the strings cannot be parsed

createSubRow

public DasRow createSubRow(double ptop,
                           double pbottom)
Deprecated. This created a row that was not attached to anything, so it was simply a convenience method that didn't save much effort.


getHeight

public int getHeight()

create

public static DasRow create(DasCanvas parent)

create

public static DasRow create(DasCanvas parent,
                            int iplot,
                            int nplot)

createAttachedRow

public DasRow createAttachedRow(double ptop,
                                double pbottom)

getDOMElement

public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)

top

public int top()
return the device location of the top of the row.

Returns:

bottom

public int bottom()
return the device location of the bottom (non-inclusive) of the row.

Returns: