public class IlvContentController extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUGMENT
Constant value used by
lockArea(IlvRect, int) to indicate that previously locked
objects remain locked. |
static int |
LOAD
Constant value used by
processObjects(Enumeration, int) to indicate the unlock action. |
static int |
LOCK
Constant value used by
processObjects(Enumeration, int) to indicate the lock action. |
static int |
OVERRIDE
Constant value used by
lockArea(IlvRect, int) to indicate that previously locked
objects must be unlocked. |
static int |
UNLOAD
Constant value used by
processObjects(Enumeration, int) to indicate the unload action. |
Constructor and Description |
---|
IlvContentController()
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getCacheSize()
Returns the cache size.
|
IlvContentHandler |
getContentHandler()
Returns the handler.
|
int |
getLoadedCount()
Returns the current number of objects in the "load" state, that is, objects in the cache.
|
int |
getLockedCount()
Returns the current number of locked objects.
|
int |
getObjectStatus(Object obj)
Returns the current state of the given object.
|
IlvSDMEngine |
getSDMEngine()
Returns the SDM engine.
|
boolean |
isNotificationEnabled()
Returns the notificationEnabled state.
|
int |
lockArea(IlvRect area,
int mode)
Locks the objects that intersect with the given rectangle.
|
int |
processAllObjects(int action)
Changes the state of all objects at once.
|
int |
processObjects(Enumeration objs,
int action)
Similar to
processObjects(Object[], int) , with the objs parameter specified as an Enumeration. |
int |
processObjects(Iterator objs,
int action)
Similar to
processObjects(Object[], int) , with the objs parameter specified as an Iterator. |
int |
processObjects(Object[] objs,
int action)
|
void |
setCacheSize(int cacheSize)
Sets the cache size.
|
void |
setContentHandler(IlvContentHandler handler)
Sets the handler.
|
void |
setNotificationEnabled(boolean notificationEnabled)
Sets the notificationEnabled state.
|
void |
setSDMEngine(IlvSDMEngine engine)
Sets the SDM engine to work on.
|
public static final int OVERRIDE
lockArea(IlvRect, int)
to indicate that previously locked
objects must be unlocked.public static final int AUGMENT
lockArea(IlvRect, int)
to indicate that previously locked
objects remain locked.public static final int LOCK
processObjects(Enumeration, int)
to indicate the lock action.public static final int LOAD
processObjects(Enumeration, int)
to indicate the unlock action.
Once unlocked, objects can be unloaded at any time.public static final int UNLOAD
processObjects(Enumeration, int)
to indicate the unload action.public int lockArea(IlvRect area, int mode)
public int processObjects(Object[] objs, int action)
LOCK
, LOAD
, or UNLOAD
.objs
- The array of objects to process.action
- The action to perform.public int processObjects(Enumeration objs, int action)
processObjects(Object[], int)
, with the objs parameter specified as an Enumeration.objs
- The objects to process.action
- The action to perform, one of LOCK
, LOAD
, or UNLOAD
.processObjects(Object[], int)
public int processObjects(Iterator objs, int action)
processObjects(Object[], int)
, with the objs parameter specified as an Iterator.objs
- The objects to process.action
- The action to perform, one of LOCK
, LOAD
, or UNLOAD
.processObjects(Object[], int)
public int processAllObjects(int action)
public int getLockedCount()
public int getLoadedCount()
public int getObjectStatus(Object obj)
obj
- The SDM model object.public IlvSDMEngine getSDMEngine()
public void setSDMEngine(IlvSDMEngine engine)
engine
- The engine to set.public IlvContentHandler getContentHandler()
public void setContentHandler(IlvContentHandler handler)
handler
- The handler to set.public int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- The cache size to set.public boolean isNotificationEnabled()
public void setNotificationEnabled(boolean notificationEnabled)
notificationEnabled
- The notificationEnabled to set.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.