Package pamScrollSystem
Class AbstractScrollManager.SpecialDataBlockInfo
java.lang.Object
pamScrollSystem.AbstractScrollManager.SpecialDataBlockInfo
- Enclosing class:
AbstractScrollManager
Holds a reference to a data block and some extra information on how that data block should be loaded.
Special data blocks are data blocks which are loaded regardless of their subscription to a scroller, usually this for super detections in which there are relatively very few data units.
In some cases there may be a type of data unit which has a medium numbder of data units i.e. they should not all be loaded but a large section should be loaded. If this is the case then the min and max time functions can be used to figure out what the load times should be.
- Author:
- Jamie Macualay
-
Field Summary
Modifier and TypeFieldDescriptionlong
The time to load after scroller.long
The time to load before scroller.The data block that is special. -
Constructor Summary
ConstructorDescriptionSpecialDataBlockInfo
(PamDataBlock pamDataBlock) Create a SpecialDataBlockInfo with default load times to load all data from data block.SpecialDataBlockInfo
(PamDataBlock pamDataBlock, long timeBefore, long timeAfter) Create a SpecialDataBlockInfo with defined load times -
Method Summary
-
Field Details
-
pamDataBlock
The data block that is special. -
minTime
public long minTimeThe time to load before scroller. -
maxTime
public long maxTimeThe time to load after scroller.
-
-
Constructor Details
-
SpecialDataBlockInfo
Create a SpecialDataBlockInfo with default load times to load all data from data block.- Parameters:
pamDataBlock
-
-
SpecialDataBlockInfo
Create a SpecialDataBlockInfo with defined load times- Parameters:
pamDataBlock
- - the data block to be specialtimeBefore
- - time to load before the scroller.timeAfter
- - time to load after the scroller.
-