Class TLcdGXYAsynchronousPaintHint
- Direct Known Subclasses:
TLcyAsynchronousPaintHint
Holder object for the paint (queue) settings of an asynchronous layer.
It contains a set of predefined key-value pairs, and allows to include your own key-value pairs. The
paint queue manager
uses these paint hints to
determine whether asynchronous layers can share a paint queue, and to create such a paint
queue.
The predefined key-value pairs are all settings of an TLcdGXYAsynchronousPaintQueue
, and will be used by a TLcdGXYAsynchronousPaintQueueManager
to create a
TLcdGXYAsynchronousPaintQueue
for a paint hint.
When the value for a key is not set, it is considered as if there is no restriction on that key-value pair.
Customizing which layers can share a paint queue can either be done by adding extra key-value pairs
to the paint hints, or by overriding the combine
method of the TLcdGXYAsynchronousPaintQueueManager
.
Customizing the paint queue creation for a paint hint can only be done in the
TLcdGXYAsynchronousPaintQueueManager
by overriding the createAsynchronousPaintQueue
method. That create method also determines how the key-value pairs of the paint hint are mapped to the
created paint queue.
- Since:
- 10.1
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Holder object for a property which can have a discrete set of values.static interface
Interface allowing to combine two properties into a new property instance.static class
Wrapper class around anyObject
, allowing it to implement theCombinable
interface.static class
Holder object for an object with a certain range. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Key used to store the border factor valuestatic final String
Key used to store the intermediate update range valuestatic final String
Key used to store the interrupt mode valuestatic final String
Key used to store the interrupt painting valuestatic final String
Key used to store the painting mode valuestatic final String
Key used to store the skip delay valuestatic final String
Key used to store the synchronous delay valuestatic final String
Key used to store the thread priority value -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionShort forgetProperties().get( BORDER_FACTOR_KEY )
.Short forgetProperties().get( INTERMEDIATE_UPDATE_RANGE_KEY )
.Short forgetProperties().get( INTERRUPT_MODE_KEY )
.Short forgetProperties().get( INTERRUPT_PAINTING_KEY )
.Short forgetProperties().get( PAINTING_MODE_KEY )
.Returns a modifiableMap
which is used to store the properties.Short forgetProperties().get( SKIP_DELAY_KEY )
.Short forgetProperties().get( SYNCHRONOUS_DELAY_KEY )
.Short forgetProperties().get( THREAD_PRIORITY_KEY )
.void
setBorderFactor
(TLcdGXYAsynchronousPaintHint.Range aBorderFactor) Short forgetProperties().put( BORDER_FACTOR_KEY, aBorderFactor )
.void
setIntermediateUpdateRange
(TLcdGXYAsynchronousPaintHint.Range aIntermediateUpdateRange) Short forgetProperties().put( INTERMEDIATE_UPDATE_RANGE_KEY, aIntermediateUpdateRange )
.void
setInterruptMode
(TLcdGXYAsynchronousPaintHint.Choice aInterruptMode) Short forgetProperties().put( INTERRUPT_MODE_KEY, aInterruptMode )
.void
setInterruptPainting
(TLcdGXYAsynchronousPaintHint.Choice aInterruptPainting) Short forgetProperties().put( INTERRUPT_PAINTING_KEY, aInterruptPainting )
.void
setPaintingMode
(TLcdGXYAsynchronousPaintHint.Choice aPaintingMode) Short forgetProperties().put( PAINTING_MODE_KEY, aPaintingMode )
.void
setSkipDelay
(TLcdGXYAsynchronousPaintHint.Range aSkipDelay) Short forgetProperties().put( SKIP_DELAY_KEY, aSkipDelay )
.void
setSynchronousDelay
(TLcdGXYAsynchronousPaintHint.Range aSynchronousDelay) Short forgetProperties().put( SYNCHRONOUS_DELAY_KEY, aSynchronousDelay )
.void
setThreadPriority
(TLcdGXYAsynchronousPaintHint.Range aThreadPriority) Short forgetProperties().put( THREAD_PRIORITY_KEY, aThreadPriority )
.toString()
-
Field Details
-
PAINTING_MODE_KEY
Key used to store the painting mode value- See Also:
-
BORDER_FACTOR_KEY
Key used to store the border factor value- See Also:
-
SKIP_DELAY_KEY
Key used to store the skip delay value- See Also:
-
SYNCHRONOUS_DELAY_KEY
Key used to store the synchronous delay value- See Also:
-
THREAD_PRIORITY_KEY
Key used to store the thread priority value- See Also:
-
INTERMEDIATE_UPDATE_RANGE_KEY
Key used to store the intermediate update range value- See Also:
-
INTERRUPT_PAINTING_KEY
Key used to store the interrupt painting value- See Also:
-
INTERRUPT_MODE_KEY
Key used to store the interrupt mode value- See Also:
-
-
Constructor Details
-
TLcdGXYAsynchronousPaintHint
public TLcdGXYAsynchronousPaintHint()Default constructor.
The resulting paint hint will have an empty properties map, hence place no restrictions on the corresponding paint queue.
-
-
Method Details
-
getPaintingMode
Short for
getProperties().get( PAINTING_MODE_KEY )
.Returns the possible values for the painting mode of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the possible values for the painting mode, or
null
when this key-value pair is not set - See Also:
-
setPaintingMode
Short for
getProperties().put( PAINTING_MODE_KEY, aPaintingMode )
.Sets the list of possible values for the painting mode of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aPaintingMode
- The possible values for the painting mode. This must be aTLcdGXYAsynchronousPaintHint.Choice
, where the allowed values are BODIES, BODIES_AND_SKIP, EVERYTHING. May benull
to unset this key-value pair- See Also:
-
getBorderFactor
Short for
getProperties().get( BORDER_FACTOR_KEY )
.Returns the range of possible values for the border factor of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the range of possible values for the border factor, or
null
when this key-value pair is not set - See Also:
-
setBorderFactor
Short for
getProperties().put( BORDER_FACTOR_KEY, aBorderFactor )
.Sets the range of possible values for the border factor of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aBorderFactor
- The range of possible values for the border factor. The range may only include positive numbers. May benull
to unset this key-value pair.- See Also:
-
getSkipDelay
Short for
getProperties().get( SKIP_DELAY_KEY )
.Returns the range of possible values for the skip delay of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the range of possible values for the skip delay, or
null
when this key-value pair is not set. - See Also:
-
setSkipDelay
Short for
getProperties().put( SKIP_DELAY_KEY, aSkipDelay )
.Sets the range of possible values for the skip delay of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aSkipDelay
- The range of possible values for the skip delay. The range may only include positive numbers. May benull
to unset this key-value pair.- See Also:
-
getSynchronousDelay
Short for
getProperties().get( SYNCHRONOUS_DELAY_KEY )
.Returns the range of possible values for the synchronous delay of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the range of possible values for the synchronous delay, or
null
when this key-value pair is not set. - See Also:
-
setSynchronousDelay
Short for
getProperties().put( SYNCHRONOUS_DELAY_KEY, aSynchronousDelay )
.Sets the range of possible values for the synchronous delay of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aSynchronousDelay
- The range of possible values for the synchronous delay. The range may only include positive numbers. May benull
to unset this key-value pair.- See Also:
-
getThreadPriority
Short for
getProperties().get( THREAD_PRIORITY_KEY )
.Returns the range of possible values for the thread priority of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the range of possible values for the thread priority, or
null
when this key-value pair is not set. - See Also:
-
setThreadPriority
Short for
getProperties().put( THREAD_PRIORITY_KEY, aThreadPriority )
.Sets the range of possible values for the thread priority of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aThreadPriority
- The range of possible values for the for the thread priority. The range may only include numbers in the range[Thread.MIN_PRIORITY, Thread.MAX_PRIORITY]
. May benull
to unset this key-value pair.- See Also:
-
getIntermediateUpdateRange
Short for
getProperties().get( INTERMEDIATE_UPDATE_RANGE_KEY )
.Returns the range of possible values for the intermediate update interval of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the range of possible values for the intermediate update interval, or
null
when this key-value pair is not set - See Also:
-
setIntermediateUpdateRange
Short for
getProperties().put( INTERMEDIATE_UPDATE_RANGE_KEY, aIntermediateUpdateRange )
.Sets the range of possible values for the intermediate update interval of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aIntermediateUpdateRange
- The range of possible values for the intermediate update interval. The range may only include positive numbers. May benull
to unset this key-value pair.- See Also:
-
getInterruptPainting
Short for
getProperties().get( INTERRUPT_PAINTING_KEY )
.Returns the possible values for the interrupt painting flag of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the possible values for the interrupt painting flag, or
null
when this key-value pair is not set. - See Also:
-
setInterruptPainting
Short for
getProperties().put( INTERRUPT_PAINTING_KEY, aInterruptPainting )
.Sets the possible values for the interrupt painting flag of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aInterruptPainting
- The possible values for the interrupt painting flag. This must be aTLcdGXYAsynchronousPaintHint.Choice
, where the allowed values aretrue
orfalse
. May benull
to unset this key-value pair.- See Also:
-
getInterruptMode
Short for
getProperties().get( INTERRUPT_MODE_KEY )
.Returns the possible values for the interrupt mode of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Returns:
- the possible values for the interrupt mode, or
null
when this key-value pair is not set. - See Also:
-
setInterruptMode
Short for
getProperties().put( INTERRUPT_MODE_KEY, aInterruptMode )
.Sets the possible values for the interrupt mode of the
TLcdGXYAsynchronousPaintQueue
corresponding to this paint hint.- Parameters:
aInterruptMode
- The possible values for the interrupt mode. This must be aTLcdGXYAsynchronousPaintHint.Choice
, where the allowed values are ALWAYS or NON_OVERLAPPING_PAINTS_ONLY. May benull
to unset this key-value pair.- See Also:
-
getProperties
Returns a modifiable
Map
which is used to store the properties.A set of predefined key-value pairs is stored in the map by using the public keys in this class. These properties can be adjusted by use of the setters, or by modifying this map directly. It is allowed to store extra properties in this map by using your own keys.
- Returns:
- a modifiable
Map
which is used to store the properties.
-
toString
-