org.autoplot.GuiSupport

Extra methods to support AutoplotUI.

GuiSupport( org.autoplot.AutoplotUI parent )


createCloneApplicationAction

createCloneApplicationAction( ) → Action

Returns:

javax.swing.Action

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


createEZAccessMenu

createEZAccessMenu( org.autoplot.dom.Plot plot ) → JMenu

Parameters

plot - a Plot

Returns:

javax.swing.JMenu

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


createExamplesPopup

createExamplesPopup( javax.swing.JTextField tf, java.lang.String[][] labels, java.lang.String[][] tooltips ) → MouseAdapter

legacy code for adding examples to a text field.

Parameters

tf - a JTextField
labels - a java.lang.String[]
tooltips - a java.lang.String[]

Returns:

a java.awt.event.MouseAdapter

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


createNewApplicationAction

createNewApplicationAction( ) → Action

Returns:

javax.swing.Action

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


createNewDOMAction

createNewDOMAction( ) → Action

Returns:

javax.swing.Action

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


doCopyDataSetImage

doCopyDataSetImage( ) → void

Returns:

void (returns nothing)

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


doCopyDataSetURL

doCopyDataSetURL( ) → void

copy the current URI to the system clipboard.

Returns:

void (returns nothing)

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


doPasteClipboardPlotElementsIntoPlot

doPasteClipboardPlotElementsIntoPlot( Object client, org.autoplot.dom.ApplicationController controller, org.autoplot.dom.Application state, org.autoplot.dom.PlotElement[][] pes, boolean[][] selected, org.autoplot.dom.Plot targetPlot ) → void

do not use, this is introduced for testing.

Parameters

client - just used as lock object
controller - the drop target's controller.
state - the DOM we are merging in.
pes - the plotElements from state.
selected - a boolean[]
targetPlot - a Plot

Returns:

void (returns nothing)

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


doPasteDataSetURL

doPasteDataSetURL( ) → void

Returns:

void (returns nothing)

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


editPlotElement

editPlotElement( org.autoplot.ApplicationModel applicationModel, java.awt.Component parent ) → void

Parameters

applicationModel - an ApplicationModel
parent - a Component

Returns:

void (returns nothing)

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


getFileNameExtensionFilter

getFileNameExtensionFilter( String description, String ext ) → FileFilter

get simple filter based on extension for use with JFileChooser.

Parameters

description - descriptions, like "png image file"
ext - file extension, like ".png"

Returns:

the FileFilter

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


getFrameForComponent

getFrameForComponent( java.awt.Component parent ) → Frame

attempt to get the Frame for the component, which may already be a Frame.

Parameters

parent - a Component

Returns:

a java.awt.Frame

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


getPrintAction

getPrintAction( org.autoplot.dom.Application app, java.awt.Component parent, String ext ) → Action

return an action which will send the canvas to the printer.

Parameters

app - app containing the canvas
parent - the focus dialog
ext - extention like "svg" or "pdf" or "png"

Returns:

a javax.swing.Action

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


getStylePanel

getStylePanel( org.autoplot.RenderType renderType ) → StylePanel

return a GUI controller for the RenderType.

Parameters

renderType - the render type, such as RenderType.colorScatter

Returns:

the GUI controller.

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


importBookmarks

importBookmarks( String bookmarksFile ) → void

Maybe import the bookmarks in response to the "bookmarks:..." URI.

Parameters

bookmarksFile - URL which refers to a local, HTTP, HTTPS, or FTP resource.

Returns:

void (returns nothing)

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


pasteClipboardIntoPlot

pasteClipboardIntoPlot( java.awt.Component app, org.autoplot.dom.ApplicationController controller, org.autoplot.dom.Plot newP ) → void

replace the plot with the plot stored in the clipboard. This plot in the clipboard is simply a one-plot .vap file.

Parameters

app - component parent for dialogs.
controller - the application controller where we
newP - the plotElements are added to this plot

Returns:

void (returns nothing)

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


pasteClipboardPlotElementsIntoPlot

pasteClipboardPlotElementsIntoPlot( java.awt.Component app, org.autoplot.dom.ApplicationController controller, org.autoplot.dom.Plot targetPlot ) → void

allow plot elements from the clipboard single-plot .vap into the target plot. This will just insert new plot elements which point at the same data source. This was added to make it easier to add reference lines (Fce, Fuh) to spectrograms of each B-field component.

Parameters

app - component parent for dialogs.
controller - the application controller where we
targetPlot - the plotElements are added to this plot

Returns:

void (returns nothing)

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


pickFont

pickFont( java.awt.Frame parent, org.autoplot.ApplicationModel app ) → Font

show the pick font dialog. The font chosen, is applied and returned, or null if cancel was pressed.

Parameters

parent - dialog parent.
app - the applicationModel with canvas.

Returns:

a java.awt.Font

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


raiseApplicationWindow

raiseApplicationWindow( java.awt.Frame frame ) → void

raise the application window http://stackoverflow.com/questions/309023/howto-bring-a-java-window-to-the-front This is not working for me on Ubuntu 10.04.

Parameters

frame - a Frame

Returns:

void (returns nothing)

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


setClipboard

setClipboard( String s ) → void

set the system clipboard (cut-n-paste mouse buffer).

Parameters

s - a String

Returns:

void (returns nothing)

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


setFont

setFont( org.autoplot.ApplicationModel app, java.awt.Font nf ) → Font

encapsulates the goofy logic about setting the font.

Parameters

app - an ApplicationModel
nf - a Font

Returns:

the Font actually used.

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