java.lang.Object | |
↳ | sun.swing.plaf.synth.DefaultSynthStyle.StateInfo |
StateInfo represents Style information specific to the state of a component.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new StateInfo.
| |||||||||||
Creates a new StateInfo with the specified properties
| |||||||||||
Creates a new StateInfo that is a copy of the passed in
StateInfo.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Merges the contents of this StateInfo with that of the passed in
StateInfo, returning the resulting merged StateInfo.
| |||||||||||
Creates and returns a copy of this StateInfo.
| |||||||||||
Returns the Color to used for the specified ColorType.
| |||||||||||
Returns the array of colors to use for rendering this state.
| |||||||||||
Returns the state this StateInfo corresponds to.
| |||||||||||
Returns the font for this state.
| |||||||||||
Sets the array of colors to use for rendering this state.
| |||||||||||
Sets the state this StateInfo corresponds to.
| |||||||||||
Sets the font for this state.
| |||||||||||
Returns a string representation of the object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new StateInfo.
Creates a new StateInfo with the specified properties
state | Component state(s) that this StateInfo should be used for |
---|---|
font | Font for this state |
colors | Colors for this state |
Creates a new StateInfo that is a copy of the passed in StateInfo.
info | StateInfo to copy. |
---|
Merges the contents of this StateInfo with that of the passed in
StateInfo, returning the resulting merged StateInfo. Properties of
this StateInfo
will take precedence over those of the
passed in StateInfo
. For example, if this
StateInfo specifics a non-null font, the returned StateInfo will
have its font so to that regardless of the StateInfo
's
font.
info | StateInfo to add our styles to |
---|
Creates and returns a copy of this StateInfo.
Returns the Color to used for the specified ColorType.
Returns the array of colors to use for rendering this state. This
is indexed by ColorType.getID()
.
Returns the font for this state.
Sets the array of colors to use for rendering this state. This
is indexed by ColorType.getID()
.
colors | Array of colors |
---|
Sets the font for this state.
font | Font to use for rendering |
---|
Returns a string representation of the object. In general, the
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())