org.jhotdraw.samples.svg.gui
Class SelectionComponentDisplayer
java.lang.Object
org.jhotdraw.samples.svg.gui.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.
- Author:
- Werner Randelshofer
@version 1.0 23.05.2008 Created.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
protected DrawingEditor editor
component
protected javax.swing.JComponent component
minSelectionCount
protected int minSelectionCount
isVisibleIfCreationTool
protected boolean isVisibleIfCreationTool
SelectionComponentDisplayer
public SelectionComponentDisplayer(DrawingEditor editor,
javax.swing.JComponent component)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener
selectionChanged
public void selectionChanged(FigureSelectionEvent evt)
- Specified by:
selectionChanged in interface FigureSelectionListener
updateVisibility
public void updateVisibility()
dispose
public void dispose()
setMinSelectionCount
public void setMinSelectionCount(int newValue)
setVisibleIfCreationTool
public void setVisibleIfCreationTool(boolean newValue)