JIDE 3.5.15

com.jidesoft.marker
Class MarkerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.marker.MarkerEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MarkerEvent

public class MarkerEvent
extends EventObject

MarkerEvent is used to notify interested parties that marker has been changed in the MarkerModel.

See Also:
Serialized Form

Field Summary
static int MARKER_ADDED
           
static int MARKER_REMOVED
           
static int MARKER_UPDATED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MarkerEvent(Object source, Marker marker, int type)
          Creates a MarkerEvent.
MarkerEvent(Object source, Marker marker, int type, boolean isAdjusting)
          Creates a MarkerEvent.
 
Method Summary
 Marker getMarker()
          Gets the marker that is changed.
 int getType()
          Gets the type of the MarkerEvent.
static String getTypeName(int type)
           
 boolean isAdjusting()
          Checks if the change is part of several marker change events.
 String toString()
           
 
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

MARKER_ADDED

public static final int MARKER_ADDED
See Also:
Constant Field Values

MARKER_REMOVED

public static final int MARKER_REMOVED
See Also:
Constant Field Values

MARKER_UPDATED

public static final int MARKER_UPDATED
See Also:
Constant Field Values
Constructor Detail

MarkerEvent

public MarkerEvent(Object source,
                   Marker marker,
                   int type)
Creates a MarkerEvent.

Parameters:
source -
marker -
type -

MarkerEvent

public MarkerEvent(Object source,
                   Marker marker,
                   int type,
                   boolean isAdjusting)
Creates a MarkerEvent.

Parameters:
source -
marker -
type -
isAdjusting -
Method Detail

getMarker

public Marker getMarker()
Gets the marker that is changed.

Returns:
the marker.

isAdjusting

public boolean isAdjusting()
Checks if the change is part of several marker change events. If you want to repaint the whole marker area, you might want to hold the repaint until isAdjusting returns false.

Returns:
true or false.

getType

public int getType()
Gets the type of the MarkerEvent.

Returns:
the type.

getTypeName

public static String getTypeName(int type)

toString

public String toString()
Overrides:
toString in class EventObject

JIDE 3.5.15