CloneableRichStyle.@Deprecated public class TextForm extends Object implements Cloneable
TextForm object is used for creating a RichTextBuilder object.RichTextBuilder| 构造器 | 说明 |
|---|---|
TextForm() |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Object |
clone() |
已过时。
|
float |
getLineHeight() |
已过时。
|
float |
getRelativeTextSize() |
已过时。
|
float |
getScaleX() |
已过时。
|
boolean |
getStrikethrough() |
已过时。
|
boolean |
getSubscript() |
已过时。
|
boolean |
getSuperscript() |
已过时。
|
int |
getTextBackgroundColor() |
已过时。
|
int |
getTextColor() |
已过时。
|
Font |
getTextFont() |
已过时。
|
int |
getTextSize() |
已过时。
|
boolean |
getUnderline() |
已过时。
|
TextForm |
setLineHeight(float height) |
已过时。
|
TextForm |
setRelativeTextSize(float relativeTextSize) |
已过时。
|
TextForm |
setScaleX(float scaleX) |
已过时。
|
TextForm |
setStrikethrough(boolean strikethrough) |
已过时。
|
TextForm |
setSubscript(boolean subscript) |
已过时。
|
TextForm |
setSuperscript(boolean superscript) |
已过时。
|
TextForm |
setTextBackgroundColor(int color) |
已过时。
|
TextForm |
setTextColor(int color) |
已过时。
|
TextForm |
setTextFont(Font font) |
已过时。
|
TextForm |
setTextSize(int size) |
已过时。
|
TextForm |
setUnderline(boolean underline) |
已过时。
|
@Deprecated public TextForm()
TextForm instance.@Deprecated public TextForm setTextSize(int size)
size - Indicates the text size to set, in pixels. The value must be greater than 0.TextForm object with the specified text size.@Deprecated public int getTextSize()
setTextSize(int)@Deprecated public TextForm setTextColor(int color)
color - Indicates the text color to set, in ARGB format.TextForm object with the specified text color.@Deprecated public int getTextColor()
setTextColor(int)@Deprecated public TextForm setTextFont(Font font)
font - the text font to set.TextForm object with the specified text font.@Deprecated public Font getTextFont()
setTextFont(Font)@Deprecated public TextForm setScaleX(float scaleX)
scaleX - scaleX Indicates the horizontal scale ratio to set, which must be greater than 0.TextForm object.@Deprecated public float getScaleX()
setScaleX(float)@Deprecated public TextForm setStrikethrough(boolean strikethrough)
strikethrough - Specifies whether to add a strikethrough. The value true means to add a
strikethrough, and false (default value) means the opposite.TextForm object.@Deprecated public boolean getStrikethrough()
true if a strikethrough is added for this text; returns false otherwise.setStrikethrough(boolean)@Deprecated public TextForm setTextBackgroundColor(int color)
color - Indicates the background color to set. For example, the value Color.YELLOW.getValue() means
to set the background color to yellow.TextForm object.@Deprecated public int getTextBackgroundColor()
setTextBackgroundColor(int)@Deprecated public TextForm setLineHeight(float height)
height - Indicates the line height to set, in px.TextForm object.@Deprecated public float getLineHeight()
setLineHeight(float)@Deprecated public TextForm setUnderline(boolean underline)
underline - Specifies whether to add an underline. The value true means to add an underline, and
false (default value) means the opposite.TextForm object.@Deprecated public boolean getUnderline()
true if an underline is added for this text; returns false otherwise.setUnderline(boolean)@Deprecated public TextForm setRelativeTextSize(float relativeTextSize)
relativeTextSize - Indicates the relative size to set, which must be greater than 0.TextForm object.@Deprecated public float getRelativeTextSize()
setRelativeTextSize(float)@Deprecated public TextForm setSuperscript(boolean superscript)
superscript - Specifies whether to make this text a superscript. The value true means to make this
text a superscript, and false (default value) means the opposite.TextForm object.@Deprecated public boolean getSuperscript()
true if this text is a superscript; returns false otherwise.setSuperscript(boolean)@Deprecated public TextForm setSubscript(boolean subscript)
subscript - Specifies whether to make this text a subscript. The value true means to make this
text a subscript, and false (default value) means the opposite.TextForm object.@Deprecated public boolean getSubscript()
true if this text is a subscript; returns false otherwise.setSubscript(boolean)@Deprecated public Object clone() throws CloneNotSupportedException
x, the expression:
will be true, and that the expression:x.clone() != x
will bex.clone().getClass() == x.getClass()
true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x)
true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
super.clone. If a class and all of its superclasses (except
Object) obey this convention, it will be the case that
x.clone().getClass() == x.getClass().
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by super.clone before returning it. Typically, this means
copying any mutable objects that comprise the internal "deep structure"
of the object being cloned and replacing the references to these
objects with references to the copies. If a class contains only
primitive fields or references to immutable objects, then it is usually
the case that no fields in the object returned by super.clone
need to be modified.
The method clone for class Object performs a
specific cloning operation. First, if the class of this object does
not implement the interface Cloneable, then a
CloneNotSupportedException is thrown. Note that all arrays
are considered to implement the interface Cloneable and that
the return type of the clone method of an array type T[]
is T[] where T is any reference or primitive type.
Otherwise, this method creates a new instance of the class of this
object and initializes all its fields with exactly the contents of
the corresponding fields of this object, as if by assignment; the
contents of the fields are not themselves cloned. Thus, this method
performs a "shallow copy" of this object, not a "deep copy" operation.
The class Object does not itself implement the interface
Cloneable, so calling the clone method on an object
whose class is Object will result in throwing an
exception at run time.
clone 在类中 ObjectCloneNotSupportedException - if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.Cloneable