|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.models.FontList
public class FontList
This class provides a list of font objects that are available on the system.
| Field Summary | |
|---|---|
protected java.lang.String |
NODENAME
|
| Fields inherited from class com.sas.collection.OrderedCollection |
|---|
RB_KEY |
| Fields inherited from class com.sas.collection.BaseCollection |
|---|
allContentsChangedListeners, mappingObject |
| Constructor Summary | |
|---|---|
FontList()
The default constructor that fills list with the default fontnames. |
|
| Method Summary | |
|---|---|
void |
add(Font f)
Add a com.sas.awt.Font object into this list only if the name is not in the list. |
void |
add(java.lang.Object f,
int index)
Overridden to call convertObject(Object) first on the item to add to the ColorList. |
void |
addItems(java.util.Enumeration items,
int index)
Overridden to call convertObject(Object) first on all items in the Enumeration. |
void |
append(int index,
java.lang.Object item)
Overridden to call convertObject(Object) first on the item to append to the ColorList. |
java.lang.Object |
clone()
Create a copy of the current model |
protected java.lang.Object |
convertObject(java.lang.Object f)
Convert the specified object to a valid object to add to the FontList. |
int |
countNodeChildren(int maximumChildCount)
Counts the children of the current node. countNodeChildren differs from getNodeChildCount when the number of children is not readily known. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
Font |
getFont(java.lang.String fontName)
Return the Font corresponding to the name provided. |
Font |
getFont(java.lang.String fontName,
int style,
int size)
Return the Font corresponding to the name, style and size provided. |
java.util.Enumeration |
getFonts()
Returns an enumeration of java.awt.Font objects. |
SimpleNodeInterface |
getNodeChild(int index)
Returns the child node at the specified index. |
int |
getNodeChildCount()
Returns the number of children available. |
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()
Returns the value of the nodeText property. |
java.lang.String |
getNodeType()
Returns the value of the nodeType property. |
NodeInterface |
getRoot()
Gets the root for the tree implementation of the list |
boolean |
isLeafNode()
Indicates whether the current node is a leaf. |
void |
set(int index,
java.lang.Object item)
Overridden to call convertObject(Object) first on the item to set on the ColorList. |
| Methods inherited from class com.sas.collection.OrderedCollection |
|---|
add, addItems, apply, clone, computeNewCapacity, contains, count, dumpComponent, equals, equals, get, getIndex, getItems, getItems, getLastIndex, moveHole, moveHoleEnsureCapacity, remove, removeAll, removeAll, removeAt, setSize, sort, sort, sort, sort, toArray, toArray, toString |
| Methods inherited from class com.sas.collection.BaseCollection |
|---|
addContentsChangedListener, anyContentsChangedListeners, disableEvents, enableEvents, enableEvents, fireContentsChanged, map, removeContentsChangedListener, unmap |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Methods inherited from interface com.sas.beans.PropertyChangeSource |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected java.lang.String NODENAME
| Constructor Detail |
|---|
public FontList()
| Method Detail |
|---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface CollectionInterfaceclone in interface OrderedCollectionInterfaceclone in interface StaticCollectionInterfaceclone in interface StaticOrderedCollectionInterfaceclone in interface com.sas.PublicClonableclone in class OrderedCollectionjava.lang.CloneNotSupportedException - if the clone fails.public NodeInterface getRoot()
getRoot in interface TreeInterfaceprotected java.lang.Object convertObject(java.lang.Object f)
f - the object to convert to a com.sas.awt.Font
public void add(java.lang.Object f,
int index)
add in interface OrderedCollectionInterfaceadd in class OrderedCollectionf - the item to add to this collection.
The item may exist multiple times in this collection.index - insert the object before the indexed item. The
newly inserted item can be accessed by get(index) afterwards.convertObject(java.lang.Object)public void add(Font f)
com.sas.awt.Font - object to be added.
public void addItems(java.util.Enumeration items,
int index)
addItems in interface OrderedCollectionInterfaceaddItems in class OrderedCollectionitems - an Enumeration of items to add to this collectionindex - insert the objects starting before the indexed item. The
first of the newly inserted item can be accessed by get(index)
afterwards.convertObject(java.lang.Object)
public void set(int index,
java.lang.Object item)
set in interface OrderedCollectionInterfaceset in interface IndexedSetInterfaceset in class OrderedCollectionindex - The position where the Object will be placed.item - The Object to be added to this ordered collection.convertObject(java.lang.Object)
public void append(int index,
java.lang.Object item)
append in class OrderedCollectionindex - The position where the object will be placed.
If necessary, this collection is extended to
accommodate the item.item - the object to be added to this ordered collection.convertObject(java.lang.Object)public Font getFont(java.lang.String fontName)
fontName - a String corresponding to the font
public java.util.Enumeration getFonts()
public Font getFont(java.lang.String fontName,
int style,
int size)
fontName - a String corresponding to the fontstyle - style of the font - plain, bold or italicsize - point size of the font
public java.lang.String getNodeExpandedText()
getNodeExpandedText in interface NodeInterfacepublic java.lang.String getNodeText()
getNodeText in interface NodeInterfacepublic java.lang.String getNodeType()
getNodeType in interface NodeInterfacepublic int countNodeChildren(int maximumChildCount)
countNodeChildren in interface SimpleNodeInterfacemaximumChildCount - the maximum number of children to read, or 0 to read indefinitely
public int getNodeChildCount()
getNodeChildCount in interface SimpleNodeInterfacepublic boolean isLeafNode()
isLeafNode in interface SimpleNodeInterfacepublic SimpleNodeInterface getNodeChild(int index)
getNodeChild in interface SimpleNodeInterfaceindex - the 0-based index of the child node to retrieve
true.
public SimpleNodeInterface[] getNodeChildren(int startIndex,
int count)
getNodeChildren in interface SimpleNodeInterfacestartIndex - 0-based index which identifies the start of the rangecount - the amount of children to get
true.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||