public final class SpreadsheetIcon extends Object
Modifier and Type | Field and Description |
---|---|
static SpreadsheetIcon |
NONE
|
Constructor and Description |
---|
SpreadsheetIcon(SpreadsheetIconStyle iconStyle,
int id)
Initializes a new instance of the
SpreadsheetIcon . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this SpreadsheetIcon instance. |
SpreadsheetIconStyle |
getIconStyle()
Gets the icon style.
|
int |
getId()
Gets the identifier of the icon from the set of icons specified in
getIconStyle() . |
int |
hashCode()
Returns a hash code for this
SpreadsheetIcon instance. |
String |
toString()
Returns a
String that represents this SpreadsheetIcon instance. |
public static final SpreadsheetIcon NONE
public SpreadsheetIcon(SpreadsheetIconStyle iconStyle, int id)
SpreadsheetIcon
.iconStyle
- The icon style.id
- The identifier of the icon from the set of icons specified by iconStyle
(usually a value between 0 and 4).IllegalArgumentException
- iconStyle
cannot be set to SpreadsheetIconStyle.CUSTOM
.IndexOutOfBoundsException
- id
must be equal to 0 if iconStyle
is SpreadsheetIconStyle.NONE
or must be equal to or greater than 0 and less than then number of icons defined in the iconStyle
.public boolean equals(Object obj)
Object
is equal to this SpreadsheetIcon
instance.equals
in class Object
obj
- The Object
to compare with this SpreadsheetIcon
instance.true
if the specified Object
is a SpreadsheetIcon
and is equal to this SpreadsheetIcon
instance; otherwise, false
.public SpreadsheetIconStyle getIconStyle()
public int getId()
getIconStyle()
.getIconStyle()
.public int hashCode()
SpreadsheetIcon
instance.hashCode
in class Object
SpreadsheetIcon
instance.public String toString()
String
that represents this SpreadsheetIcon
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class Object
String
that represents this SpreadsheetIcon
instance.© GemBox d.o.o. — All rights reserved.