com.eliad.model
Class RulerModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.eliad.model.RulerModelEvent

public class RulerModelEvent
extends java.util.EventObject

Events corresponding to changes in a RulerModel.

Version:
1.0 04/08/00
Author:
Patrick Mérissert-Coffinières
See Also:
Serialized Form

Field Summary
static int RULER_DRAGGING_CHANGED
          The dragging parameters have changed
static int RULER_ITEMS_DELETED
          Some items were deleted
static int RULER_ITEMS_INSERTED
          Some items were inserted
static int RULER_ITEMS_MOVED
          Some items were moved
static int RULER_MARGIN_CHANGED
          The global margin has changed
static int RULER_MAX_CHANGED
          The maximum size changed for one or several item(s)
static int RULER_MIN_CHANGED
          The minimum size changed for one or several item(s)
static int RULER_MODEL_CHANGED
          The entire model changed
static int RULER_PREFERRED_CHANGED
          The preferred size changed for one or several item(s)
static int RULER_RESIZABLE_CHANGED
          The resizability changed for one item, or for many
static int RULER_SIZE_CHANGED
          The actual size changed for one or several item(s)
static int RULER_TITLE_CHANGED
           
static int RULER_VISIBLE_CHANGED
          The visibility changed for one item
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RulerModelEvent(RulerModel model, int type, int index, int other0, int other1)
          Constructs a specific RulerModelEvent.
 
Method Summary
 int getCount()
          Retrieves the count of the items concerned.
 int getFromIndex()
          Retrieves the origin index for RULER_ITEMS_MOVED
 int getIndex()
          Retrieves the index of the item where the change took place.
 int getNewIntegerValue()
          Retrieves the new integer value after the change.
 int getOldIntegerValue()
          Retrieves the old integer value before the change.
 int getSize()
          Retrieves the underlying size of the item concerned.
 int getStartIndex()
          Retrieves the start index.
 int getToIndex()
          Retrieves the target index for RULER_ITEMS_MOVED
 int getType()
          Retrieves the type of the event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RULER_MODEL_CHANGED

public static final int RULER_MODEL_CHANGED
The entire model changed

RULER_PREFERRED_CHANGED

public static final int RULER_PREFERRED_CHANGED
The preferred size changed for one or several item(s)

RULER_MIN_CHANGED

public static final int RULER_MIN_CHANGED
The minimum size changed for one or several item(s)

RULER_MAX_CHANGED

public static final int RULER_MAX_CHANGED
The maximum size changed for one or several item(s)

RULER_SIZE_CHANGED

public static final int RULER_SIZE_CHANGED
The actual size changed for one or several item(s)

RULER_TITLE_CHANGED

public static final int RULER_TITLE_CHANGED

RULER_RESIZABLE_CHANGED

public static final int RULER_RESIZABLE_CHANGED
The resizability changed for one item, or for many

RULER_VISIBLE_CHANGED

public static final int RULER_VISIBLE_CHANGED
The visibility changed for one item

RULER_MARGIN_CHANGED

public static final int RULER_MARGIN_CHANGED
The global margin has changed

RULER_ITEMS_INSERTED

public static final int RULER_ITEMS_INSERTED
Some items were inserted

RULER_ITEMS_DELETED

public static final int RULER_ITEMS_DELETED
Some items were deleted

RULER_ITEMS_MOVED

public static final int RULER_ITEMS_MOVED
Some items were moved

RULER_DRAGGING_CHANGED

public static final int RULER_DRAGGING_CHANGED
The dragging parameters have changed
Constructor Detail

RulerModelEvent

public RulerModelEvent(RulerModel model,
                       int type,
                       int index,
                       int other0,
                       int other1)
Constructs a specific RulerModelEvent. Note that the source must be a RulerModel object.
Method Detail

getType

public int getType()
Retrieves the type of the event

getIndex

public int getIndex()
Retrieves the index of the item where the change took place. Only meaningful for: May be -1 if more than one item was concerned.

getOldIntegerValue

public int getOldIntegerValue()
Retrieves the old integer value before the change. Only meaningful for: Except for RULER_MARGIN_CHANGED, will only be meaningful if getIndex() is not -1.

getNewIntegerValue

public int getNewIntegerValue()
Retrieves the new integer value after the change. Only meaningful for: Except for RULER_MARGIN_CHANGED, will only be meaningful if getIndex() is not -1.

getStartIndex

public int getStartIndex()
Retrieves the start index. Only meaningful for:

getCount

public int getCount()
Retrieves the count of the items concerned. Only meaningful for:

getSize

public int getSize()
Retrieves the underlying size of the item concerned. Only meaningful for:

getFromIndex

public int getFromIndex()
Retrieves the origin index for RULER_ITEMS_MOVED

getToIndex

public int getToIndex()
Retrieves the target index for RULER_ITEMS_MOVED