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, writeIt
addObject, 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, setZOrdering
public IlvDelayedDecoration(int refreshDelay)
refreshDelay
- public IlvDelayedDecoration(IlvInputStream stream) throws IlvReadFileException
stream
- stream to read from.IlvReadFileException
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvManagerLayer
stream
- stream to write into.IOException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public IlvManagerViewDecoration getDecoration()
public int getRefreshDelay()
public void paint(Graphics dst, IlvManagerView view)
paint
in interface IlvManagerViewDecoration
dst
- 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 IlvManagerLayer
dst
- 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 IlvManagerLayer
dst
- 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.