public class ButtonImageDefinition
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
double |
heightChars
Image height in character units.
|
int |
heightPixels
Image height in pixel units.
|
java.lang.String |
name
Button image file name.
|
double |
offsetCol
Column offset in character units inside the image data to start drawing image.
|
double |
offsetRow
Row offset in character units inside the image data to start drawing image.
|
int |
offsetX
X offset in pixel units inside the image data to start drawing image.
|
int |
offsetY
Y offset in pixel units inside the image data to start drawing image.
|
double |
widthChars
Image width in character units.
|
int |
widthPixels
Image width in pixel units.
|
Constructor and Description |
---|
ButtonImageDefinition()
Default constructor (only used in deserialization).
|
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public int offsetX
public int offsetY
public double offsetRow
public double offsetCol
public int widthPixels
public double widthChars
public int heightPixels
public double heightChars
public java.lang.String name
public ButtonImageDefinition()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.