## org.das2.graph.DasColumn

DasColumn object represents the horizontal position on the canvas.

## DasColumn( org.das2.graph.DasCanvas parent, double nMin, double nMax )

create a DasColumn with the normal position and no offsets.

## DasColumn( org.das2.graph.DasCanvas canvas, org.das2.graph.DasColumn parent, double nMin, double nMax, double emMin, double emMax, int ptMin, int ptMax )

create a DasColumn

## NULL

placeholder for unassigned value.

## create

create( org.das2.graph.DasCanvas canvas, org.das2.graph.DasColumn parent, String minStr, String maxStr ) → org.das2.graph.DasColumn

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"

### Returns:

a new DasColumn
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## create

create( org.das2.graph.DasCanvas parent ) → org.das2.graph.DasColumn

create a DasColumn

### Parameters

parent - the canvas where this lives.

### Returns:

DasColumn
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## createAttachedColumn

createAttachedColumn( double pleft, double pright ) → org.das2.graph.DasColumn

create a column that is positioned relative to this column.

### Parameters

pleft - the normal position
pright - the normal position

### Returns:

the new row.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getParentColumnName

getParentColumnName( ) → String

return the name of the column this is attached to, or empty string.

### Returns:

the name of the column this is attached to, or empty string.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getWidth

getWidth( ) → int

return the width in points (pixels) of the column.

### Returns:

the width in points (pixels) of the column.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## left

left( ) → int

return pixel location of the left of the column.

### Returns:

pixel location of the left of the column.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## right

right( ) → int

return pixel location the right (non-inclusive) of the column.

### Returns:

pixel location the right (non-inclusive) of the column.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setParentColumn

setParentColumn( org.das2.graph.DasColumn c ) → void

reset the parent to be this new DasColumn, or null.

### Parameters

c - the new parent column, or null.

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]