org.diylc.common
Interface ISelectionProcessor

All Known Subinterfaces:
IPlugInPort
All Known Implementing Classes:
Presenter

public interface ISelectionProcessor


Method Summary
 void expandSelection(ExpansionMode expansionMode)
          Expands the current selection to include surrounding components.
 java.util.List<IDIYComponent<?>> findComponentsAt(java.awt.Point point)
          Finds all components at the specified location, sorted by z-index from top to bottom.
 java.util.List<IDIYComponent<?>> getSelectedComponents()
          Returns the current ComponentTransferable.
 void rotateSelection(int direction)
          Rotates selection for 90 degrees.
 void selectAll(int layer)
          Selects all components in the project.
 void updateSelection(java.util.List<IDIYComponent<?>> newSelection)
          Updates the selection with the specified list of component.
 

Method Detail

getSelectedComponents

java.util.List<IDIYComponent<?>> getSelectedComponents()
Returns the current ComponentTransferable.

Returns:

updateSelection

void updateSelection(java.util.List<IDIYComponent<?>> newSelection)
Updates the selection with the specified list of component. Also, updates control point map with all components that are stuck to the newly selected components.

Parameters:
newSelection -

findComponentsAt

java.util.List<IDIYComponent<?>> findComponentsAt(java.awt.Point point)
Finds all components at the specified location, sorted by z-index from top to bottom.

Parameters:
point -
Returns:

expandSelection

void expandSelection(ExpansionMode expansionMode)
Expands the current selection to include surrounding components. Options are controlled with expansionMode flag.

Parameters:
expansionMode -

selectAll

void selectAll(int layer)
Selects all components in the project.

Parameters:
int - layer if > 0, designates which layer to select. If <= 0 we should select all regardless of layer

rotateSelection

void rotateSelection(int direction)
Rotates selection for 90 degrees.

Parameters:
direction - 1 for clockwise, -1 for counter-clockwise