|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.view.Widget
ks.common.view.StringView
A Widget for displaying a string.
Constructor Summary | |
StringView(MutableString value)
Construct view of this String model. |
|
StringView(java.lang.String value)
Construct view of this String. |
Method Summary | |
java.awt.Color |
getColor()
Get the color used within this StringView |
java.awt.Font |
getFont()
Get the font used within this StringView |
int |
getFontSize()
Return size of font being used. |
void |
redraw()
Create image if we must. |
void |
setColor(java.awt.Color newColor)
Set the color for use within this StringView. |
void |
setFont(java.awt.Font newFont)
Set the font for use within this StringView; also updates fontSize |
void |
setFontSize(int newFontSize)
Set the size of the font to be used within this StringView. |
Methods inherited from class ks.common.view.Widget |
getBounds, getCardImages, getContainer, getHeight, getImage, getModelElement, getMouseManager, getName, getWidth, getX, getXY, getY, inBounds, isDirty, modelChanged, paint, paint, paint, refresh, refresh, returnWidget, setBounds, setBounds, setContainer, setDirty, setHeight, setImage, setMouseAdapter, setMouseManager, setMouseMotionAdapter, setName, setUndoAdapter, setWidth, setX, setXY, setY, toString, translate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringView(MutableString value)
public StringView(java.lang.String value)
Method Detail |
public java.awt.Color getColor()
public java.awt.Font getFont()
public int getFontSize()
public void redraw()
redraw
in class Widget
public void setColor(java.awt.Color newColor)
newColor
- java.awt.Colorpublic void setFont(java.awt.Font newFont)
newFont
- java.awt.Fontpublic void setFontSize(int newFontSize)
newFontSize
- int
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |