@Deprecated public class IlpKey extends IlEnum
IlpStyle
properties.
An IlpKey
is an entry point in an IlpStyle
. The key
lets you store and retrieve values in a style. To draw objects, values
containing graphical properties are retrieved from styles using specific keys.
For instance, a key named LABEL_BACKGROUND_COLOR
may be used to
access the background color for a label.
IlpStyle
Modifier and Type | Field and Description |
---|---|
protected Object |
defaultValue
Deprecated.
Default value for the key
|
protected static Logger |
logger
Deprecated.
Logger for local access
|
static IlEnumInfo |
metainfo
Deprecated.
Contains metainformation about this
IlEnum class. |
Modifier | Constructor and Description |
---|---|
protected |
IlpKey(String name,
Object defaultValue)
Deprecated.
Creates a new property key.
|
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultInitValue()
Deprecated.
Gets the default value for the key.
|
static IlpKey |
GetSharedInstance(String name)
Deprecated.
Retrieves an existing key instance.
|
static IlpKey |
GetSharedInstance(String name,
Class type)
Deprecated.
Returns an existing key instance or creates a new key
of the given type.
|
Class |
getValueType()
Deprecated.
Gets the value type of the key.
|
int |
hashCode()
Deprecated.
|
Object |
internalGetDefaultValue()
Deprecated.
Internal accessor to default value.
|
static IlpKey |
NewKey(String name)
Deprecated.
Creates a new key for untyped properties and sets the default value to
null . |
static IlpKey |
NewKey(String name,
Object defaultValue)
Deprecated.
Creates a new key for untyped properties.
|
protected void |
setDefaultInitValue(Object defaultValue)
Deprecated.
Sets the default value for the key.
|
protected Object defaultValue
protected static final Logger logger
public static IlEnumInfo metainfo
IlEnum
class.public int hashCode()
public static IlpKey NewKey(String name)
null
.name
- A unique name for the key, used for serialization.public static IlpKey NewKey(String name, Object defaultValue)
name
- A unique name for the key, used for serialization.defaultValue
- Initialization default value used if no other value
is available.public Object getDefaultInitValue()
public Class getValueType()
protected void setDefaultInitValue(Object defaultValue)
defaultValue
- Default value to set for the key.public static IlpKey GetSharedInstance(String name)
name
- The name of the key to retrieve.public static IlpKey GetSharedInstance(String name, Class type)
name
- The name of the key to retrieve.type
- Key typepublic Object internalGetDefaultValue()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.