org.das2.components.GrannyTextEditor
Graphical editor for "Granny" text strings on the canvas.
GrannyTextEditor( )
Creates new form GrannyTextEditor
EDITOR_TITLE
suggested editor title
addButton
addButton( String tabName, String id, String insert ) → void
add one button. This rev just allows one button to be added.
Parameters
tabName - the name of the new tab
id - a String
insert - text to insert
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
addPainter
addPainter( String id, org.das2.util.GrannyTextRenderer.Painter p ) → void
add the application-specific painter to the GrannyTextRenderer used
to preview.
Parameters
id - id for the painter, where the id is found in the granny text string
p - the painter code which draws on a graphics context.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getComponent
getComponent( ) → java.awt.Component
Returns:
java.awt.Component
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getValue
getValue( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
main
main( String[] args ) → void
Parameters
args - a java.lang.String[]
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setContext
setContext( Object o ) → void
Parameters
o - an Object
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setValue
setValue( String text ) → void
Parameters
text - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]