JHotDraw 7.2

org.jhotdraw.samples.svg.gui
Class SelectionComponentDisplayer

java.lang.Object
  extended by 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.

Field Summary
protected  javax.swing.JComponent component
           
protected  DrawingEditor editor
           
protected  boolean isVisibleIfCreationTool
           
protected  int minSelectionCount
           
 
Constructor Summary
SelectionComponentDisplayer(DrawingEditor editor, javax.swing.JComponent component)
           
 
Method Summary
 void dispose()
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void selectionChanged(FigureSelectionEvent evt)
           
 void setMinSelectionCount(int newValue)
           
 void setVisibleIfCreationTool(boolean newValue)
           
 void updateVisibility()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected DrawingEditor editor

component

protected javax.swing.JComponent component

minSelectionCount

protected int minSelectionCount

isVisibleIfCreationTool

protected boolean isVisibleIfCreationTool
Constructor Detail

SelectionComponentDisplayer

public SelectionComponentDisplayer(DrawingEditor editor,
                                   javax.swing.JComponent component)
Method Detail

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)

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.