|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvIndexedSet
ilog.views.IlvManagerLayer
ilog.views.maps.grids.IlvDelayedDecoration
public class IlvDelayedDecoration
This decoration and layer class is used to delay the painting of another delegate decoration/layer (possibly one that takes a long time to
paint). By default, painting the view triggers the
painting of all decorations.
Using the IlvDelayedDecoration, painting is not done immediately, but after
a short delay. During this delay, the user can still, for example, pan or scroll the view,
which resets the delay.
However, if the delegate decoration is a subclass of
IlvManagerLightViewDecoration, the "paintLight" will be called immediately.
IlvDelayedDecoration delayed decoration can either be used as an IlvManagerLayer or an IlvManagerViewDecoration.
| Constructor Summary | |
|---|---|
IlvDelayedDecoration(IlvInputStream stream)
Constructs a decoration from serialized data. |
|
IlvDelayedDecoration(int refreshDelay)
Creates a delayed decoration. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Repaints the view when the timer has expired, indicating the delegate decoration to redraw. |
void |
draw(Graphics dst,
IlvManagerView v)
Draws the layer in a view of a manager. |
IlvManagerViewDecoration |
getDecoration()
Returns the delegate decoration to repaint. |
int |
getRefreshDelay()
Returns the timer refresh delay. |
void |
paint(Graphics dst,
IlvManagerView view)
Paints this decoration. |
void |
print(Graphics dst,
IlvRect area,
IlvTransformer t)
Prints the layer with a specified transformer. |
void |
setDecoration(IlvManagerViewDecoration decoration)
Sets the delegate decoration. |
void |
setRefreshDelay(int refreshDelay)
Sets the timer refresh delay. |
void |
write(IlvOutputStream stream)
Writes the layer to an output stream. |
| Methods inherited from class ilog.views.IlvManagerLayer |
|---|
addVisibilityFilter, computeBBox, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, isVisible, removeNamedProperty, removeVisibilityFilter, setAlpha, setManager, setName, setNamedProperty, setProperty, writeIt |
| Methods inherited from class ilog.views.IlvIndexedSet |
|---|
addObject, afterUpdate, beforeUpdate, collectObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, setQuadtreeEnabled, setSubsequentRemoveThreshold |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDelayedDecoration(int refreshDelay)
refreshDelay -
public IlvDelayedDecoration(IlvInputStream stream)
throws IlvReadFileException
stream - stream to read from.
IlvReadFileException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectwrite in class IlvManagerLayerstream - stream to write into.
IOExceptionpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerActionListener.actionPerformed(java.awt.event.ActionEvent)public IlvManagerViewDecoration getDecoration()
public int getRefreshDelay()
public void paint(Graphics dst,
IlvManagerView view)
paint in interface IlvManagerViewDecorationdst - The Graphics to paint to.view - The manager view.IlvManagerViewDecoration.paint(java.awt.Graphics,
ilog.views.IlvManagerView)
public void draw(Graphics dst,
IlvManagerView v)
draw in class IlvManagerLayerdst - The Graphics to draw.v - The view of the manager.IlvManagerView.setLayerCached(int, boolean)
public void print(Graphics dst,
IlvRect area,
IlvTransformer t)
print in class IlvManagerLayerdst - The graphics.area - The rectangle of the layer to print in the manager
coordinate system.t - The transformer used to print the content.public void setDecoration(IlvManagerViewDecoration decoration)
decoration - The decoration to be painted..public void setRefreshDelay(int refreshDelay)
refreshDelay - The timer refresh delay.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||