org.das2.graph.DasRow

DasRow object represents the vertical position on the canvas.

DasRow( org.das2.graph.DasCanvas parent, double top, double bottom )

create a DasRow with the normal position and no offsets.

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

create a DasRow


NULL

placeholder for unassigned value.


bottom

bottom( ) → int

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

Returns:

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

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


create

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

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"

Returns:

a new DasRow.

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

create( org.das2.graph.DasCanvas parent ) → org.das2.graph.DasRow
create( org.das2.graph.DasCanvas parent, int iplot, int nplot ) → org.das2.graph.DasRow

createAttachedRow

createAttachedRow( double ptop, double pbottom ) → org.das2.graph.DasRow

create a row that is positioned relative to this row.

Parameters

ptop - the normal position
pbottom - the normal position

Returns:

the new row.

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


createSubRow

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

getHeight( ) → int

return the height in points (pixels) of the row.

Returns:

the height in points (pixels) of the row.

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


top

top( ) → int

return the device location of the top of the row.

Returns:

the device location of the top of the row.

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