public final class SizeConfig extends Object
Configurer
Modifier and Type | Field and Description |
---|---|
static String |
ATT_HEIGHT
Size height node.
|
static String |
ATT_WIDTH
Size width node.
|
static String |
NODE_SIZE
Size node name.
|
Constructor and Description |
---|
SizeConfig(int width,
int height)
Create a size configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static XmlNode |
exports(SizeConfig config)
Export the size node from data.
|
int |
getHeight()
Get the height value.
|
int |
getWidth()
Get the width value.
|
int |
hashCode() |
static SizeConfig |
imports(Configurer configurer)
Import the size data from configurer.
|
static SizeConfig |
imports(Setup setup)
Import the size data from setup.
|
static SizeConfig |
imports(XmlNode root)
Import the size data from configurer.
|
public static final String NODE_SIZE
public static final String ATT_WIDTH
public static final String ATT_HEIGHT
public SizeConfig(int width, int height)
width
- The width value.height
- The height value.public static SizeConfig imports(Setup setup)
setup
- The setup reference.LionEngineException
- If unable to read node.public static SizeConfig imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node.public static SizeConfig imports(XmlNode root)
root
- The root reference.LionEngineException
- If unable to read node.public static XmlNode exports(SizeConfig config)
config
- The config reference.LionEngineException
- If unable to read node.public int getWidth()
public int getHeight()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.