public class TLcyAsynchronousPaintHint extends TLcdGXYAsynchronousPaintHint
ILcyAsynchronousPaintHintProvider
.TLcdGXYAsynchronousPaintHint.Choice, TLcdGXYAsynchronousPaintHint.Combinable, TLcdGXYAsynchronousPaintHint.EqualsCombinable, TLcdGXYAsynchronousPaintHint.Range
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MERGE_GROUP
A default merge group name.
|
static String |
MERGE_GROUP_KEY
Key used to store the merge group property.
|
static String |
MERGE_KEY
Key used to store the merge property.
|
BORDER_FACTOR_KEY, INTERMEDIATE_UPDATE_RANGE_KEY, INTERRUPT_MODE_KEY, INTERRUPT_PAINTING_KEY, PAINTING_MODE_KEY, SKIP_DELAY_KEY, SYNCHRONOUS_DELAY_KEY, THREAD_PRIORITY_KEY
Constructor and Description |
---|
TLcyAsynchronousPaintHint()
Create a new asynchronous paint hint with an empty properties map.
|
TLcyAsynchronousPaintHint(boolean aBodiesOnly,
boolean aMerge,
String aMergeGroup)
Creates a new asynchronous paint hint.
|
TLcyAsynchronousPaintHint(boolean aBodiesOnly,
boolean aMerge,
String aMergeGroup,
int aIntermediateUpdateInterval)
Creates a new asynchronous paint hint with intermediate updating.
|
TLcyAsynchronousPaintHint(boolean aBodiesOnly,
boolean aMerge,
String aMergeGroup,
int aIntermediateUpdateInterval,
int aMinimumThreadPriority)
Creates a new asynchronous paint hint with custom thread priority.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntermediateUpdateInterval()
If not 0, ongoing asynchronous paints are directly shown on the view with the returned refresh
rate (in milliseconds)
|
String |
getMergeGroup()
Returns the paint group to which the layer belongs.
|
int |
getMinimumThreadPriority()
Returns the minimum thread priority of the paint thread.
|
boolean |
isBodiesOnly()
Returns whether only the bodies need to be painted asynchronously.
|
boolean |
isMerge()
Returns whether the layer may be painted together with other layers.
|
getBorderFactor, getIntermediateUpdateRange, getInterruptMode, getInterruptPainting, getPaintingMode, getProperties, getSkipDelay, getSynchronousDelay, getThreadPriority, setBorderFactor, setIntermediateUpdateRange, setInterruptMode, setInterruptPainting, setPaintingMode, setSkipDelay, setSynchronousDelay, setThreadPriority, toString
public static final String MERGE_GROUP_KEY
Choice
containing String
valuespublic static final String MERGE_KEY
Choice
containing true
when the layer may share a paint queue with other layers, or
a Choice
without any values when the layer must have its own paint queue.public static final String DEFAULT_MERGE_GROUP
TLcyAsynchronousPaintHint(boolean, boolean, java.lang.String, int, int)
constructor for layers that are painted relatively fast.public TLcyAsynchronousPaintHint()
Create a new asynchronous paint hint with an empty properties map.
The resulting paint hint will have an empty properties map, hence place no restrictions on the corresponding paint queue.
Such a paint can for example be used for empty ILcdLayerTreeNode
s, which do not
affect the painting time of a paint queue.
public TLcyAsynchronousPaintHint(boolean aBodiesOnly, boolean aMerge, String aMergeGroup)
TLcyAsynchronousPaintHint( aBodiesOnly, aMerge, aMergeGroup, 0, Thread.MIN_PRIORITY - 1
)
.aBodiesOnly
- if true, only the bodies need to be painted asynchronouslyaMerge
- if true, the layer may be painted together with other layersaMergeGroup
- the paint group the layer belongs to. All layers of this group are painted
together. This argument has no meaning when aMerge is false.TLcyAsynchronousPaintHint(boolean, boolean, String, int)
public TLcyAsynchronousPaintHint(boolean aBodiesOnly, boolean aMerge, String aMergeGroup, int aIntermediateUpdateInterval)
TLcyAsynchronousPaintHint( aBodiesOnly, aMerge, aMergeGroup,
aIntermediateUpdateInterval, Thread.MIN_PRIORITY - 1 ).
aBodiesOnly
- if true, only the bodies need to be painted asynchronouslyaMerge
- if true, the layer may be painted together with other
layersaMergeGroup
- the paint group the layer belongs to. All layers of this
group are painted together. This argument has no meaning
when aMerge is false.aIntermediateUpdateInterval
- if not 0, ongoing asynchronous paints are directly shown on
the view with the specified refresh rate (in milliseconds)TLcyAsynchronousPaintHint(boolean, boolean, String, int, int)
public TLcyAsynchronousPaintHint(boolean aBodiesOnly, boolean aMerge, String aMergeGroup, int aIntermediateUpdateInterval, int aMinimumThreadPriority)
aBodiesOnly
- if true, only the bodies need to be painted asynchronouslyaMerge
- if true, the layer may be painted together with other
layersaMergeGroup
- the paint group the layer belongs to. All layers of this
group are painted together. This argument has no meaning
when aMerge is false.aIntermediateUpdateInterval
- if not 0, ongoing asynchronous paints are directly shown on
the view with the specified refresh rate (in milliseconds)aMinimumThreadPriority
- the minimum priority of the paint thread, or
Thread.MIN_PRIORITY - 1 for the default priority.public boolean isMerge()
Returns whether the layer may be painted together with other layers.
The result of this method is only valid when the properties map is not empty.
public String getMergeGroup()
Returns the paint group to which the layer belongs.
The result of this method is only valid when the properties map is not empty.
public boolean isBodiesOnly()
Returns whether only the bodies need to be painted asynchronously.
The result of this method is only valid when the properties map is not empty.
public int getIntermediateUpdateInterval()
If not 0, ongoing asynchronous paints are directly shown on the view with the returned refresh rate (in milliseconds)
The result of this method is only valid when the properties map is not empty.
public int getMinimumThreadPriority()
Returns the minimum thread priority of the paint thread.
The result of this method is only valid when the properties map is not empty.