public abstract class TextComponentBase extends RenderableComponentBase
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TextComponentBase.HorizontalAlignment | 
| static class  | TextComponentBase.VerticalAlignment | 
ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description | 
|---|---|
| static java.awt.Font | defaultFont | 
| static java.lang.String | defaultFontName | 
| static int | defaultFontSize | 
| static TextComponentBase.HorizontalAlignment | defaultHAlignment | 
| static double | defaultTextSize | 
| static TextComponentBase.VerticalAlignment | defaultVAlignment | 
| static PropertyList | myProps | 
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description | 
|---|
| TextComponentBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| static RenderProps | createDefaultRenderProps() | 
| RenderProps | createRenderProps()Factory method to create render properties appropriate to this object. | 
| PropertyList | getAllPropertyInfo()Returns a list giving static information about all properties exported by
 this object. | 
| java.awt.Font | getFont() | 
| double | getFontSize()Gets the size of the font | 
| TextComponentBase.HorizontalAlignment | getHorizontalAlignment()Gets the horizontal alignment | 
| double | getTextSize()Gets the size of the text | 
| TextComponentBase.VerticalAlignment | getVerticalAlignment()Gets the vertical alignment | 
| boolean | isSelectable()Returns true if this object is in fact selectable. | 
| int | numSelectionQueriesNeeded()If this selectable manages its own selection (by issuing selection
 queries within its  rendermethod), then this method should
 return the maximum number of selection queries that will be
 required. | 
| void | setFont(java.awt.Font font)Explicitly set the font for this text component | 
| void | setFontSize(double size)Sets the size of the font | 
| void | setHorizontalAlignment(TextComponentBase.HorizontalAlignment hAlignment)Sets the horizontal alignment, one of  LEFT, CENTRE, RIGHT | 
| void | setTextColor(java.awt.Color c) | 
| void | setTextSize(double size)Sets the size of the text | 
| void | setVerticalAlignment(TextComponentBase.VerticalAlignment vAlignment)Sets the vertical alignment, one of  TOP, CENTRE, BOTTOM | 
copy, getRenderHints, getRenderProps, getSelection, prerender, render, setRenderProps, updateBounds, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferencesgetPropertygetChildren, hasChildrenisWritable, writepublic static int defaultFontSize
public static double defaultTextSize
public static java.lang.String defaultFontName
public static java.awt.Font defaultFont
public static TextComponentBase.HorizontalAlignment defaultHAlignment
public static TextComponentBase.VerticalAlignment defaultVAlignment
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic static RenderProps createDefaultRenderProps()
public RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropscreateRenderProps in class RenderableComponentBasepublic java.awt.Font getFont()
public void setFont(java.awt.Font font)
font - the base font.  The font size affects the
 resolution of the displayed text.  It should be at least 32pt.public void setFontSize(double size)
public double getFontSize()
public void setTextSize(double size)
public double getTextSize()
public TextComponentBase.HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(TextComponentBase.HorizontalAlignment hAlignment)
LEFT, CENTRE, RIGHTpublic TextComponentBase.VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(TextComponentBase.VerticalAlignment vAlignment)
TOP, CENTRE, BOTTOMpublic boolean isSelectable()
RenderableComponentBaseisSelectable in interface IsSelectableisSelectable in class RenderableComponentBasepublic int numSelectionQueriesNeeded()
IsSelectablerender method), then this method should
 return the maximum number of selection queries that will be
 required. Otherwise, this method should return -1.numSelectionQueriesNeeded in interface IsSelectablenumSelectionQueriesNeeded in class RenderableComponentBasepublic void setTextColor(java.awt.Color c)