public class SelectionComponentDisplayer extends java.lang.Object implements java.beans.PropertyChangeListener, FigureSelectionListener
Holds a WeakReference on the component. Automatically disposes
itself if the component no longer exists.
| Modifier and Type | Field and Description |
|---|---|
protected DrawingEditor |
editor |
protected boolean |
isVisibleIfCreationTool |
protected int |
minSelectionCount |
protected DrawingView |
view |
protected java.lang.ref.WeakReference<javax.swing.JComponent> |
weakRef |
| Constructor and Description |
|---|
SelectionComponentDisplayer(DrawingEditor editor,
javax.swing.JComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected javax.swing.JComponent |
getComponent() |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
selectionChanged(FigureSelectionEvent evt) |
void |
setMinSelectionCount(int newValue) |
void |
setVisibleIfCreationTool(boolean newValue) |
void |
updateVisibility() |
protected DrawingView view
protected DrawingEditor editor
protected java.lang.ref.WeakReference<javax.swing.JComponent> weakRef
protected int minSelectionCount
protected boolean isVisibleIfCreationTool
public SelectionComponentDisplayer(DrawingEditor editor, javax.swing.JComponent component)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void selectionChanged(FigureSelectionEvent evt)
selectionChanged in interface FigureSelectionListenerpublic void updateVisibility()
protected javax.swing.JComponent getComponent()
public void dispose()
public void setMinSelectionCount(int newValue)
public void setVisibleIfCreationTool(boolean newValue)