org.das2.graph.Legend

Legend component for the canvas. This is similar to the DasPlot legend, whose code was derived from here.

Legend( )


add

add( org.das2.components.propertyeditor.Displayable rend, String label ) → void

Parameters

rend - a Displayable
label - a String

Returns:

void (returns nothing)

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

add( javax.swing.Icon icon, String label ) → void

getIcon

getIcon( java.awt.Color color ) → Icon

Parameters

color - a Color

Returns:

javax.swing.Icon

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


paintComponent

paintComponent( java.awt.Graphics g1 ) → void

Parameters

g1 - a Graphics

Returns:

void (returns nothing)

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


remove

remove( org.das2.components.propertyeditor.Displayable rend ) → void

Parameters

rend - a Displayable

Returns:

void (returns nothing)

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


resize

resize( ) → void

Returns:

void (returns nothing)

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