org.das2.graph.DasCanvasComponent
Super class providing base functionality for all canvas components such as
DasAxis, DasPlot, and DasLabel.
PROPERTIES_ACTION
action for entering the properties editor.
getActions
getActions( ) → Action
return a list of actions. This is used by the DasMouseInputAdapter.
Returns:
the actions this provides.
search for examples
view on GitHub
view source
getActiveRegion
getActiveRegion( ) → Shape
returns the active region of the canvas component, which is not necessarily the bounds.
Returns:
the active region of the canvas component
search for examples
view on GitHub
view source
getDasMouseInputAdapter
getDasMouseInputAdapter( ) → DasMouseInputAdapter
Get the DasMouseInputAdapter, which handles mouse input for the component.
Returns:
the dasMouseInputAdapter.
search for examples
view on GitHub
view source
getEmSize
getEmSize( ) → double
convenient method intended to encourage use of em's. returns the em size for the canvas.
We define the em size as the height of the component's font.
Returns:
the height of the component's font.
search for examples
view on GitHub
view source
getFont
getFont( ) → Font
return the font used to paint the component.
Returns:
the font.
search for examples
view on GitHub
view source
getLineThicknessDouble
getLineThicknessDouble( String lineThickness ) → double
return the thickness of the lines (in points or pixels), as specified
in the lineThickness parameter. Example inputs include "", "1px", and
".1em".
Parameters
lineThickness -
Returns:
double
search for examples
view on GitHub
view source
getRow
getRow( ) → DasRow
accessor for the DasRow used for positioning the component.
Returns:
DasRow used for positioning the component.
search for examples
view on GitHub
view source
setRow
setRow( org.das2.graph.DasRow r ) → void
set the DasRow for positioning the component vertically.
The current row is disconnected, and a propertyChange is
fired.
Parameters
r - the DasRow
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
showProperties
showProperties( ) → void
popup the PropertyEditor for editing the state
of this component.
Returns:
void (returns nothing)
search for examples
view on GitHub
view source