org.das2.graph
Class DasColumn
java.lang.Object
org.das2.graph.DasDevicePosition
org.das2.graph.DasColumn
- All Implemented Interfaces:
- java.io.Serializable, Editable
public class DasColumn
- extends DasDevicePosition
- See Also:
- Serialized Form
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 |
NULL
public static final DasColumn NULL
DasColumn
public DasColumn(DasCanvas parent,
double left,
double right)
DasColumn
public DasColumn(DasCanvas canvas,
DasColumn parent,
double nMin,
double nMax,
double emMin,
double emMax,
int ptMin,
int ptMax)
create
public static DasColumn create(DasCanvas canvas,
DasColumn parent,
java.lang.String minStr,
java.lang.String maxStr)
- makes a new DasColumn 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 DasColumn is used.parent
- if non-null, this DasColumn 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
createSubColumn
public DasColumn createSubColumn(double pleft,
double pright)
- Deprecated. This created a column that was not attached to anything, so
it was simply a convenience method that didn't save much effort.
getWidth
public int getWidth()
create
public static DasColumn create(DasCanvas parent)
create
public static DasColumn create(DasCanvas parent,
int iplot,
int nplot)
createAttachedColumn
public DasColumn createAttachedColumn(double pleft,
double pright)
getDOMElement
public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
left
public int left()
- return the left of the column.
- Returns:
right
public int right()
- return the right (non-inclusive) of the column.
- Returns: