|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.swf.Symbol
pt.tumba.parser.swf.EditField
public class EditField
An Edit Field Symbol. In order to limit the chars in the field use a separate font and only load those glyphs that are required.
Field Summary | |
---|---|
protected int |
alignment
Description of the Field |
protected int |
charLimit
Description of the Field |
protected java.lang.String |
fieldName
Description of the Field |
protected Font |
font
Description of the Field |
protected double |
fontSize
Description of the Field |
protected boolean |
hasBorder
Description of the Field |
protected boolean |
hasWordWrap
Description of the Field |
protected double |
indentation
Description of the Field |
protected java.lang.String |
initialText
Description of the Field |
protected boolean |
isEditable
Description of the Field |
protected boolean |
isHtml
Description of the Field |
protected boolean |
isMultiline
Description of the Field |
protected boolean |
isPassword
Description of the Field |
protected boolean |
isSelectable
Description of the Field |
protected double |
leftMargin
Description of the Field |
protected double |
lineSpacing
Description of the Field |
protected double |
maxX
Description of the Field |
protected double |
maxY
Description of the Field |
protected double |
minX
Description of the Field |
protected double |
minY
Description of the Field |
protected double |
rightMargin
Description of the Field |
protected AlphaColor |
textColor
Description of the Field |
protected boolean |
usesSystemFont
Description of the Field |
Fields inherited from class pt.tumba.parser.swf.Symbol |
---|
id |
Constructor Summary | |
---|---|
EditField(java.lang.String fieldName,
java.lang.String initialText,
Font font,
double fontSize,
double minX,
double minY,
double maxX,
double maxY)
Create an Edit Field with black text and default settings |
Method Summary | |
---|---|
protected int |
defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
int |
getAlignment()
Gets the alignment attribute of the EditField object |
int |
getCharLimit()
Gets the charLimit attribute of the EditField object |
java.lang.String |
getFieldName()
Gets the fieldName attribute of the EditField object |
Font |
getFont()
Gets the font attribute of the EditField object |
double |
getFontSize()
Gets the fontSize attribute of the EditField object |
double |
getIndentation()
Gets the indentation attribute of the EditField object |
java.lang.String |
getInitialText()
Gets the initialText attribute of the EditField object |
double |
getLeftMargin()
Gets the leftMargin attribute of the EditField object |
double |
getLineSpacing()
Gets the lineSpacing attribute of the EditField object |
double |
getMaxX()
Gets the maxX attribute of the EditField object |
double |
getMaxY()
Gets the maxY attribute of the EditField object |
double |
getMinX()
Gets the minX attribute of the EditField object |
double |
getMinY()
Gets the minY attribute of the EditField object |
double |
getRightMargin()
Gets the rightMargin attribute of the EditField object |
AlphaColor |
getTextColor()
Gets the textColor attribute of the EditField object |
boolean |
hasBorder()
Description of the Method |
boolean |
hasWordWrap()
Description of the Method |
boolean |
isEditable()
Gets the editable attribute of the EditField object |
boolean |
isHtml()
Gets the html attribute of the EditField object |
boolean |
isMultiline()
Gets the multiline attribute of the EditField object |
boolean |
isPassword()
Gets the password attribute of the EditField object |
boolean |
isSelectable()
Gets the selectable attribute of the EditField object |
void |
setAlignment(int alignment)
Sets the alignment attribute of the EditField object |
void |
setCharLimit(int charLimit)
Sets the charLimit attribute of the EditField object |
void |
setFieldName(java.lang.String name)
Sets the fieldName attribute of the EditField object |
void |
setFont(Font font)
Sets the font attribute of the EditField object |
void |
setFontSize(double fontSize)
Sets the fontSize attribute of the EditField object |
void |
setIndentation(double indentation)
Sets the indentation attribute of the EditField object |
void |
setInitialText(java.lang.String text)
Sets the initialText attribute of the EditField object |
void |
setLeftMargin(double leftMargin)
Sets the leftMargin attribute of the EditField object |
void |
setLineSpacing(double lineSpacing)
Sets the lineSpacing attribute of the EditField object |
void |
setMaxX(double maxX)
Sets the maxX attribute of the EditField object |
void |
setMaxY(double maxY)
Sets the maxY attribute of the EditField object |
void |
setMinX(double minX)
Sets the minX attribute of the EditField object |
void |
setMinY(double minY)
Sets the minY attribute of the EditField object |
void |
setProperties(boolean isSelectable,
boolean hasBorder,
boolean isHtml,
boolean usesSystemFont,
boolean hasWordWrap,
boolean isMultiline,
boolean isPassword,
boolean isEditable)
Sets the properties attribute of the EditField object |
void |
setRightMargin(double rightMargin)
Sets the rightMargin attribute of the EditField object |
void |
setTextColor(AlphaColor color)
Sets the textColor attribute of the EditField object |
boolean |
usesSystemFont()
Description of the Method |
Methods inherited from class pt.tumba.parser.swf.Symbol |
---|
define, getId, getNextId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AlphaColor textColor
protected int alignment
protected int charLimit
protected double leftMargin
protected double rightMargin
protected double indentation
protected double lineSpacing
protected java.lang.String fieldName
protected java.lang.String initialText
protected Font font
protected double fontSize
protected double minX
protected double minY
protected double maxX
protected double maxY
protected boolean isSelectable
protected boolean hasBorder
protected boolean isHtml
protected boolean usesSystemFont
protected boolean hasWordWrap
protected boolean isMultiline
protected boolean isPassword
protected boolean isEditable
Constructor Detail |
---|
public EditField(java.lang.String fieldName, java.lang.String initialText, Font font, double fontSize, double minX, double minY, double maxX, double maxY)
fieldName
- may be nullinitialText
- Description of the Parameterfont
- Description of the ParameterfontSize
- Description of the ParameterminX
- Description of the ParameterminY
- Description of the ParametermaxX
- Description of the ParametermaxY
- Description of the ParameterMethod Detail |
---|
public boolean isSelectable()
public boolean hasBorder()
public boolean isHtml()
public boolean usesSystemFont()
public boolean hasWordWrap()
public boolean isMultiline()
public boolean isPassword()
public boolean isEditable()
public void setProperties(boolean isSelectable, boolean hasBorder, boolean isHtml, boolean usesSystemFont, boolean hasWordWrap, boolean isMultiline, boolean isPassword, boolean isEditable)
isSelectable
- The new properties valuehasBorder
- The new properties valueisHtml
- The new properties valueusesSystemFont
- The new properties valuehasWordWrap
- The new properties valueisMultiline
- The new properties valueisPassword
- The new properties valueisEditable
- The new properties valuepublic AlphaColor getTextColor()
public int getAlignment()
public int getCharLimit()
public double getLeftMargin()
public double getRightMargin()
public double getIndentation()
public double getLineSpacing()
public java.lang.String getFieldName()
public java.lang.String getInitialText()
public Font getFont()
public double getFontSize()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public void setTextColor(AlphaColor color)
color
- The new textColor valuepublic void setAlignment(int alignment)
alignment
- The new alignment valuepublic void setCharLimit(int charLimit)
charLimit
- The new charLimit valuepublic void setLeftMargin(double leftMargin)
leftMargin
- The new leftMargin valuepublic void setRightMargin(double rightMargin)
rightMargin
- The new rightMargin valuepublic void setIndentation(double indentation)
indentation
- The new indentation valuepublic void setLineSpacing(double lineSpacing)
lineSpacing
- The new lineSpacing valuepublic void setFieldName(java.lang.String name)
name
- The new fieldName valuepublic void setInitialText(java.lang.String text)
text
- The new initialText valuepublic void setFont(Font font)
font
- The new font valuepublic void setFontSize(double fontSize)
fontSize
- The new fontSize valuepublic void setMinX(double minX)
minX
- The new minX valuepublic void setMinY(double minY)
minY
- The new minY valuepublic void setMaxX(double maxX)
maxX
- The new maxX valuepublic void setMaxY(double maxY)
maxY
- The new maxY valueprotected int defineSymbol(Movie movie, SWFTagTypes timelineWriter, SWFTagTypes definitionWriter) throws java.io.IOException
defineSymbol
in class Symbol
movie
- Description of the ParametertimelineWriter
- Description of the ParameterdefinitionWriter
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |