|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.gui.AttributeFieldEventHandler
public class AttributeFieldEventHandler
Helper class for AttributeField
. Listens for the current view of the
DrawingEditor.
Constructor Summary | |
---|---|
AttributeFieldEventHandler(AttributeField field)
|
Method Summary | |
---|---|
void |
areaInvalidated(FigureEvent e)
Sent when the drawing area used by the figure needs to be repainted. |
void |
attributeChanged(FigureEvent e)
Sent when an attribute of the figure has changed. |
void |
dispose()
|
void |
figureAdded(FigureEvent e)
Sent when a figure was added to a drawing. |
void |
figureChanged(FigureEvent e)
Sent when the geometry (for example the bounds) of the figure has changed. |
void |
figureHandlesChanged(FigureEvent e)
Sent when handles of a Figure have been added, removed or replaced. |
void |
figureRemoved(FigureEvent e)
Sent when a figure was removed from a drawing. |
void |
figureRequestRemove(FigureEvent e)
Sent when the figure requests to be removed from a drawing. |
protected java.util.Set<Figure> |
getCurrentSelection()
|
DrawingView |
getCurrentView()
|
DrawingEditor |
getEditor()
|
DrawingView |
getView()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
selectionChanged(FigureSelectionEvent evt)
|
void |
setEditor(DrawingEditor newValue)
Sets the drawing editor. |
void |
setView(DrawingView newValue)
Sets the drawing view. |
protected void |
updateField()
|
protected void |
updateFieldEnabledState()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeFieldEventHandler(AttributeField field)
Method Detail |
---|
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void selectionChanged(FigureSelectionEvent evt)
selectionChanged
in interface FigureSelectionListener
protected void updateFieldEnabledState()
protected void updateField()
protected java.util.Set<Figure> getCurrentSelection()
public void areaInvalidated(FigureEvent e)
FigureListener
areaInvalidated
in interface FigureListener
public void attributeChanged(FigureEvent e)
FigureListener
attributeChanged
in interface FigureListener
public void figureHandlesChanged(FigureEvent e)
FigureListener
DrawingViews listen to this event to repopulate the Handles.
A Figure should not fire this event, if just the state or the location of Handle has changed.
figureHandlesChanged
in interface FigureListener
public void figureChanged(FigureEvent e)
FigureListener
figureChanged
in interface FigureListener
public void figureAdded(FigureEvent e)
FigureListener
figureAdded
in interface FigureListener
public void figureRemoved(FigureEvent e)
FigureListener
figureRemoved
in interface FigureListener
public void figureRequestRemove(FigureEvent e)
FigureListener
figureRequestRemove
in interface FigureListener
public void setEditor(DrawingEditor newValue)
public DrawingEditor getEditor()
public void setView(DrawingView newValue)
public DrawingView getView()
public DrawingView getCurrentView()
public void dispose()
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |