org.autoplot.dom.Canvas

The state of the canvas which is the area on which plots are drawn.

Canvas( )


PROP_HEIGHT


PROP_WIDTH


PROP_FITTED

boolean property indicates that the canvas is resizable.


PROP_FONT


PROP_ROWS


PROP_COLUMNS


PROP_MARGINROW


PROP_MARGINCOLUMN

childNodes( ) → java.util.List [view source]
copy( ) → org.autoplot.dom.DomNode [view source]
diffs( org.autoplot.dom.DomNode node ) → java.util.List [view source]
getColumns( ) → org.autoplot.dom.Column[] [view source]
getColumns( int index ) → org.autoplot.dom.Column [view source]
getController( ) → org.autoplot.dom.CanvasController [view source]
getFont( ) → String [view source]
getHeight( ) → int [view source]
getMarginColumn( ) → org.autoplot.dom.Column [view source]
getMarginRow( ) → org.autoplot.dom.Row [view source]
getRows( ) → org.autoplot.dom.Row[] [view source]
getRows( int index ) → org.autoplot.dom.Row [view source]
getWidth( ) → int [view source]
isFitted( ) → boolean [view source]
setColumns( org.autoplot.dom.Column[] columns ) → void [view source]
setColumns( int index, org.autoplot.dom.Column newColumns ) → void [view source]
setFitted( boolean fitted ) → void [view source]
setFont( String font ) → void [view source]

setHeight

setHeight( int height ) → void

set height before firing off changes

Parameters

height - an int

Returns:

void (returns nothing)

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

setMarginColumn( org.autoplot.dom.Column marginColumn ) → void [view source]
setMarginRow( org.autoplot.dom.Row marginRow ) → void [view source]
setRows( org.autoplot.dom.Row[] rows ) → void [view source]
setRows( int index, org.autoplot.dom.Row newRows ) → void [view source]

setSize

setSize( int width, int height ) → void

set both the width and height before firing off changes.

Parameters

width - the canvas width in pixels.
height - the canvas height in pixels.

Returns:

void (returns nothing)

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


setWidth

setWidth( int width ) → void

set width before firing off changes

Parameters

width - an int

Returns:

void (returns nothing)

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

syncTo( org.autoplot.dom.DomNode n ) → void [view source]
syncTo( org.autoplot.dom.DomNode n, java.util.List exclude ) → void [view source]