public class IlvDelayedDecoration extends IlvManagerLayer implements IlvManagerViewDecoration, ActionListener
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. IlvManagerLightViewDecoration, the "paintLight" will be called immediately.
IlvDelayedDecoration delayed decoration can either be used as an IlvManagerLayer or an IlvManagerViewDecoration.| Constructor and Description |
|---|
IlvDelayedDecoration(IlvInputStream stream)
Constructs a decoration from serialized data.
|
IlvDelayedDecoration(int refreshDelay)
Creates a delayed decoration.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addVisibilityFilter, computeBBox, drawImpl, getAlpha, getIndex, getManager, getName, getNamedProperty, getProperty, getVisibilityFilters, isSelectable, isTemporarilyHidden, isVisible, isVisible, removeNamedProperty, removeVisibilityFilter, setAlpha, setManager, setName, setNamedProperty, setProperty, writeItaddObject, afterUpdate, beforeUpdate, collectObjects, collectSelectableObjects, deleteAll, getCardinal, getElements, getIndex, getManagers, getManagersCount, getObject, getObject, getSelectableObject, getSubsequentRemoveThreshold, isQuadtreeEnabled, isZOrdering, map, mapInside, mapInside, mapIntersects, mapIntersects, removeObject, setIndex, SetInitialNumberOfNonZoomablesCapacity, SetInitialNumberOfObjectsCapacity, setQuadtreeEnabled, setSubsequentRemoveThreshold, setZOrderingpublic IlvDelayedDecoration(int refreshDelay)
refreshDelay - public IlvDelayedDecoration(IlvInputStream stream) throws IlvReadFileException
stream - stream to read from.IlvReadFileExceptionpublic 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.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.