|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.eliad.model.RulerModelEvent
Events corresponding to changes in a RulerModel.
| 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 |
public static final int RULER_MODEL_CHANGED
public static final int RULER_PREFERRED_CHANGED
public static final int RULER_MIN_CHANGED
public static final int RULER_MAX_CHANGED
public static final int RULER_SIZE_CHANGED
public static final int RULER_TITLE_CHANGED
public static final int RULER_RESIZABLE_CHANGED
public static final int RULER_VISIBLE_CHANGED
public static final int RULER_MARGIN_CHANGED
public static final int RULER_ITEMS_INSERTED
public static final int RULER_ITEMS_DELETED
public static final int RULER_ITEMS_MOVED
public static final int RULER_DRAGGING_CHANGED
| Constructor Detail |
public RulerModelEvent(RulerModel model,
int type,
int index,
int other0,
int other1)
RulerModelEvent. Note that the source
must be a RulerModel object.| Method Detail |
public int getType()
public int getIndex()
RULER_SIZE_CHANGEDRULER_PREFERRED_CHANGEDRULER_MINIMUM_CHANGEDRULER_MAXIMUM_CHANGEDRULER_TITLE_CHANGEDRULER_RESIZABLE_CHANGEDpublic int getOldIntegerValue()
RULER_SIZE_CHANGEDRULER_PREFERRED_CHANGEDRULER_MINIMUM_CHANGEDRULER_MAXIMUM_CHANGEDRULER_MARGIN_CHANGEDRULER_MARGIN_CHANGED, will only be meaningful
if getIndex() is not -1.public int getNewIntegerValue()
RULER_SIZE_CHANGEDRULER_PREFERRED_CHANGEDRULER_MINIMUM_CHANGEDRULER_MAXIMUM_CHANGEDRULER_MARGIN_CHANGEDRULER_MARGIN_CHANGED, will only be meaningful
if getIndex() is not -1.public int getStartIndex()
RULER_ITEMS_INSERTEDRULER_ITEMS_DELETEDpublic int getCount()
RULER_ITEMS_INSERTEDRULER_ITEMS_DELETEDRULER_ITEMS_MOVEDpublic int getSize()
RULER_VISIBLE_CHANGEDpublic int getFromIndex()
RULER_ITEMS_MOVEDpublic int getToIndex()
RULER_ITEMS_MOVED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||