Package jpicedt.graphic.model
Class Drawing.DefaultDrawingEvent
- java.lang.Object
-
- jpicedt.graphic.model.Drawing.DefaultDrawingEvent
-
- All Implemented Interfaces:
DrawingEvent
- Enclosing class:
- Drawing
public class Drawing.DefaultDrawingEvent extends java.lang.Object implements DrawingEvent
an implementation of DrawingEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jpicedt.graphic.event.DrawingEvent
DrawingEvent.EventType
-
-
Constructor Summary
Constructors Constructor Description DefaultDrawingEvent(Element element, DrawingEvent.EventType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrawinggetDrawing()Return the source of this eventElementgetElement()Return the graphic element that changedDrawingEvent.EventTypegetType()Return the event typejava.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultDrawingEvent
public DefaultDrawingEvent(Element element, DrawingEvent.EventType type)
- Parameters:
element- the changed Elementtype- the event type
-
-
Method Detail
-
getDrawing
public Drawing getDrawing()
Description copied from interface:DrawingEventReturn the source of this event- Specified by:
getDrawingin interfaceDrawingEvent- Returns:
- the source of this event
-
getElement
public Element getElement()
Description copied from interface:DrawingEventReturn the graphic element that changed- Specified by:
getElementin interfaceDrawingEvent- Returns:
- the changed Element
-
getType
public DrawingEvent.EventType getType()
Description copied from interface:DrawingEventReturn the event type- Specified by:
getTypein interfaceDrawingEvent- Returns:
- the event type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a string describing this event
-
-