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 Object
- implements DrawingEvent
An implementation of DrawingEvent
.
Drawing.DefaultDrawingEvent
public Drawing.DefaultDrawingEvent(Element element,
DrawingEvent.EventType type)
- Parameters:
element
- the changed Element
type
- the event type
getDrawing
public Drawing getDrawing()
- Description copied from interface:
DrawingEvent
- Return the source of this event.
- Specified by:
getDrawing
in interface DrawingEvent
- Returns:
- the source of this event
getElement
public Element getElement()
- Description copied from interface:
DrawingEvent
- Return the graphic element that changed.
- Specified by:
getElement
in interface DrawingEvent
- Returns:
- the changed
Element
.
getType
public DrawingEvent.EventType getType()
- Description copied from interface:
DrawingEvent
- Return the event type.
- Specified by:
getType
in interface DrawingEvent
- Returns:
- the event type
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- a string describing this event
Submit a bug : syd@jpicedt.org