Drag[en]gine Script Module DragonScript Script API  1.0
LoadDesigner Class Reference

Load designer from xml file. More...

Inheritance diagram for LoadDesigner:
BaseXmlLoader

Public Member Functions

LoadBorder getBorderLoader ()
 Border loader. More...
 
LoadCanvasCreator getCanvasCreatorLoader ()
 Canvas creator loader. More...
 
DesignerFactories getFactories ()
 Dactories. More...
 
ButtonDesignerFactory loadFromFileButton (String filename)
 Load button designer from xml file. More...
 
ComboBoxDesignerFactory loadFromFileComboBox (String filename)
 Load combo box designer from xml file. More...
 
ProgressBarDesignerFactory loadFromFileProgressBar (String filename)
 Load progress bar designer from xml file. More...
 
ScrollBarDesignerFactory loadFromFileScrollBar (String filename)
 Load scrollbar designer from xml file. More...
 
SpinButtonDesignerFactory loadFromFileSpinButton (String filename)
 Load spinbutton designer from xml file. More...
 
TextAreaDesignerFactory loadFromFileTextArea (String filename)
 Load text area designer from xml file. More...
 
TextFieldDesignerFactory loadFromFileTextField (String filename)
 Load text field designer from xml file. More...
 
LoadDesigner new (Console console)
 Create loader. More...
 
LoadDesigner new (Console console, String name)
 Create loader. More...
 
ButtonDesignerFactory parseButtonDesigner (EasyXMLElement element)
 Parse button designer tag. More...
 
ComboBoxDesignerFactory parseComboBoxDesigner (EasyXMLElement element)
 Parse combo box designer tag. More...
 
ProgressBarDesignerFactory parseProgressBarDesigner (EasyXMLElement element)
 Parse progress bar designer tag. More...
 
ScrollBarDesignerFactory parseScrollBarDesigner (EasyXMLElement element)
 Parse scrollbar designer tag. More...
 
SpinButtonDesignerFactory parseSpinButtonDesigner (EasyXMLElement element)
 Parse spinbutton designer tag. More...
 
TextAreaDesignerFactory parseTextAreaDesigner (EasyXMLElement element)
 Parse text area designer tag. More...
 
TextFieldDesignerFactory parseTextFieldDesigner (EasyXMLElement element)
 Parse text field designer tag. More...
 
void setBorderLoader (LoadBorder loader)
 Set border loader. More...
 
void setCanvasCreatorLoader (LoadCanvasCreator loader)
 Set canvas creator loader. More...
 
void setFactories (DesignerFactories factories)
 Set factories. More...
 
- Public Member Functions inherited from BaseXmlLoader
Console getConsole ()
 
String getName ()
 
int hexToInt (byte hex)
 
void logDeprecated (EasyXMLElement tag, String whatIsDeprecated)
 
void logDeprecated (EasyXMLElement tag, String whatIsDeprecated, String useWhatInstead)
 
void logDeprecatedTag (EasyXMLElement tag)
 
void logDuplicateObject (EasyXMLElement tag, String object, String identifier)
 Output error message duplicate object on the application console. More...
 
void logIncompatibleAttributes (EasyXMLElement tag, String attributeNames)
 
void logInvalidAttributeValue (EasyXMLElement tag, String attribute, String value)
 
void logInvalidEmptyString (EasyXMLElement tag)
 
void logInvalidValue (EasyXMLElement tag, String value)
 
void logLoadFileFailed (EasyXMLElement tag, String filename)
 
void logLoadingFailed (String filename)
 Log loading file failed with error log. More...
 
void logLoadingFromFile (String filename)
 
void logMissingAttribute (EasyXMLElement tag, String attrName)
 
void logMissingCData (EasyXMLElement tag)
 
void logMissingTag (String tagName)
 
void logNotSupported (EasyXMLElement tag, String whatIsNotSupported)
 
void logObjectExists (EasyXMLElement tag, String object, String value)
 Output error message value exists already on the application console. More...
 
void logParsingFailed (String errorLog)
 
void logUnknownTag (EasyXMLElement tag)
 
BaseXmlLoader new (Console console, String name)
 
void printOnConsole (String message)
 
void printOnConsole (EasyXMLElement tag, String errorMessage)
 
BorderSize readBorderSize (EasyXMLElement root)
 Read border size area. More...
 
String readCData (EasyXMLElement tag)
 
bool readCDataBool (EasyXMLElement tag)
 
float readCDataFloat (EasyXMLElement tag)
 
int readCDataHex (EasyXMLElement tag)
 
int readCDataInt (EasyXMLElement tag)
 
Color readColor (EasyXMLElement root)
 
Color readColor (EasyXMLElement root, Color defaultColor)
 
ColorMatrix readColorMatrix (EasyXMLElement root)
 Read color matrix. More...
 
CurveBezier readCurveBezier (EasyXMLElement root)
 
void readCurveBezierPoint (EasyXMLElement root, CurveBezier curve)
 
DVector readDVector (EasyXMLElement root)
 
FloatRectArea readFloatRectArea (EasyXMLElement root)
 Read floating point rectangular area. More...
 
Font readFont (EasyXMLElement root)
 
Point readPoint (EasyXMLElement root)
 
RectArea readRectArea (EasyXMLElement root)
 Read rectangular area. More...
 
Vector readVector (EasyXMLElement root)
 
Vector2 readVector2 (EasyXMLElement root)
 
Vector2 readVector2UV (EasyXMLElement root)
 

Additional Inherited Members

- Public Attributes inherited from BaseXmlLoader
Console pConsole
 Console to print messages to. More...
 
String pName
 Name of the loader object for error reporting. More...
 

Detailed Description

Load designer from xml file.

Member Function Documentation

§ getBorderLoader()

LoadBorder getBorderLoader ( )

Border loader.

§ getCanvasCreatorLoader()

LoadCanvasCreator getCanvasCreatorLoader ( )

Canvas creator loader.

§ getFactories()

DesignerFactories getFactories ( )

Dactories.

§ loadFromFileButton()

ButtonDesignerFactory loadFromFileButton ( String  filename)

Load button designer from xml file.

Used for Button, CheckBox and OptionBox.

Returns
Factory to create instance of the customized button designer.

§ loadFromFileComboBox()

ComboBoxDesignerFactory loadFromFileComboBox ( String  filename)

Load combo box designer from xml file.

Returns
Factory to create instance of the customized combo box designer.

§ loadFromFileProgressBar()

ProgressBarDesignerFactory loadFromFileProgressBar ( String  filename)

Load progress bar designer from xml file.

Returns
Factory to create instance of the customized progress bar designer.

§ loadFromFileScrollBar()

ScrollBarDesignerFactory loadFromFileScrollBar ( String  filename)

Load scrollbar designer from xml file.

Returns
Factory to create instance of the customized scrollbar designer.

§ loadFromFileSpinButton()

SpinButtonDesignerFactory loadFromFileSpinButton ( String  filename)

Load spinbutton designer from xml file.

Returns
Factory to create instance of the customized spinbutton designer.

§ loadFromFileTextArea()

TextAreaDesignerFactory loadFromFileTextArea ( String  filename)

Load text area designer from xml file.

Returns
Factory to create instance of the customized text area designer.

§ loadFromFileTextField()

TextFieldDesignerFactory loadFromFileTextField ( String  filename)

Load text field designer from xml file.

Returns
Factory to create instance of the customized text field designer.

§ new() [1/2]

LoadDesigner new ( Console  console)

Create loader.

§ new() [2/2]

LoadDesigner new ( Console  console,
String  name 
)

Create loader.

§ parseButtonDesigner()

ButtonDesignerFactory parseButtonDesigner ( EasyXMLElement  element)

Parse button designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized button designer.

§ parseComboBoxDesigner()

ComboBoxDesignerFactory parseComboBoxDesigner ( EasyXMLElement  element)

Parse combo box designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized combo box designer.

§ parseProgressBarDesigner()

ProgressBarDesignerFactory parseProgressBarDesigner ( EasyXMLElement  element)

Parse progress bar designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized progress bar designer.

§ parseScrollBarDesigner()

ScrollBarDesignerFactory parseScrollBarDesigner ( EasyXMLElement  element)

Parse scrollbar designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized scrollbar designer.

§ parseSpinButtonDesigner()

SpinButtonDesignerFactory parseSpinButtonDesigner ( EasyXMLElement  element)

Parse spinbutton designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized spinbutton designer.

§ parseTextAreaDesigner()

TextAreaDesignerFactory parseTextAreaDesigner ( EasyXMLElement  element)

Parse text area designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized text area designer.

§ parseTextFieldDesigner()

TextFieldDesignerFactory parseTextFieldDesigner ( EasyXMLElement  element)

Parse text field designer tag.

This is public to be used by LoadGuiTheme.

Returns
Factory to create instance of the customized text field designer.

§ setBorderLoader()

void setBorderLoader ( LoadBorder  loader)

Set border loader.

§ setCanvasCreatorLoader()

void setCanvasCreatorLoader ( LoadCanvasCreator  loader)

Set canvas creator loader.

§ setFactories()

void setFactories ( DesignerFactories  factories)

Set factories.


The documentation for this class was generated from the following file: