public final class FramesConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATT_HORIZONTAL
Frames horizontal node name.
|
static String |
ATT_VERTICAL
Frames vertical node name.
|
static String |
NODE_FRAMES
Frames node name.
|
Constructor and Description |
---|
FramesConfig(int horizontalFrames,
int verticalFrames)
Create the frames configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static XmlNode |
exports(FramesConfig config)
Exports the frames node from config.
|
int |
getHorizontal()
Get the number of horizontal frames.
|
int |
getVertical()
Get the number of vertical frames.
|
int |
hashCode() |
static FramesConfig |
imports(Configurer configurer)
Imports the frames config from configurer.
|
static FramesConfig |
imports(Setup setup)
Imports the frames config from setup.
|
static FramesConfig |
imports(XmlNode root)
Imports the frames config from node.
|
public static final String NODE_FRAMES
public static final String ATT_HORIZONTAL
public static final String ATT_VERTICAL
public FramesConfig(int horizontalFrames, int verticalFrames)
horizontalFrames
- The horizontal frames value.verticalFrames
- The vertical frames value.public static FramesConfig imports(Setup setup)
setup
- The setup reference.LionEngineException
- If unable to read node or invalid integer.public static FramesConfig imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node or invalid integer.public static FramesConfig imports(XmlNode root)
root
- The root reference.LionEngineException
- If unable to read node or invalid integer.public static XmlNode exports(FramesConfig config)
config
- The config reference.LionEngineException
- If unable to read node or invalid integer.public int getHorizontal()
public int getVertical()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.