public class DasColumn extends DasDevicePosition
| Modifier and Type | Field and Description |
|---|---|
static DasColumn |
NULL
placeholder for unassigned value.
|
canvas, listenerList, parent, PROP_DMAXIMUM, PROP_DMINIMUM, PROP_EMMAXIMUM, PROP_EMMINIMUM, PROP_MAXIMUM, PROP_MAXLAYOUT, PROP_MINIMUM, PROP_MINLAYOUT, PROP_PARENT_DEVICE_POSITION_DAS_NAME, PROP_PTMAXIMUM, PROP_PTMINIMUM| Constructor and Description |
|---|
DasColumn(DasCanvas canvas,
DasColumn parent,
double nMin,
double nMax,
double emMin,
double emMax,
int ptMin,
int ptMax)
create a DasColumn
|
DasColumn(DasCanvas parent,
double nMin,
double nMax)
create a DasColumn with the normal position and no offsets.
|
| Modifier and Type | Method and Description |
|---|---|
static DasColumn |
create(DasCanvas parent)
create a DasColumn
|
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.
|
DasColumn |
createAttachedColumn(double pleft,
double pright)
create a column that is positioned relative to this column.
|
java.lang.String |
getParentColumnName()
return the name of the column this is attached to, or empty string.
|
int |
getWidth()
return the width in points (pixels) of the column.
|
int |
left()
return pixel location of the left of the column.
|
int |
right()
return pixel location the right (non-inclusive) of the column.
|
void |
setParentColumn(DasColumn c)
reset the parent to be this new DasColumn, or null.
|
addOffset, addPropertyChangeListener, addPropertyChangeListener, addUpdateListener, contains, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireUpdate, formatFormatStr, formatLayoutStr, formatLayoutStr, formatLayoutStr, getCanvas, getDasName, getDeviceSize, getDMaximum, getDMiddle, getDMinimum, getEmMaximum, getEmMinimum, getEmSize, getMaximum, getMaxLayout, getMinimum, getMinLayout, getParent, getParentDasName, getParentDevicePosition, getPtMaximum, getPtMinimum, isValueIsAdjusting, mutatorLock, parseFormatStr, parseLayoutStr, parseLayoutStr, parseLayoutStr, removeListeners, removePropertyChangeListener, removePropertyChangeListener, removeUpdateListener, revalidate, setDasName, setDMaximum, setDMinimum, setDPosition, setEmMaximum, setEmMinimum, setMax, setMaximum, setMaxLayout, setMin, setMinimum, setMinLayout, setParent, setParentDevicePosition, setPtMaximum, setPtMinimum, toRectangle, toStringpublic static final DasColumn NULL
public DasColumn(DasCanvas parent, double nMin, double nMax)
parent - the canvas where this lives.nMin - normal position of the left with respect to the canvas.nMax - normal position of the right with respect to the canvaspublic DasColumn(DasCanvas canvas, DasColumn parent, double nMin, double nMax, double emMin, double emMax, int ptMin, int ptMax)
canvas - the canvas where this lives.parent - the parent row or null to which this is relative.nMin - normal position of the left with respect to the canvas or parent if non-null.nMax - normal position of the right with respect to the canvas or parent if non-null.emMin - em offset of the left from the minimum position, in canvas font heights.emMax - em offset of the right from the maximum position, in canvas font heights.ptMin - point offset of the left from the minimum position, note points are the same as pixels.ptMax - point offset of the right from the maximum position, note points are the same as pixels.public static DasColumn create(DasCanvas canvas, DasColumn parent, java.lang.String minStr, java.lang.String maxStr)
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"java.lang.IllegalArgumentException - if the strings cannot be parsedpublic int getWidth()
public static DasColumn create(DasCanvas parent)
parent - the canvas where this lives.public DasColumn createAttachedColumn(double pleft, double pright)
pleft - the normal positionpright - the normal positionpublic int left()
public int right()
public void setParentColumn(DasColumn c)
c - the new parent column, or null.public java.lang.String getParentColumnName()