ilog.cpl.style
Class IlpAbstractStyle

java.lang.Object
  extended by ilog.cpl.style.IlpAbstractStyle
All Implemented Interfaces:
StyleListener, Serializable, Cloneable, EventListener
Direct Known Subclasses:
IlpStyle

Deprecated. The Style API has been replaced by the Cascading Style Sheet mechanism. Refer to the User's Manual for further information.

public abstract class IlpAbstractStyle
extends Object
implements StyleListener, Serializable, Cloneable

This class is the base class for all kinds of styles. It provides local key mechanisms, but does not generate notifications.

Since:
JTGO 3.0
See Also:
IlpStyle, Serialized Form
Deprecated Since:
JTGO 3.5

Field Summary
protected static Object _StyleLock
          Deprecated. THE style lock.
protected  IlpContext appContext
          Deprecated. Application context where this style is present.
protected  ilog.util.internal.IlFastHashtable literals
          Deprecated. A table IlpKey -> Object.
static Object NotFound
          Deprecated. This attribute defines the flag used when the style value is not found or cannot be calculated by the value providers.
protected  ilog.cpl.style.internal.IlpStyleSearchStrategy searchStrategy
          Deprecated. The strategy used to search values in this style.
 
Constructor Summary
protected IlpAbstractStyle()
          Deprecated. Constructor.
 
Method Summary
 void addLiterals(Object[] keysAndValues)
          Deprecated. Internally used to initialize static style values.
 void cleanLiterals()
          Deprecated. Clean all literals without notifying.
 Object clone()
          Deprecated. Clones the style object.
protected  Dictionary coerceFastHashtable(Dictionary badVector)
          Deprecated. Used to deserialize, convert Dictionary to IlFastHashtable.
protected  Float[] convertFloatArray(float[] oldArray)
          Deprecated. Converts float[] to Float[].
protected  Integer[] convertIntegerArray(int[] oldArray)
          Deprecated. Converts int[] to Integer[].
 void copyAllValues(IlpAbstractStyle sourceStyle)
          Deprecated. Copies all values from a given style.
 void dispose()
          Deprecated. Cleans the local values and removes dependences.
protected  void doCleanLiterals()
          Deprecated. Clear all literals Must be called from a synchronization block.
protected  void doClone(IlpAbstractStyle newStyle)
          Deprecated. Create internal structures to prepare clone operation.
protected  void doCopyAllContext(IlpAbstractStyle sourceStyle)
          Deprecated. Copies all values from a given style.
protected  boolean doCopyAllValues(IlpAbstractStyle sourceStyle)
          Deprecated. Perform copy.
protected  void doDispose()
          Deprecated. Clear all internal references Must be called from a synchronization block.
protected  boolean doHasLiteral(IlpKey key)
          Deprecated. Returns true if there is a local literal value associated with the key.
protected  void doMoveContents(IlpStyle style)
          Deprecated. Move the contents of this style to the given style Must be called from a synchronization block.
protected  boolean doResetLiteral(IlpKey key)
          Deprecated. Resets the literal value.
protected  Collection doResetLiterals()
          Deprecated. Reset all literals Must be called from a synchronization block.
protected  void fireEndChangingStyleValues(Collection allListeners)
          Deprecated. Fires endChangingStyleValues events to all listeners.
protected  void fireStartChangingStyleValues(Collection allListeners)
          Deprecated. Fires startChangingStyleValues events to all listeners.
protected  void fireStyleNotification(Collection changedKeys)
          Deprecated. Notifies the change on the given keys.
protected  void fireStyleValueChanged(IlpAbstractStyle source, IlpKey key, Collection allListeners)
          Deprecated. Fires styleValueChanged events to all listeners.
 IlpContext getAppContext()
          Deprecated. Returns the application context where this style is defined.
 boolean getBoolean(IlpBooleanKey key)
          Deprecated. Returns the boolean value of a given key in this style.
 boolean getBoolean(IlpBooleanKey key, boolean defaultValue)
          Deprecated. Returns the boolean value of a given key in this style.
 Color getColor(IlpColorKey key)
          Deprecated. Returns the Color value of a given key in this style.
 Color getColor(IlpColorKey key, Color defaultValue)
          Deprecated. Returns the Color value of a given key in this style.
 IlpDomain getDomain(IlpDomainKey key)
          Deprecated. Returns the IlpDomain value of a given key in this style.
 IlpDomain getDomain(IlpDomainKey key, IlpDomain defaultValue)
          Deprecated. Returns the IlpDomain value of a given key in this style.
 IlEnum getEnum(IlpEnumKey key)
          Deprecated. Returns the IlEnum value of a given key in this style.
 IlEnum getEnum(IlpEnumKey key, IlEnum defaultValue)
          Deprecated. Returns the IlEnum value of a given key in this style.
 Object getEnumArray(IlpEnumArrayKey key)
          Deprecated. Returns the IlEnum[] array value of a given key in this style.
 Object getEnumArray(IlpEnumArrayKey key, Object defaultValue)
          Deprecated. Returns the IlEnum[] array value of a given key in this style.
 float getFloat(IlpFloatKey key)
          Deprecated. Returns the float value of a given key in this style.
 float getFloat(IlpFloatKey key, float defaultValue)
          Deprecated. Returns the float value of a given key in this style.
 Float[] getFloatArray(IlpFloatArrayKey key)
          Deprecated. Returns the Float[] value of a given key in this style.
 Float[] getFloatArray(IlpFloatArrayKey key, float[] defaultValue)
          Deprecated. Returns the Float[] value of a given key in this style.
 Float[] getFloatArray(IlpFloatArrayKey key, Float[] defaultValue)
          Deprecated. Returns the Float[] value of a given key in this style.
 Font getFont(IlpFontKey key)
          Deprecated. Returns the Font value of a given key in this style.
 Font getFont(IlpFontKey key, Font defaultValue)
          Deprecated. Returns the Font value of a given key in this style.
 Format getFormat(IlpFormatKey key)
          Deprecated. Returns the Format value of a given key in this style.
 Format getFormat(IlpFormatKey key, Format defaultValue)
          Deprecated. Returns the Format value of a given key in this style.
 Image getImage(IlpImageKey key)
          Deprecated. Returns the Image value of a given key in this style.
 Image getImage(IlpImageKey key, Image defaultValue)
          Deprecated. Returns the Image value of a given key in this style.
 int getInteger(IlpIntegerKey key)
          Deprecated. Returns the int value of a given key in this style.
 int getInteger(IlpIntegerKey key, int defaultValue)
          Deprecated. Returns the int value of a given key in this style.
 Integer[] getIntegerArray(IlpIntegerArrayKey key)
          Deprecated. Returns the Integer[] value of a given key in this style.
 Integer[] getIntegerArray(IlpIntegerArrayKey key, int[] defaultValue)
          Deprecated. Returns the Integer[] value of a given key in this style.
 Integer[] getIntegerArray(IlpIntegerArrayKey key, Integer[] defaultValue)
          Deprecated. Returns the Integer[] value of a given key in this style.
 IlpInteractor getInteractor(IlpInteractorKey key)
          Deprecated. Returns the IlpInteractor value of a given key in this style.
 IlpInteractor getInteractor(IlpInteractorKey key, IlpInteractor defaultValue)
          Deprecated. Returns the IlpInteractor value of a given key in this style.
 Collection getKeys()
          Deprecated. Gets an enumeration of local and value provider keys.
 Object getLiteral(IlpKey key)
          Deprecated. Retrieves the local literal value associated with the key or null, if there is no value for this key.
 Object getLiteralOrNotFound(IlpKey key)
          Deprecated. Returns the literal value associated with the given key or IlpAbstractStyle.NotFound if none is found.
 ilog.util.internal.IlFastHashtable getLiterals()
          Deprecated. Returns the table with all literals defined in this style.
protected  Collection getOwnKnownKeys()
          Deprecated. Returns a modifiable collection with all the keys of this style.
 IlpPoint getPoint(IlpPointKey key)
          Deprecated. Returns the IlpPoint value of a given key in this style.
 IlpPoint getPoint(IlpPointKey key, IlpPoint defaultValue)
          Deprecated. Returns the IlpPoint value of a given key in this style.
 IlpRect getRect(IlpRectKey key)
          Deprecated. Returns the IlpRect value of a given key in this style.
 IlpRect getRect(IlpRectKey key, IlpRect defaultValue)
          Deprecated. Returns the IlpRect value of a given key in this style.
 IlpGraphicRenderer getRenderer(IlpRendererKey key)
          Deprecated. Returns the IlpGraphicRenderer value of a given key in this style.
 IlpGraphicRenderer getRenderer(IlpRendererKey key, IlpGraphicRenderer defaultValue)
          Deprecated. Returns the IlpGraphicRenderer value of a given key in this style.
 ilog.cpl.style.internal.IlpStyleSearchStrategy getSearchStrategy()
          Deprecated. Returns the search strategy used by this style.
 String getString(IlpStringKey key)
          Deprecated. Returns the String value of a given key in this style.
 String getString(IlpStringKey key, String defaultValue)
          Deprecated. Returns the String value of a given key in this style.
 String[] getStringArray(IlpStringArrayKey key)
          Deprecated. Returns the String[] value of a given key in this style.
 String[] getStringArray(IlpStringArrayKey key, String[] defaultValue)
          Deprecated. Returns the String[] value of a given key in this style.
 int getSwingConstant(IlpSwingConstantKey key)
          Deprecated. Returns the int value of a given key in this style.
 int getSwingConstant(IlpSwingConstantKey key, int defaultValue)
          Deprecated. Returns the int value of a given key in this style.
abstract  Object getValue(IlpKey key)
          Deprecated.  
 Object getValue(IlpKey key, Object defaultValue)
          Deprecated. Returns the value of a given IlpKey in this style.
 IlpValueMap getValueMap(IlpValueMapKey key)
          Deprecated. Returns the IlpValueMap value of a given key in this style.
 IlpValueMap getValueMap(IlpValueMapKey key, IlpValueMap defaultValue)
          Deprecated. Returns the IlpValueMap value of a given key in this style.
protected abstract  Object getValueOrNotFound(IlpKey key)
          Deprecated. Returns the value associated with the given key or IlpAbstractStyle.NotFound, if none is found.
 boolean hasLiteral(IlpKey key)
          Deprecated. Returns true if there is a local literal value associated with the key.
abstract  boolean hasValue(IlpKey key)
          Deprecated.  
 Enumeration keys()
          Deprecated. Returns the properties that have a local value in this style.
 void moveContents(IlpStyle style)
          Deprecated. This method is internally used to move the contents of this style to the given style.
 boolean resetLiteral(IlpKey key)
          Deprecated. Resets the local value associated with this key.
 void resetLiterals()
          Deprecated. Clean all literals without notifying.
 boolean resetLiteralSilently(IlpKey key)
          Deprecated. Resets the local value associated with this key.
 void setAppContext(IlpContext c)
          Deprecated. Sets the application context where the style is defined.
 void setBoolean(IlpBooleanKey key, boolean value)
          Deprecated. Changes the boolean local value of a given property in this style.
 void setColor(IlpColorKey key, Color value)
          Deprecated. Changes the Color local value of a given property in this style.
 void setDomain(IlpDomainKey key, IlpDomain value)
          Deprecated. Changes the IlpDomain local value of a given property in this style.
 void setEnum(IlpEnumKey key, IlEnum value)
          Deprecated. Changes the IlEnum local value of a given property in this style.
 void setEnumArray(IlpEnumArrayKey key, IlEnum[] value)
          Deprecated. Changes the IlEnum[] local value of a given property in this style.
 void setFloat(IlpFloatKey key, float value)
          Deprecated. Changes the float local value of a given property in this style.
 void setFloatArray(IlpFloatArrayKey key, float[] value)
          Deprecated. Changes the float[] local value of a given property in this style.
 void setFloatArray(IlpFloatArrayKey key, Float[] value)
          Deprecated. Changes the Float[] local value of a given property in this style.
 void setFont(IlpFontKey key, Font value)
          Deprecated. Changes the Font local value of a given property in this style.
 void setFormat(IlpFormatKey key, Format value)
          Deprecated. Changes the Format local value of a given property in this style.
 void setImage(IlpImageKey key, Image value)
          Deprecated. Changes the Image local value of a given property in this style.
 void setInteger(IlpIntegerKey key, int value)
          Deprecated. Changes the int local value of a given property in this style.
 void setIntegerArray(IlpIntegerArrayKey key, int[] value)
          Deprecated. Changes the int[] local value of a given property in this style.
 void setIntegerArray(IlpIntegerArrayKey key, Integer[] value)
          Deprecated. Changes the Integer[] local value of a given property in this style.
 void setInteractor(IlpInteractorKey key, IlpInteractor value)
          Deprecated. Changes the IlpInteractor local value of a given property in this style.
 void setLiteral(IlpKey key, Object value)
          Deprecated. Changes the local literal value of a given key in this style.
 void setLiterals(Object[] keysAndValues)
          Deprecated. Internally used to initialize static style values.
 void setLiteralSilently(IlpKey key, Object value)
          Deprecated. Changes the local literal value of a given key in this style without notifying this change.
 void setPoint(IlpPointKey key, IlpPoint value)
          Deprecated. Changes the IlpPoint local value of a given property in this style.
 void setRect(IlpRectKey key, IlpRect value)
          Deprecated. Changes the IlpRect local value of a given property in this style.
 void setRenderer(IlpRendererKey key, IlpGraphicRenderer value)
          Deprecated. Changes the IlpGraphicRenderer local value of a given property in this style.
 void setSearchStrategy(ilog.cpl.style.internal.IlpStyleSearchStrategy strategy)
          Deprecated. Sets a new search strategy to this style.
 void setString(IlpStringKey key, String value)
          Deprecated. Changes the String local value of a given property in this style.
 void setStringArray(IlpStringArrayKey key, String[] value)
          Deprecated. Changes the String[] local value of a given property in this style.
 void setSwingConstant(IlpSwingConstantKey key, int value)
          Deprecated. Changes the SwingConstant local value of a given property in this style.
abstract  void setValue(IlpKey key, Object value)
          Deprecated.  
 void setValueMap(IlpValueMapKey key, IlpValueMap value)
          Deprecated. Changes the IlpValueMap local value of a given property in this style.
protected  void transientInit()
          Deprecated. Initializes the context information
protected  boolean verifyNeededStyleKeys(Collection newKnownKeys)
          Deprecated. Returns true if the new key collection contains all the needed style keys.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.style.StyleListener
endChangingStyleValues, startChangingStyleValues, styleValueChanged
 

Field Detail

NotFound

public static final Object NotFound
Deprecated. 
This attribute defines the flag used when the style value is not found or cannot be calculated by the value providers.


literals

protected ilog.util.internal.IlFastHashtable literals
Deprecated. 
A table IlpKey -> Object. null values are allowed. Here are the local values.

Internal method or field: do not use!

searchStrategy

protected ilog.cpl.style.internal.IlpStyleSearchStrategy searchStrategy
Deprecated. 
The strategy used to search values in this style.

Internal method or field: do not use!

appContext

protected IlpContext appContext
Deprecated. 
Application context where this style is present.

Internal method or field: do not use!

_StyleLock

protected static final Object _StyleLock
Deprecated. 
THE style lock.

Internal method or field: do not use!
Constructor Detail

IlpAbstractStyle

protected IlpAbstractStyle()
Deprecated. 
Constructor.

Method Detail

setSearchStrategy

public void setSearchStrategy(ilog.cpl.style.internal.IlpStyleSearchStrategy strategy)
Deprecated. 
Sets a new search strategy to this style.

Internal method or field: do not use!

getSearchStrategy

public ilog.cpl.style.internal.IlpStyleSearchStrategy getSearchStrategy()
Deprecated. 
Returns the search strategy used by this style.

Internal method or field: do not use!

getAppContext

public IlpContext getAppContext()
Deprecated. 
Returns the application context where this style is defined.

Returns:
the specified application context, if one is set, or the default application context.
Since:
JTGO 3.1
Internal method or field: do not use!

setAppContext

public void setAppContext(IlpContext c)
Deprecated. 
Sets the application context where the style is defined.

Since:
JTGO 3.1
Internal method or field: do not use!

clone

public Object clone()
Deprecated. 
Clones the style object.

Overrides:
clone in class Object
Returns:
Returns a copy of this style object.

keys

public Enumeration keys()
Deprecated. 
Returns the properties that have a local value in this style.

Internal method or field: do not use!

getKeys

public Collection getKeys()
Deprecated. 
Gets an enumeration of local and value provider keys.

Internal method or field: do not use!

getLiterals

public ilog.util.internal.IlFastHashtable getLiterals()
Deprecated. 
Returns the table with all literals defined in this style.

Internal method or field: do not use!

resetLiterals

public void resetLiterals()
Deprecated. 
Clean all literals without notifying.

Internal method or field: do not use!

cleanLiterals

public void cleanLiterals()
Deprecated. 
Clean all literals without notifying.

Internal method or field: do not use!

setLiterals

public void setLiterals(Object[] keysAndValues)
Deprecated. 
Internally used to initialize static style values. Do not need to notify

Internal method or field: do not use!

addLiterals

public void addLiterals(Object[] keysAndValues)
Deprecated. 
Internally used to initialize static style values. Do not need to notify

Internal method or field: do not use!

hasLiteral

public boolean hasLiteral(IlpKey key)
Deprecated. 
Returns true if there is a local literal value associated with the key.

Parameters:
key - Key for the value to check.
Returns:
Boolean indicating whether the style has a local literal value for the given key.

getLiteral

public Object getLiteral(IlpKey key)
Deprecated. 
Retrieves the local literal value associated with the key or null, if there is no value for this key.

Parameters:
key - Key for the literal value to retrieve.
Returns:
The retrieved value or null if the value does not exist as a literal value.

setLiteral

public void setLiteral(IlpKey key,
                       Object value)
Deprecated. 
Changes the local literal value of a given key in this style.

Parameters:
key - The key which value to set.
value - The literal value to set. If this value is of type float[] or int[], it will be converted to type java.lang.Float[] or java.lang.Integer[], respectively.
Throws:
IllegalArgumentException - if the value class does not correspond to the key class.

resetLiteral

public boolean resetLiteral(IlpKey key)
Deprecated. 
Resets the local value associated with this key.

Parameters:
key - The key for the value to reset.
Returns:
true if the operation succeeded, false otherwise.

dispose

public void dispose()
Deprecated. 
Cleans the local values and removes dependences. This method is called when the style is being prepared to be garbage collected.

Internal method or field: do not use!

setValue

public abstract void setValue(IlpKey key,
                              Object value)
Deprecated. 
Internal method or field: do not use!

getValue

public abstract Object getValue(IlpKey key)
Deprecated. 
Internal method or field: do not use!

hasValue

public abstract boolean hasValue(IlpKey key)
Deprecated. 
Internal method or field: do not use!

getValue

public Object getValue(IlpKey key,
                       Object defaultValue)
Deprecated. 
Returns the value of a given IlpKey in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The value corresponding to the given key, or the default value if the key cannot be found.

getBoolean

public boolean getBoolean(IlpBooleanKey key)
Deprecated. 
Returns the boolean value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The boolean value corresponding to the given key.

getBoolean

public boolean getBoolean(IlpBooleanKey key,
                          boolean defaultValue)
Deprecated. 
Returns the boolean value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The boolean value corresponding to the given key, or the default value if the key cannot be found.

getColor

public Color getColor(IlpColorKey key)
Deprecated. 
Returns the Color value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Color value corresponding to the given key.

getColor

public Color getColor(IlpColorKey key,
                      Color defaultValue)
Deprecated. 
Returns the Color value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Color value corresponding to the given key, or the default value if the key cannot be found.

getDomain

public IlpDomain getDomain(IlpDomainKey key)
Deprecated. 
Returns the IlpDomain value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlpDomain value corresponding to the given key.

getDomain

public IlpDomain getDomain(IlpDomainKey key,
                           IlpDomain defaultValue)
Deprecated. 
Returns the IlpDomain value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The IlpDomain value corresponding to the given key, or the default value if the key cannot be found.

getEnum

public IlEnum getEnum(IlpEnumKey key)
Deprecated. 
Returns the IlEnum value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlEnum value corresponding to the given key.

getEnum

public IlEnum getEnum(IlpEnumKey key,
                      IlEnum defaultValue)
Deprecated. 
Returns the IlEnum value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The IlEnum value corresponding to the given key, or the default value if the key cannot be found.

getEnumArray

public Object getEnumArray(IlpEnumArrayKey key)
Deprecated. 
Returns the IlEnum[] array value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
An array which element type is an IlEnum subclass.

getEnumArray

public Object getEnumArray(IlpEnumArrayKey key,
                           Object defaultValue)
Deprecated. 
Returns the IlEnum[] array value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
An array which element type is an IlEnum subclass, or the default value if the key cannot be found.

getFloat

public float getFloat(IlpFloatKey key)
Deprecated. 
Returns the float value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The float value corresponding to the given key.

getFloat

public float getFloat(IlpFloatKey key,
                      float defaultValue)
Deprecated. 
Returns the float value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The float value corresponding to the given key, or the default value if the key cannot be found.

getFloatArray

public Float[] getFloatArray(IlpFloatArrayKey key)
Deprecated. 
Returns the Float[] value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Float[] value corresponding to the given key.

getFloatArray

public Float[] getFloatArray(IlpFloatArrayKey key,
                             float[] defaultValue)
Deprecated. 
Returns the Float[] value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present. The float[] value is converted to a Float[] value.
Returns:
The Float[] value corresponding to the given key, or the default value if the key cannot be found.

getFloatArray

public Float[] getFloatArray(IlpFloatArrayKey key,
                             Float[] defaultValue)
Deprecated. 
Returns the Float[] value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Float[] value corresponding to the given key, or the default value if the key cannot be found.

getFont

public Font getFont(IlpFontKey key)
Deprecated. 
Returns the Font value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Font value corresponding to the given key.

getFont

public Font getFont(IlpFontKey key,
                    Font defaultValue)
Deprecated. 
Returns the Font value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Font value corresponding to the given key, or the default value if the key cannot be found.

getFormat

public Format getFormat(IlpFormatKey key)
Deprecated. 
Returns the Format value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Format value corresponding to the given key.

getFormat

public Format getFormat(IlpFormatKey key,
                        Format defaultValue)
Deprecated. 
Returns the Format value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Format value corresponding to the given key, or the default value if the key cannot be found.

getImage

public Image getImage(IlpImageKey key)
Deprecated. 
Returns the Image value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Image value corresponding to the given key.

getImage

public Image getImage(IlpImageKey key,
                      Image defaultValue)
Deprecated. 
Returns the Image value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Image value corresponding to the given key, or the default value if the key cannot be found.

getInteger

public int getInteger(IlpIntegerKey key)
Deprecated. 
Returns the int value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The int value corresponding to the given key.

getInteger

public int getInteger(IlpIntegerKey key,
                      int defaultValue)
Deprecated. 
Returns the int value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The int value corresponding to the given key, or the default value if the key cannot be found.

getIntegerArray

public Integer[] getIntegerArray(IlpIntegerArrayKey key)
Deprecated. 
Returns the Integer[] value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The Integer[] value corresponding to the given key

getIntegerArray

public Integer[] getIntegerArray(IlpIntegerArrayKey key,
                                 int[] defaultValue)
Deprecated. 
Returns the Integer[] value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present. The int[] value is converted to a Integer[] value.
Returns:
The Integer[] value corresponding to the given key, or the default value if the key cannot be found.

getIntegerArray

public Integer[] getIntegerArray(IlpIntegerArrayKey key,
                                 Integer[] defaultValue)
Deprecated. 
Returns the Integer[] value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The Integer[] value corresponding to the given key, or the default value if the key cannot be found.

getInteractor

public IlpInteractor getInteractor(IlpInteractorKey key)
Deprecated. 
Returns the IlpInteractor value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlpInteractor value corresponding to the given key.

getInteractor

public IlpInteractor getInteractor(IlpInteractorKey key,
                                   IlpInteractor defaultValue)
Deprecated. 
Returns the IlpInteractor value of a given key in this style. If this key is not present, the defaultValue is returned.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The IlpInteractor value corresponding to the given key, or the default value if the key cannot be found.

getPoint

public IlpPoint getPoint(IlpPointKey key)
Deprecated. 
Returns the IlpPoint value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlpPoint value corresponding to the given key.

getPoint

public IlpPoint getPoint(IlpPointKey key,
                         IlpPoint defaultValue)
Deprecated. 
Returns the IlpPoint value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The IlpPoint value corresponding to the given key, or the default value if the key cannot be found.

getRect

public IlpRect getRect(IlpRectKey key)
Deprecated. 
Returns the IlpRect value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlpRect value corresponding to the given key.

getRect

public IlpRect getRect(IlpRectKey key,
                       IlpRect defaultValue)
Deprecated. 
Returns the IlpRect value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
defaultValue - The default value to be used if the key is not present.
Returns:
The IlpRect value corresponding to the given key, or the default value if the key cannot be found.

getRenderer

public IlpGraphicRenderer getRenderer(IlpRendererKey key)
Deprecated. 
Returns the IlpGraphicRenderer value of a given key in this style.

Parameters:
key - The style key with the value to retrieve.
Returns:
The IlpGraphicRenderer value corresponding to the given key.

getRenderer

public IlpGraphicRenderer getRenderer(