public class SelectionManager extends Object implements PropertyChangeListener, CustomizerListener
Constructor and Description |
---|
SelectionManager()
Creates a new instance of SelectionManager
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomizerSelectionListener(CustomizerSelectionListener listener) |
void |
clearSelection() |
void |
customizerResetBoundsRel(CustomizerEvent e) |
void |
customizerReshapeRel(CustomizerEvent e) |
void |
deleteSelection() |
void |
deselect(JCustomizer customizer) |
JCustomizer |
getActiveCustomizer() |
Set<String> |
getCommonCustomizableProperties()
Getter for property commonCustomizableProperties.
|
JCustomizer[] |
getSelectedCustomizers() |
boolean |
isFireingSelectionChanged()
Getter for property fireingSelectionChanged.
|
boolean |
isSelected(JCustomizer customizer) |
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
|
void |
removeCustomizerSelectionListener(CustomizerSelectionListener listener) |
void |
select(JCustomizer customizer)
Add the specified customizer to the selection.
|
void |
select(JCustomizer customizer,
Point point)
Add the specified customizer to the selection.
|
void |
singleSelect(JCustomizer customizer)
Clear the current selection and then add the specified customizer to the selection.
|
void |
singleSelect(JCustomizer customizer,
Point point)
Clear the current selection and then add the specified customizer to the selection.
|
public SelectionManager()
public void select(JCustomizer customizer, Point point)
customizer
- the customizer to be added to the current selectionpoint
- If the specified point is in the region of a resize handle the state of the customizer will be
changed to the accordant resize state. Otherwise the state will be changed to "move".public void select(JCustomizer customizer)
customizer
- the customizer to be added to the current selectionpublic void singleSelect(JCustomizer customizer, Point point)
customizer
- the customizer to be added to the current selectionpoint
- If the specified point is in the region of a resize handle the state of the customizer will be
changed to the accordant resize state. Otherwise the state will be changed to "move".public void singleSelect(JCustomizer customizer)
customizer
- the customizer to be added to the current selectionpublic void deselect(JCustomizer customizer)
public boolean isSelected(JCustomizer customizer)
public void clearSelection()
public void deleteSelection()
public void addCustomizerSelectionListener(CustomizerSelectionListener listener)
public void removeCustomizerSelectionListener(CustomizerSelectionListener listener)
public JCustomizer[] getSelectedCustomizers()
public JCustomizer getActiveCustomizer()
public boolean isFireingSelectionChanged()
public Set<String> getCommonCustomizableProperties()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source and the property that has changed.public void customizerResetBoundsRel(CustomizerEvent e)
customizerResetBoundsRel
in interface CustomizerListener
public void customizerReshapeRel(CustomizerEvent e)
customizerReshapeRel
in interface CustomizerListener
Copyright © 2012–2015 SoftSmithy. All rights reserved.