@Deprecated public class IlpStyle extends IlpAbstractStyle implements StyleChangeListener, Cloneable
Modifier and Type | Field and Description |
---|---|
protected IlpStyle[] |
computedDefaultStyles
Deprecated.
Default (parent) styles automatically inherited.
|
protected List<IlpStyle> |
computedDefaultStylesUnmodifiable
Deprecated.
|
protected List<IlpStyle> |
defaultStylesCache
Deprecated.
Cache to all default styles list.
|
protected IlpStyle[] |
definedDefaultStyles
Deprecated.
Default (parent) styles specified by the user.
|
protected List<IlpStyle> |
definedDefaultStylesUnmodifiable
Deprecated.
|
static int |
IN_COMPUTE_GRAPHIC
Deprecated.
|
protected StyleListener |
owner
Deprecated.
The owner of the style, it is always a StyleListener with some
privileges, like being the first one to be notified when it starts to be
changed and the last one when it finishes.
|
protected IlpStyleContext |
styleContext
Deprecated.
Style context for this style
|
protected ilog.util.internal.IlFastMap<IlpKey,Map<StyleChangeListener,Integer>> |
styleKeyListeners
Deprecated.
A table
|
protected WeakHashMap<StyleListener,Object> |
styleListeners
Deprecated.
A table IlpStyle -> null
This map contains listeners for this style.
|
protected IlpStyle[] |
styleSearchOrderCache
Deprecated.
Unmodifiable list which contains the search order
|
protected ilog.util.internal.IlFastMap<IlpKey,IlpStyleValueProvider> |
valueProviders
Deprecated.
A table IlpKey -> IlpStyleValueProvider containing the value providers.
|
_StyleLock, appContext, literals, NotFound, searchStrategy
Modifier | Constructor and Description |
---|---|
|
IlpStyle()
Deprecated.
Style object constructor.
|
|
IlpStyle(IlpStyleContext styleContext)
Deprecated.
Style object constructor.
|
protected |
IlpStyle(IlpStyle defaultStyle,
IlpStyleContext styleContext)
Deprecated.
Style object constructor, adding one default style to the list of default
styles.
|
|
IlpStyle(List<IlpStyle> defaultStyles,
IlpStyleContext styleContext)
Deprecated.
Style object constructor, setting the default style.
|
Modifier and Type | Method and Description |
---|---|
void |
addStyleChangeListener(IlpKey key,
StyleChangeListener listener)
Deprecated.
Adds a listener interested in modifications in the given key.
|
void |
addStyleListener(StyleListener listener)
Deprecated.
Adds a style listener.
|
void |
addStyleListener(StyleListener listener,
Object value)
Deprecated.
Adds a style listener.
|
boolean |
appendComputedDefaultStyle(IlpStyle style)
Deprecated.
Adds a computed default style at the end of the list.
|
boolean |
appendDefaultStyle(IlpStyle style)
Deprecated.
Adds a default style at the end of the list.
|
void |
cleanValueProviders()
Deprecated.
Internally used to clean value providers.
|
Object |
clone()
Deprecated.
Returns a copy of this style object.
|
void |
debug()
Deprecated.
Prints a dump of the style, including:
- Default styles
- Local keys
- Style value provider keys
- Lazy keys
|
void |
doCleanValueProviders()
Deprecated.
Internally used to clean value providers.
|
protected void |
doClone(IlpAbstractStyle newStyle)
Deprecated.
Create internal structures to prepare clone operation.
|
protected void |
doCopyAllContext(IlpAbstractStyle source)
Deprecated.
Copies all values from a given style.
|
protected boolean |
doCopyAllValues(IlpAbstractStyle source)
Deprecated.
Perform copy.
|
protected void |
doDispose()
Deprecated.
Cleans the local values and removes dependences.
|
protected void |
doEndChangingStyleValues(Set<StyleListener> listenersSet)
Deprecated.
The heart of endChangingStyleValues.
|
protected void |
doFireStyleSearchOrderNotification()
Deprecated.
This method resets the search order cache when a new
style is added or removed to the default style list.
|
IlpStyle[] |
doGetComputedDefaultStyles()
Deprecated.
Like getComputedDefaultStyles, only more efficient.
|
IlpStyle[] |
doGetDefaultStyles()
Deprecated.
Like getDefaultStyles, only more efficient.
|
StyleListener[] |
doGetStyleListeners()
Deprecated.
Optimized variant for use when _StyleLock is already taken.
|
protected IlpStyle[] |
doGetStyleSearchOrder()
Deprecated.
This method returns the style search order when retrieving a
value in this style.
|
protected boolean |
doHasDefaultValue(IlpKey key,
boolean checkStatic)
Deprecated.
Returns
true if there is a default value associated with the key. |
protected boolean |
doHasStaticValue(IlpKey key)
Deprecated.
Returns
true if there is a value associated with the key in a static style. |
boolean |
doHasValue(IlpKey key,
boolean checkStatic)
Deprecated.
Tests whether a given
IlpKey has a value associated with this style, either
locally or in default styles. |
protected boolean |
doHasValueProvider(IlpKey key)
Deprecated.
Returns
true if there is a local value provider associated with the key. |
void |
doMoveContents(IlpStyle style)
Deprecated.
This method is internally used to move the contents of this style
to the given style.
|
protected boolean |
doRemoveComputedDefaultStyle(IlpStyle style)
Deprecated.
Removes the given computed default style from the list.
|
protected Collection<IlpKey> |
doRemoveDefaultStyle(IlpStyle defaultStyle)
Deprecated.
Removes a default style from the list of default styles.
|
protected Collection<IlpKey> |
doResetValueProviders()
Deprecated.
Reset all value providers and return the list of changed keys.
|
protected Collection<IlpKey> |
doSetDefaultStyles(IlpStyle[] defaultStyles)
Deprecated.
Sets the entire list of default styles.
|
protected boolean |
doSetValueProvider(IlpKey key,
IlpStyleValueProvider valueProvider,
boolean doReset)
Deprecated.
Changes the value provider for the key.
|
protected void |
doStartChangingStyleValues(Set<StyleListener> listenersSet)
Deprecated.
|
protected boolean |
doStyleValueChanged(IlpAbstractStyle source,
IlpKey key,
Set<StyleListener> listenersSet)
Deprecated.
|
void |
endChangingStyleValues()
Deprecated.
Allows the user to buffer and delay the notifications
to the dependent telecom objects or styles when some
style values are changed.
|
protected void |
fireStyleChangeEvent(IlpKey k)
Deprecated.
Fires the style change event for the given key.
|
protected void |
fireStyleNotification(Collection<IlpKey> changedKeys)
Deprecated.
Notifies the change on the given keys.
|
List<IlpStyle> |
getAllDefaultStyles()
Deprecated.
Returns an unmodifiable list with all the default styles
defined for this instance, including the ones defined by
the user and those computed automatically based on the
model.
|
List<IlpStyle> |
getComputedDefaultStyles()
Deprecated.
Returns the computed default styles as an unmodifiable list.
|
IlpStyleContext |
getContext()
Deprecated.
Gets the context for the style.
|
IlpStyle |
getDefaultStyle(int index)
Deprecated.
Returns a default style by index.
|
List<IlpStyle> |
getDefaultStyles()
Deprecated.
Returns the user-defined default styles as an unmodifiable list.
|
int |
getFlags()
Deprecated.
Gets flag value.
|
Collection<IlpKey> |
getKeys()
Deprecated.
Gets a collection with all keys present in this style, literal
and value provider keys.
|
Collection<IlpKey> |
getKnownKeys()
Deprecated.
Returns an unmodifiable collection with all the known keys of this style.
|
Object |
getLocalValueOrNotFound(IlpKey key,
IlpStyle source)
Deprecated.
Returns the local value for the given key, either if
it was defined as a literal or as a value provider.
|
StyleListener |
getOwner()
Deprecated.
|
protected Collection<IlpKey> |
getOwnKnownKeys()
Deprecated.
Returns a modifiable collection with all the keys of this style.
|
static IlpStyle |
GetStyleFromContext(IlpStyleManager manager,
IlpStyleContext cxt)
Deprecated.
Retrieve the style that corresponds to the given style context
This method is used to support deserialization
See IlpRemoteStyleValueProvider.readObject, IlpStyle.readObject and
IlpUnresolvedStyleValueProvider.resolveRemove and resolveModifier
|
Collection<StyleChangeListener> |
getStyleKeyListeners()
Deprecated.
Returns all the listeners for all the keys registered in this style.
|
Collection<StyleListener> |
getStyleListeners()
Deprecated.
Gets a collection of Style Listeners.
|
Object |
getValue(IlpKey key)
Deprecated.
Returns the value of a given
IlpKey accessible through this
style. |
Object |
getValue(IlpKey key,
IlpStyle defStyle)
Deprecated.
Returns the value of a given
IlpKey accessible through this
style. |
ilog.cpl.style.internal.IlpStyleValueOrigin |
getValueOrigin(IlpKey key)
Deprecated.
Returns the location where a particular style value comes from.
|
Object |
getValueOrNotFound(IlpKey key)
Deprecated.
Needed for compliance with
IlpAbstractStyle . |
Object |
getValueOrNotFound(IlpKey key,
IlpStyle source)
Deprecated.
Returns the value associated with the given key (either
literal or value provider) or
IlpAbstractStyle.NotFound
if none is found. |
IlpStyleValueProvider |
getValueProvider(IlpKey key)
Deprecated.
Returns the local value provider that calculates the value for this key.
|
IlpStyleValueProvider |
getValueProvider(IlpKey key,
boolean searchAllTree)
Deprecated.
Returns the value provider defined for the given key, either locally
or in the default styles.
|
Object |
getValueProviderOrNotFound(IlpKey key)
Deprecated.
Returns the value provider associated with the given key or
IlpAbstractStyle.NotFound if none is found. |
ilog.util.internal.IlFastMap<IlpKey,IlpStyleValueProvider> |
getValueProviders()
Deprecated.
Gets the style's value providers.
|
boolean |
hasDefaultValue(IlpKey key)
Deprecated.
Returns
true if there is a default value associated with the key. |
boolean |
hasDependencies()
Deprecated.
Returns if this style has dependencies on other styles or
style listeners.
|
boolean |
hasDependentValue(IlpKey key)
Deprecated.
Checks if a key has a dependent value.
|
boolean |
hasValue(IlpKey key)
Deprecated.
Tests whether a given
IlpKey has a value associated with this style, either
locally or in default styles. |
boolean |
hasValue(IlpKey key,
boolean checkStatic)
Deprecated.
Tests whether a given
IlpKey has a value associated with this style, either
locally or in default styles. |
boolean |
hasValueProvider(IlpKey key)
Deprecated.
Returns
true if there is a local value provider associated with the key. |
boolean |
hasValueProvider(IlpKey key,
boolean searchAll)
Deprecated.
Returns
true if there is a value provider associated with the key. |
protected boolean |
isValueProviderValid(IlpKey key,
IlpStyleValueProvider provider)
Deprecated.
Checks if the given value provider can be set.
|
protected boolean |
needStyleValue(IlpKey k)
Deprecated.
Verifies if the key is really needed for this style.
|
boolean |
prependComputedDefaultStyle(IlpStyle style)
Deprecated.
Adds a computed default style at the beginning of the list.
|
boolean |
prependDefaultStyle(IlpStyle style)
Deprecated.
Adds a default style to the front of the list.
|
protected void |
printDefaultStyle(IlpStyle style,
String index)
Deprecated.
Print the style contents
|
protected void |
registerStyleListener(IlpStyle[] styles)
Deprecated.
Convenience methods to register a style listener in all styles from an array.
|
protected void |
registerStyleListener(List<IlpStyle> styles)
Deprecated.
Convenience methods to register a style listener in all styles from a list.
|
boolean |
removeComputedDefaultStyle(IlpStyle style)
Deprecated.
Removes the given computed default style from the list.
|
boolean |
removeDefaultStyle(IlpStyle defaultStyle)
Deprecated.
Removes a default style from the list of default styles.
|
void |
removeStyleChangeListener(IlpKey key,
StyleChangeListener listener)
Deprecated.
Removes the listener interested in modifications in the given key.
|
void |
removeStyleListener(StyleListener listener)
Deprecated.
Removes a listener from this style.
|
boolean |
resetAllValues(IlpStyle sourceStyle)
Deprecated.
This method is normally used in conjunction with
useAllValues . |
void |
resetFlags(int value)
Deprecated.
Resets flag value.
|
void |
resetStyleSearchOrder()
Deprecated.
Resets the style search order.
|
boolean |
resetToDefaultValue(IlpKey key)
Deprecated.
Restores the default value of the key.
|
boolean |
resetValueProvider(IlpKey key)
Deprecated.
Resets the value provider associated with this key.
|
void |
resetValues()
Deprecated.
Resets all values defined in this style, literals and value
providers.
|
void |
setContext(IlpStyleContext newContext)
Deprecated.
Sets a new style context for the style.
|
boolean |
setDefaultStyles(List<IlpStyle> defaultStyles)
Deprecated.
Sets the entire list of default styles.
|
void |
setFlags(int value)
Deprecated.
Sets flag value.
|
void |
setLiteral(IlpKey key,
Object value)
Deprecated.
Changes the local literal value of a given key in this style.
|
void |
setOwner(StyleListener o)
Deprecated.
|
void |
setValue(IlpKey key,
Object value)
Deprecated.
Changes the local value of a given key in this style.
|
boolean |
setValueProvider(IlpKey key,
IlpStyleValueProvider valueProvider,
boolean doReset)
Deprecated.
Changes the style value provider of a given key in this style.
|
void |
startChangingStyleValues()
Deprecated.
Allows the user to buffer and delay the notifications
to the dependent telecom objects or styles when some
style values are changed.
|
void |
styleChanged(StyleChangeEvent ev)
Deprecated.
This method is called by the style value providers that are
being used by this style, indicating that its value has changed.
|
void |
styleValueChanged(IlpAbstractStyle source,
IlpKey key)
Deprecated.
This method is called whenever a value of a key is changed.
|
boolean |
useAllValues(IlpStyle sourceStyle,
boolean doResetValues)
Deprecated.
This method allows the user to use all values of the
sourceStyle . |
addLiterals, cleanLiterals, coerceFastHashtable, convertFloatArray, convertIntegerArray, copyAllValues, dispose, doCleanLiterals, doHasLiteral, doResetLiteral, doResetLiterals, fireEndChangingStyleValues, fireStartChangingStyleValues, fireStyleValueChanged, getAppContext, getBoolean, getBoolean, getColor, getColor, getDomain, getDomain, getEnum, getEnum, getEnumArray, getEnumArray, getFloat, getFloat, getFloatArray, getFloatArray, getFloatArray, getFont, getFont, getFormat, getFormat, getImage, getImage, getInteger, getInteger, getIntegerArray, getIntegerArray, getIntegerArray, getInteractor, getInteractor, getLiteral, getLiteralOrNotFound, getLiterals, getPoint, getPoint, getRect, getRect, getRenderer, getRenderer, getSearchStrategy, getString, getString, getStringArray, getStringArray, getSwingConstant, getSwingConstant, getValue, getValueMap, getValueMap, hasLiteral, keys, moveContents, resetLiteral, resetLiterals, resetLiteralSilently, setAppContext, setBoolean, setColor, setDomain, setEnum, setEnumArray, setFloat, setFloatArray, setFloatArray, setFont, setFormat, setImage, setInteger, setIntegerArray, setIntegerArray, setInteractor, setLiterals, setLiteralSilently, setPoint, setRect, setRenderer, setSearchStrategy, setString, setStringArray, setSwingConstant, setValueMap, transientInit, verifyNeededStyleKeys
protected IlpStyleContext styleContext
protected ilog.util.internal.IlFastMap<IlpKey,IlpStyleValueProvider> valueProviders
protected IlpStyle[] styleSearchOrderCache
protected IlpStyle[] definedDefaultStyles
protected List<IlpStyle> definedDefaultStylesUnmodifiable
protected IlpStyle[] computedDefaultStyles
protected List<IlpStyle> computedDefaultStylesUnmodifiable
protected List<IlpStyle> defaultStylesCache
protected StyleListener owner
protected WeakHashMap<StyleListener,Object> styleListeners
protected ilog.util.internal.IlFastMap<IlpKey,Map<StyleChangeListener,Integer>> styleKeyListeners
This list contains the listeners for a specific key. For instance, a remote style value provider is a listener of a certain key in this style. Or some style value modifiers can also be listener of a specific key. This is an internal list used to support notifications for value providers.
public static final int IN_COMPUTE_GRAPHIC
public IlpStyle()
public IlpStyle(IlpStyleContext styleContext)
styleContext
- Style context describing the style.protected IlpStyle(IlpStyle defaultStyle, IlpStyleContext styleContext)
defaultStyle
- A style set as a single default (parent) style.styleContext
- Style context describing the style.public IlpStyle(List<IlpStyle> defaultStyles, IlpStyleContext styleContext)
defaultStyles
- The styles set as the default (parent) styles.
Note that this list is not copied; don't modify it
afterwards.styleContext
- Style context describing the style.public Object clone()
clone
in class IlpAbstractStyle
public IlpStyleContext getContext()
public void setContext(IlpStyleContext newContext)
newContext
- New context for the style.public List<IlpStyle> getAllDefaultStyles()
public List<IlpStyle> getDefaultStyles()
setDefaultStyles(java.util.List<ilog.cpl.style.IlpStyle>)
public List<IlpStyle> getComputedDefaultStyles()
public IlpStyle getDefaultStyle(int index)
index
- Index in the style list.public boolean setDefaultStyles(List<IlpStyle> defaultStyles)
defaultStyles
- Complete list of default styles to use.public boolean prependDefaultStyle(IlpStyle style)
style
- Style to add.false
if the operation cannot be done, true
otherwise.public boolean appendDefaultStyle(IlpStyle style)
style
- Style to add.false
if the operation cannot be done, true
otherwise.public boolean removeDefaultStyle(IlpStyle defaultStyle)
defaultStyle
- Default style to remove.public boolean prependComputedDefaultStyle(IlpStyle style)
public boolean appendComputedDefaultStyle(IlpStyle style)
public boolean removeComputedDefaultStyle(IlpStyle style)
public ilog.util.internal.IlFastMap<IlpKey,IlpStyleValueProvider> getValueProviders()
public boolean hasValue(IlpKey key)
IlpKey
has a value associated with this style, either
locally or in default styles.hasValue
in class IlpAbstractStyle
key
- Key for the value to check.public boolean hasValue(IlpKey key, boolean checkStatic)
IlpKey
has a value associated with this style, either
locally or in default styles.key
- Key for the value to check.checkStatic
- Flag which indicates if the static styles will be checked or not.public boolean hasValueProvider(IlpKey key)
true
if there is a local value provider associated with the key.key
- Key for the value provider to check.public boolean hasValueProvider(IlpKey key, boolean searchAll)
true
if there is a value provider associated with the key.key
- Key for the value provider to check.searchAll
- Indicates that a value provider should be searched in the style hierarchypublic boolean hasDefaultValue(IlpKey key)
true
if there is a default value associated with the key. The
ordered list of default styles is searched for the existence of the given key.key
- Key for the value to check.public Object getValue(IlpKey key)
IlpKey
accessible through this
style. The value is either local or from a default style.
If this key is not present, the default key value is returned.getValue
in class IlpAbstractStyle
public IlpStyleValueProvider getValueProvider(IlpKey key)
key
- Key for the value provider to retrieve.null
if the
value provider does not exist.public IlpStyleValueProvider getValueProvider(IlpKey key, boolean searchAllTree)
key
- Key for the value provider to retrieve.searchAllTree
- Flag indicating whether the search will be
in the whole style hierarchy (true
) or just local (false
.null
if the
value provider does not exist.public Object getValue(IlpKey key, IlpStyle defStyle)
IlpKey
accessible through this
style. If the value could not be found locally, it will be searched in the
given default style.public ilog.cpl.style.internal.IlpStyleValueOrigin getValueOrigin(IlpKey key)
getValueOrNotFound
.public void setValue(IlpKey key, Object value)
setValue
in class IlpAbstractStyle
key
- Key for value to set.value
- Value to set. This can be either a literal value or a style
value provider.IllegalArgumentException
- is the value class does not correspond
to the key classpublic void setLiteral(IlpKey key, Object value)
setLiteral
in class IlpAbstractStyle
key
- Key for value to set.value
- Literal value to set.public boolean setValueProvider(IlpKey key, IlpStyleValueProvider valueProvider, boolean doReset)
key
- Key for value provider to set.valueProvider
- Value provider to set. If the value is null
,
then the value provider is removed from the style.doReset
- Indicates whether the literal value associated with this key
should be reset.public boolean useAllValues(IlpStyle sourceStyle, boolean doResetValues)
sourceStyle
.
This method calls setRemoteValue
on the current style for each
key known in the sourceStyle
. Locally, a remote style value
provider with the identical key name to the remote key name is created for
each of the values in the remote style.
If any of the setRemoteValue
calls fail, the method returns
false
, leaving the work partially done. Otherwise it returns true
.
If doResetValues
is set to true
, resetLiteral
is called on
each defined value.
public boolean resetAllValues(IlpStyle sourceStyle)
useAllValues
.
Using this method, remote values previously set by useAllValues
are removed.
The method calls setValueProvider
on each value known in
sourceStyle
, passing null
as the remote value, deleting
the corresponding remote value.
public boolean resetValueProvider(IlpKey key)
key
- The key for the value to reset.true
if the operation succeeds, otherwise it returns false
.public void resetValues()
If a key is used by another style (using style value providers), its value will not be removed.
public boolean resetToDefaultValue(IlpKey key)
public void addStyleListener(StyleListener listener)
The given style listener will be notified whenever a key value changes in this style.
Note: The listener is weakly registered. This means
that calling addStyleListener
will not prevent it from being
garbage collected. If you want to make sure that it is not garbage collected
and that you continually receive notification through it, you need to keep
a reference to it.
StyleListener
public void addStyleListener(StyleListener listener, Object value)
The given style listener will be notified whenever a key value changes
in this style.
If value is null
, then the notification about end of
changes is called outside the Style synchronization.
By default, normal style listeners have null
value.
On the other hand, all listeners registered internally to receive
notifications when a default style is changed, must be registered
with a non-null value (Boolean.TRUE)
StyleListener
public void removeStyleListener(StyleListener listener)
StyleListener
public void startChangingStyleValues()
endChangingStyleValues
, and can be nested.startChangingStyleValues
in interface StyleListener
endChangingStyleValues()
public void styleValueChanged(IlpAbstractStyle source, IlpKey key)
styleValueChanged
in interface StyleListener
source
- Source style where the event was generatedkey
- Key that has changedpublic void endChangingStyleValues()
startChangingStyleValues
, and can be nested.endChangingStyleValues
in interface StyleListener
startChangingStyleValues()
public Collection<IlpKey> getKeys()
getKeys
in class IlpAbstractStyle
public Collection<IlpKey> getKnownKeys()
Collections.EMPTY_COLLECTION
.protected Collection<IlpKey> getOwnKnownKeys()
getOwnKnownKeys
in class IlpAbstractStyle
protected void doDispose()
doDispose
in class IlpAbstractStyle
public void debug()
@Deprecated public void setOwner(StyleListener o)
@Deprecated public StyleListener getOwner()
public void setFlags(int value)
public void resetFlags(int value)
public int getFlags()
public void cleanValueProviders()
public void addStyleChangeListener(IlpKey key, StyleChangeListener listener)
This method is used internally when a value provider is using a remote key which is in this style. So we register the value provider as a listener of this key.
This method should not be documented.
public void removeStyleChangeListener(IlpKey key, StyleChangeListener listener)
protected void fireStyleChangeEvent(IlpKey k)
public boolean hasDependentValue(IlpKey key)
A key will have a dependent value is there is any value provider in any style which uses this key as a remote key.
public Collection<StyleChangeListener> getStyleKeyListeners()
public void styleChanged(StyleChangeEvent ev)
styleChanged
in interface StyleChangeListener
public Collection<StyleListener> getStyleListeners()
public boolean hasDependencies()
protected void registerStyleListener(List<IlpStyle> styles)
protected void registerStyleListener(IlpStyle[] styles)
protected void fireStyleNotification(Collection<IlpKey> changedKeys)
fireStyleNotification
in class IlpAbstractStyle
protected void doFireStyleSearchOrderNotification()
protected void doStartChangingStyleValues(Set<StyleListener> listenersSet)
protected boolean doStyleValueChanged(IlpAbstractStyle source, IlpKey key, Set<StyleListener> listenersSet)
protected void doEndChangingStyleValues(Set<StyleListener> listenersSet)
public Object getValueOrNotFound(IlpKey key, IlpStyle source)
IlpAbstractStyle.NotFound
if none is found.key
- The key to find.source
- The style whose context is used to resolve value providers.NotFound
if not found.public Object getValueOrNotFound(IlpKey key)
IlpAbstractStyle
.getValueOrNotFound
in class IlpAbstractStyle
public Object getLocalValueOrNotFound(IlpKey key, IlpStyle source)
key
- the key to findNotFound
if not found.public Object getValueProviderOrNotFound(IlpKey key)
IlpAbstractStyle.NotFound
if none is found.
Must be called by synchronized methods only.protected boolean isValueProviderValid(IlpKey key, IlpStyleValueProvider provider)
protected boolean doSetValueProvider(IlpKey key, IlpStyleValueProvider valueProvider, boolean doReset)
This method is not going to notify, but it will return if the notification should be sent or not.
protected boolean needStyleValue(IlpKey k)
public boolean doHasValue(IlpKey key, boolean checkStatic)
IlpKey
has a value associated with this style, either
locally or in default styles.key
- Key for the value to check.protected boolean doHasValueProvider(IlpKey key)
true
if there is a local value provider associated with the key.key
- Key for the value provider to check.protected boolean doHasStaticValue(IlpKey key)
true
if there is a value associated with the key in a static style.key
- Key for the value provider to check.protected boolean doHasDefaultValue(IlpKey key, boolean checkStatic)
true
if there is a default value associated with the key. The
ordered list of default styles is searched for the existence of the given key.key
- Key for the value to check.public void doMoveContents(IlpStyle style)
IltLegend.AdaptStyle
to move the contents of an IlpStyle
to JTGO legends.
Synchronization is done in IlpStyle
.
Must be called from a synchronized block.doMoveContents
in class IlpAbstractStyle
style
- Target styleprotected void doCopyAllContext(IlpAbstractStyle source)
doCopyAllContext
in class IlpAbstractStyle
protected boolean doCopyAllValues(IlpAbstractStyle source)
doCopyAllValues
in class IlpAbstractStyle
public StyleListener[] doGetStyleListeners()
public IlpStyle[] doGetComputedDefaultStyles()
public IlpStyle[] doGetDefaultStyles()
protected Collection<IlpKey> doSetDefaultStyles(IlpStyle[] defaultStyles)
defaultStyles
- Complete list of default styles to use.protected Collection<IlpKey> doRemoveDefaultStyle(IlpStyle defaultStyle)
defaultStyle
- Default style to remove.protected boolean doRemoveComputedDefaultStyle(IlpStyle style)
public void doCleanValueProviders()
protected Collection<IlpKey> doResetValueProviders()
protected void doClone(IlpAbstractStyle newStyle)
doClone
in class IlpAbstractStyle
protected void printDefaultStyle(IlpStyle style, String index)
style
- Styleindex
- Indexprotected IlpStyle[] doGetStyleSearchOrder()
The first element in the list is the style itself.
Please note that the returned list must not be modified.
public final void resetStyleSearchOrder()
This method should be called when a change in the default styles list happens.
public static IlpStyle GetStyleFromContext(IlpStyleManager manager, IlpStyleContext cxt)
manager
- cxt
- © Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.