|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object android.TICO.textArea
public class textArea
Defines a textArea
and its attributes.
Constructor Summary | |
---|---|
textArea(int marginLeft,
int marginTop,
int width,
int height,
int frameSize,
String id,
Context context)
Creates a new textArea . |
Method Summary | |
---|---|
void |
addTo(RelativeLayout lay)
Add the textArea to a RelativeLayout |
void |
alignText(int ha,
int va)
Set the alignment of the text inside the text Area |
String |
getId()
Return the identifier of this textArea. |
void |
sendText(String newtext,
int time)
Change temporally the text shown in the text area. |
void |
setBackgroundColor(int backgroundColor,
int gradient)
Set the background color and the gradient |
void |
setBorderWidth(int frameSize)
Set the border line with of the textArea |
void |
setFrameColor(int frameColor)
Set the frame color of the text area |
void |
setText(String text)
Set the text of the text area |
void |
setTextColor(int textColor)
Set the color of the text |
void |
setTextSize(float textSize)
Set the text size of the textArea. |
void |
setTypeface(Typeface typeface,
int textStyle)
Set the font and style of the text |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public textArea(int marginLeft, int marginTop, int width, int height, int frameSize, String id, Context context)
textArea
.
marginLeft
- The number marginLeft
of pixels of the left marginmarginTop
- The number marginTop
of pixels of the top marginheight
- The width
in pixels of the textArea
width
- The height
in pixels of the textArea
frameSize
- The size
of the frame in pixels of the textArea
id
- The id
identificator of the textArea
context
- The context
that contains the textArea
Method Detail |
---|
public void setTextSize(float textSize)
textSize
- The desired size
of the text in the cellpublic void setTextColor(int textColor)
color
- The integer that defines the desired color for the textpublic void setText(String text)
text
- public void setTypeface(Typeface typeface, int textStyle)
typeface
- The font
of the texttextStyle
- int
whith the text stylepublic void alignText(int ha, int va)
ha
- the horizontal alignment. 0
center, 2
left, 4
right. Otherwise center.va
- the vertical alignment. 0
center, 1
top, 3
bottom. Otherwise center.public void setFrameColor(int frameColor)
color
- The color
of the text area framepublic void setBorderWidth(int frameSize)
frameSize
- border with in pixelspublic void setBackgroundColor(int backgroundColor, int gradient)
backgroundColor
- The color
of the backgroundgradient
- The gradient color
of the backgroundpublic void addTo(RelativeLayout lay)
lay
- Relative layout that will contain the textAreapublic void sendText(String newtext, int time)
newtext
- the new text to show.time
- Time to restore the original text of the text area.public String getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |