org.jhotdraw.draw.event
Class SelectionComponentDisplayer
- java.lang.Object
-
- org.jhotdraw.draw.event.SelectionComponentDisplayer
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, FigureSelectionListener
public class SelectionComponentDisplayer extends java.lang.Object implements java.beans.PropertyChangeListener, FigureSelectionListener
Calls setVisible(true/false) on components, which show attributes of the drawing editor and of its views based on the current selection.Holds a
WeakReferenceon the component. Automatically disposes itself if the component no longer exists.
-
-
Constructor Summary
Constructors Constructor and Description SelectionComponentDisplayer(DrawingEditor editor, javax.swing.JComponent component)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()voidpropertyChange(java.beans.PropertyChangeEvent evt)voidselectionChanged(FigureSelectionEvent evt)voidsetMinSelectionCount(int newValue)voidsetVisibleIfCreationTool(boolean newValue)voidupdateVisibility()
-
-
-
Constructor Detail
-
SelectionComponentDisplayer
public SelectionComponentDisplayer(DrawingEditor editor, javax.swing.JComponent component)
-
-
Method Detail
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
selectionChanged
public void selectionChanged(FigureSelectionEvent evt)
- Specified by:
selectionChangedin interfaceFigureSelectionListener
-
updateVisibility
public void updateVisibility()
-
dispose
public void dispose()
-
setMinSelectionCount
public void setMinSelectionCount(int newValue)
-
setVisibleIfCreationTool
public void setVisibleIfCreationTool(boolean newValue)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG