diva.sketch
Class SketchEvent

java.lang.Object
  extended by java.util.EventObject
      extended by diva.sketch.SketchEvent
All Implemented Interfaces:
Serializable

public class SketchEvent
extends EventObject

A SketchEvent is generated by sketch model when the model has been modified. It contains a symbol which is either added, modified, or deleted from the model.

Version:
$Revision: 1.5 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu), Heloise Hse (hwawen@eecs.berkeley.edu)
See Also:
SketchListener, Serialized Form

Field Summary
static int SYMBOL_ADDED
          Symbol added event type.
static int SYMBOL_MODIFIED
          Symbol modified event type.
static int SYMBOL_REMOVED
          Symbol removed event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SketchEvent(int id, Object source)
          Create a SketchEvent object with the specified event type and the symbol that initiates this event.
 
Method Summary
 int getID()
          Return the event type id.
 Symbol getSymbol()
          Return the symbol that initiates this event.
 String toString()
          String representation of the event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYMBOL_ADDED

public static final int SYMBOL_ADDED
Symbol added event type.

See Also:
Constant Field Values

SYMBOL_REMOVED

public static final int SYMBOL_REMOVED
Symbol removed event type.

See Also:
Constant Field Values

SYMBOL_MODIFIED

public static final int SYMBOL_MODIFIED
Symbol modified event type.

See Also:
Constant Field Values
Constructor Detail

SketchEvent

public SketchEvent(int id,
                   Object source)
Create a SketchEvent object with the specified event type and the symbol that initiates this event.

Method Detail

getID

public int getID()
Return the event type id.


getSymbol

public Symbol getSymbol()
Return the symbol that initiates this event.


toString

public String toString()
String representation of the event.

Overrides:
toString in class EventObject


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.