org.autoplot.util.CanvasLayoutPanel

This is the small GUI in the upper left corner of the layout tab, which shows abstractly where plots sit in relation to one another, for reference.

CanvasLayoutPanel( )


PROP_COMPONENT


PROP_SELECTEDCOMPONENTS


addComponentType

addComponentType( java.lang.Class c, java.awt.Color color ) → void

mark this type of component with the given color.

Parameters

c - the class of the component, like org.das2.graph.DasPlot.class
color - the color, like Color.BLUE

Returns:

void (returns nothing)

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


getCanvasComponentAt

getCanvasComponentAt( int x, int y ) → Object

return the plot component at the position on this GUI.

Parameters

x - the x position, 0 is left side of this component.
y - the x position, 0 is top of this component.

Returns:

DasPlot, DasAxis, etc.

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


getCanvasComponentsWithin

getCanvasComponentsWithin( java.awt.Rectangle r ) → List

get the canvas components within the rectangle.

Parameters

r - rectangle within the GUI.

Returns:

a java.util.List

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


getComponent

getComponent( ) → Object

get the primary selected component.

Returns:

an Object

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


getSelectedComponents

getSelectedComponents( ) → List

get the user-selected components.

Returns:

a list containing the components.

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


setComponent

setComponent( Object component ) → void

set the primary selected component.

Parameters

component - null or the selected component.

Returns:

void (returns nothing)

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


setContainer

setContainer( org.das2.graph.DasCanvas c ) → void

this is the JComponent we are monitoring. If this is a DasCanvas, then a special listener is added for repaints.

Parameters

c - a DasCanvas

Returns:

void (returns nothing)

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


setRectangleSelect

setRectangleSelect( java.awt.Rectangle r ) → void

set the bounds of the selecting rectangle, to provide feedback.

Parameters

r - a Rectangle

Returns:

void (returns nothing)

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


setSelectedComponents

setSelectedComponents( java.util.List selectedComponents ) → void

set the selected components.

Parameters

selectedComponents - a java.util.List

Returns:

void (returns nothing)

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

setSelectedComponents( java.awt.Rectangle r ) → void