org.autoplot.dom.PlotController

Manages a Plot node, for example listening for autoRange updates and layout changes.

PlotController( org.autoplot.dom.Application dom, org.autoplot.dom.Plot domPlot, org.das2.graph.DasPlot dasPlot, org.das2.graph.DasColorBar colorbar )

PlotController( org.autoplot.dom.Application dom, org.autoplot.dom.Plot plot )


pdListen

the plot elements we listen to for autoranging.


rowColListener


PROP_AUTOBINDING

true indicates that the controller is allowed to automatically add bindings to the plot axes.


PROP_ACTIVEDATASET


PROP_PLOTELEMENTPROPSMENUITEM


contextOverview

contextOverview( ) → Plot

add a context overview. This uses controllers, and should be rewritten so that it doesn't.

Returns:

the new plot which is the overview.

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


doHints

doHints( org.autoplot.dom.Axis axis, String hintsString ) → void

implement hints like width=40&includeZero=T.

 includeZero   T or F     make sure that zero is within the result.
 min           0          make zero be the minimum value.
 max           100        make 100 be the maximum value
 width         30nT       use this width.  This is a formatted datum which 
                          is parsed with the units of the axis, or with the number of cycles for log.
 log           T or F     force log or linear axis
 widths        30nT,300nT,3000nT   use one of these widths
 center        0          constrain the center to be this location
 extend        10         percent to extend the range beyond the min and the max, so the width is this percent more.  This is done after other constraints.
               0,10       percent the max by ten percent.
 (not yet) reluctant     T or F     use the old range if it is acceptable.
 
Width or width imply that extend=0, but extend=10 may become the default.

Parameters

axis - the axis to which we are applying the hints.
hintsString - the string, ampersand-delimited; or null when no hints should be applied.

Returns:

void (returns nothing)

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


getActiveDataSet

getActiveDataSet( ) → QDataSet

Returns:

org.das2.qds.QDataSet

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


getApplication

getApplication( ) → Application

Returns:

org.autoplot.dom.Application

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


getBindings

getBindings( ) → BindingModel

Returns:

org.autoplot.dom.BindingModel[]

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

getBindings( int index ) → BindingModel

getColumn

getColumn( ) → Column

return the row for this plot. This just calls dom.canvases.get(0).getController().getRowFor(this.plot);

Returns:

an org.autoplot.dom.Column

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


getDasColorBar

getDasColorBar( ) → DasColorBar

Returns:

org.das2.graph.DasColorBar

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


getDasPlot

getDasPlot( ) → DasPlot

Returns:

org.das2.graph.DasPlot

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


getExpertMenuItems

getExpertMenuItems( ) → JMenuItem

Returns:

javax.swing.JMenuItem[]

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


getPlot

getPlot( ) → Plot

Returns:

org.autoplot.dom.Plot

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


getPlotElement

getPlotElement( ) → PlotElement

return the plotElement we are listening to.

Returns:

an org.autoplot.dom.PlotElement

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


getPlotElementPropsMenuItem

getPlotElementPropsMenuItem( ) → JMenuItem

Returns:

javax.swing.JMenuItem

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


getRow

getRow( ) → Row

return the row for this plot. This just calls dom.canvases.get(0).getController().getRowFor(this.plot);

Returns:

an org.autoplot.dom.Row

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


isAutoBinding

isAutoBinding( ) → boolean

Returns:

boolean

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


moveToJustAbove

moveToJustAbove( org.autoplot.dom.PlotElement reference, org.autoplot.dom.PlotElement p ) → void

move the plot element to just above the reference element.

Parameters

reference - a PlotElement
p - a PlotElement

Returns:

void (returns nothing)

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


moveToJustBelow

moveToJustBelow( org.autoplot.dom.PlotElement reference, org.autoplot.dom.PlotElement p ) → void

move the plot element to just below the reference element.

Parameters

reference - a PlotElement
p - a PlotElement

Returns:

void (returns nothing)

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


resetZoom

resetZoom( boolean x, boolean y, boolean z ) → void

set the zoom so that all of the plotElements' data is visible. This means finding the "union" of the plotElements' plotDefault ranges. If any plotElement's default log is false, then the new setting will be false.

Parameters

x - reset zoom in the x dimension.
y - reset zoom in the y dimension.
z - reset zoom in the z dimension.

Returns:

void (returns nothing)

See Also:

AutoplotUtil#resetZoomX(org.autoplot.dom.Application, org.autoplot.dom.Plot)
AutoplotUtil#resetZoomY(org.autoplot.dom.Application, org.autoplot.dom.Plot)
AutoplotUtil#resetZoomZ(org.autoplot.dom.Application, org.autoplot.dom.Plot)


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


setActiveDataSet

setActiveDataSet( QDataSet activeDataSet ) → void

Parameters

activeDataSet - a QDataSet

Returns:

void (returns nothing)

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


setAutoBinding

setAutoBinding( boolean autoBinding ) → void

Parameters

autoBinding - a boolean

Returns:

void (returns nothing)

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


setExpertMenuItems

setExpertMenuItems( javax.swing.JMenuItem[] items ) → void

provide spot to locate the menu items that are hidden in basic mode.

Parameters

items - a javax.swing.JMenuItem[]

Returns:

void (returns nothing)

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


setExpertMode

setExpertMode( boolean expert ) → void

Parameters

expert - a boolean

Returns:

void (returns nothing)

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


setPlotElementPropsMenuItem

setPlotElementPropsMenuItem( javax.swing.JMenuItem pelePropsMenuItem ) → void

Parameters

pelePropsMenuItem - a JMenuItem

Returns:

void (returns nothing)

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


setTitleAutomatically

setTitleAutomatically( String title ) → void

set the title, leaving autoLabel true.

Parameters

title - a String

Returns:

void (returns nothing)

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


toBottom

toBottom( org.autoplot.dom.PlotElement p ) → void

move the plot element to the bottom.

Parameters

p - a PlotElement

Returns:

void (returns nothing)

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


toString

toString( ) → String

Returns:

java.lang.String

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


toTop

toTop( org.autoplot.dom.PlotElement p ) → void

move the plot element to the top.

Parameters

p - the plot element

Returns:

void (returns nothing)

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