Class Form
Please see Example_44
public class Form : IDrawable
- Inheritance
-
Form
- Implements
- Inherited Members
Constructors
Form(List<Field>)
Creates a Form object
public Form(List<Field> fields)
Parameters
Methods
DrawOn(Page)
Draws this Form on the specified page.
public float[] DrawOn(Page page)
Parameters
pagePagethe page to draw this form on.
Returns
- float[]
x and y coordinates of the bottom right corner of this component.
Exceptions
- Exception
If an input or output exception occurred
SetLabelColor(int)
Sets the label color Color.transparent leaves it unchanged.
public Form SetLabelColor(int labelColor)
Parameters
labelColorintthe label color as a 0xRRGGBB value, for example Color.black.
Returns
- Form
the form
SetLabelColor(float[])
Sets the label color
public Form SetLabelColor(float[] labelColor)
Parameters
labelColorfloat[]the label color
Returns
- Form
the form
SetLabelFont(Font)
Sets the font for the label
public Form SetLabelFont(Font f1)
Parameters
f1Fontthe font
Returns
- Form
this form
SetLabelFontSize(float)
Sets the size for the label font
public Form SetLabelFontSize(float labelFontSize)
Parameters
labelFontSizefloatthe label font size
Returns
- Form
the form
SetLocation(float, float)
Sets the location of this form on the page
public Form SetLocation(float x, float y)
Parameters
Returns
- Form
the form
SetStrokeWidth(float)
Sets the stroke width
public Form SetStrokeWidth(float strokeWidth)
Parameters
strokeWidthfloatthe stroke width
Returns
- Form
this form
SetValueColor(int)
Sets the color for the value Color.transparent leaves it unchanged.
public Form SetValueColor(int valueColor)
Parameters
valueColorintthe value color as a 0xRRGGBB value, for example Color.blue.
Returns
- Form
the form
SetValueColor(float[])
Sets the color for the value
public Form SetValueColor(float[] valueColor)
Parameters
valueColorfloat[]the value color
Returns
- Form
the form
SetValueFont(Font)
Sets the font for the value
public Form SetValueFont(Font f2)
Parameters
f2Fontthe value font
Returns
- Form
the form
SetValueFontSize(float)
Sets the size for the value font
public Form SetValueFontSize(float valueFontSize)
Parameters
valueFontSizefloatthe font size
Returns
- Form
the form
SetWidth(float)
Sets the width of this form.
public Form SetWidth(float width)
Parameters
widthfloatthe width of this form
Returns
- Form
this form