|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.awt.Font
public class Font
A class representing Font.
| Constructor Summary | |
|---|---|
Font()
Default constructor for design time |
|
Font(java.lang.String text)
A constructor that takes a name of the font, style and size separated by comma and creates a font object. |
|
Font(java.lang.String text,
int style,
int size)
A constructor that takes a name, style and size of the font and creates a font object. |
|
| Method Summary | |
|---|---|
void |
_setName(java.lang.String text)
Sets the name of this font object to the specified name |
void |
_setSize(int sz)
Sets the point size attribute of this font. |
void |
_setStyle(int si)
Sets the Style to PLAIN-0, BOLD-1, ITALIC-2 or BOLDITALIC-3. |
java.lang.Object |
clone()
Return a clone of the object. |
int |
countNodeChildren(int maximumChildCount)
always returns zero |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
com.sas.models.SimpleNodeInterface |
getNodeChild(int index)
Returns the child node at the specified index. |
int |
getNodeChildCount()
Returns the number of children available. |
com.sas.models.SimpleNodeInterface[] |
getNodeChildren(int startIndex,
int count)
Returns the specified range of children for the current node. |
java.lang.String |
getNodeExpandedText()
Returns the value of the nodeExpandedText property. |
java.lang.String |
getNodeText()
Get the name of this Font object |
java.lang.String |
getNodeType()
Returns the value of the nodeType property. |
java.lang.String |
getText()
Gets the name of the font. |
boolean |
isLeafNode()
Indicates whether the current node is a leaf. |
static Font |
newFont(java.awt.Font javaFont)
|
void |
setText(java.lang.String text)
Sets the font of this object to the specified name |
java.lang.String |
toString()
Gets the string representation (name, style, size) of this font object. |
| Constructor Detail |
|---|
public Font()
public Font(java.lang.String text)
a - string containing name, size and style.
public Font(java.lang.String text,
int style,
int size)
name - of the fontstyle - of the font PLAIN-0, BOLD-1, ITALIC-2, BOLDITALIC-3size - point size of the font.| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
FontComponent
clone in interface com.sas.PublicClonableclone in class FontComponentjava.lang.CloneNotSupportedException - if the model attached to the component being cloned
will not allow the clone to attach.public static Font newFont(java.awt.Font javaFont)
public java.lang.String getText()
getText in interface com.sas.lang.StringDataInterfacepublic void setText(java.lang.String text)
setText in interface com.sas.lang.StringDataInterfacename - of the font.public void _setName(java.lang.String text)
name - of the font.public void _setStyle(int si)
integer - representing the style of fontpublic void _setSize(int sz)
point - size of this fontpublic java.lang.String toString()
toString in class java.awt.Fontpublic java.lang.String getNodeExpandedText()
getNodeExpandedText in interface com.sas.models.NodeInterfacepublic java.lang.String getNodeText()
getNodeText in interface com.sas.models.NodeInterfacepublic java.lang.String getNodeType()
getNodeType in interface com.sas.models.NodeInterfacepublic int countNodeChildren(int maximumChildCount)
countNodeChildren in interface com.sas.models.SimpleNodeInterfacemaximumChildCount - the maximum number of children to read,
or 0 to read indefinitely
SimpleNodeInterfacepublic int getNodeChildCount()
getNodeChildCount in interface com.sas.models.SimpleNodeInterfacepublic boolean isLeafNode()
isLeafNode in interface com.sas.models.SimpleNodeInterfacepublic com.sas.models.SimpleNodeInterface getNodeChild(int index)
getNodeChild in interface com.sas.models.SimpleNodeInterfaceindex - the 0-based index of the child node to retrieve
public com.sas.models.SimpleNodeInterface[] getNodeChildren(int startIndex,
int count)
getNodeChildren in interface com.sas.models.SimpleNodeInterfacestartIndex - 0-based index which identifies the start of the rangecount - the amount of children to get
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||