org.jhotdraw.draw.event
Class FigureAdapter
- java.lang.Object
-
- org.jhotdraw.draw.event.FigureAdapter
-
- All Implemented Interfaces:
- java.util.EventListener, FigureListener
- Direct Known Subclasses:
- DrawingComponentRepainter, SelectionComponentRepainter
public class FigureAdapter extends java.lang.Object implements FigureListener
An abstract adapter class for receivingFigureEvents. This class exists as a convenience for creatingFigureListenerobjects.
-
-
Constructor Summary
Constructors Constructor and Description FigureAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidareaInvalidated(FigureEvent e)Sent when the drawing area used by the figure needs to be repainted.voidattributeChanged(FigureEvent e)Sent when an attribute of the figure has changed.voidfigureAdded(FigureEvent e)Sent when a figure was added to a drawing.voidfigureChanged(FigureEvent e)Sent when the geometry (for example the bounds) of the figure has changed.voidfigureHandlesChanged(FigureEvent e)Sent when handles of a Figure have been added, removed or replaced.voidfigureRemoved(FigureEvent e)Sent when a figure was removed from a drawing.voidfigureRequestRemove(FigureEvent e)Sent when the figure requests to be removed from a drawing.
-
-
-
Method Detail
-
areaInvalidated
public void areaInvalidated(FigureEvent e)
Description copied from interface:FigureListenerSent when the drawing area used by the figure needs to be repainted.- Specified by:
areaInvalidatedin interfaceFigureListener
-
attributeChanged
public void attributeChanged(FigureEvent e)
Description copied from interface:FigureListenerSent when an attribute of the figure has changed.- Specified by:
attributeChangedin interfaceFigureListener
-
figureAdded
public void figureAdded(FigureEvent e)
Description copied from interface:FigureListenerSent when a figure was added to a drawing.- Specified by:
figureAddedin interfaceFigureListener
-
figureChanged
public void figureChanged(FigureEvent e)
Description copied from interface:FigureListenerSent when the geometry (for example the bounds) of the figure has changed.- Specified by:
figureChangedin interfaceFigureListener
-
figureRemoved
public void figureRemoved(FigureEvent e)
Description copied from interface:FigureListenerSent when a figure was removed from a drawing.- Specified by:
figureRemovedin interfaceFigureListener
-
figureRequestRemove
public void figureRequestRemove(FigureEvent e)
Description copied from interface:FigureListenerSent when the figure requests to be removed from a drawing.- Specified by:
figureRequestRemovein interfaceFigureListener
-
figureHandlesChanged
public void figureHandlesChanged(FigureEvent e)
Description copied from interface:FigureListenerSent when handles of a Figure have been added, removed or replaced.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.
- Specified by:
figureHandlesChangedin interfaceFigureListener
-
-
DataMelt 3.0 © DataMelt by jWork.ORG