|
|||||||||||
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.IntegerView
A Widget for displaying an integer (such as score or number of cards left).
Constructor Summary | |
IntegerView(MutableInteger value)
Construct view of this Integer model. |
Method Summary | |
java.awt.Color |
getColor()
Get the color used within this IntegerView |
java.awt.Font |
getFont()
Get the font used within this IntegerView |
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 IntegerView. |
void |
setFont(java.awt.Font newFont)
Set the font for use within this IntegerView; also updates fontSize |
void |
setFontSize(int newFontSize)
Set the size of the font to be used within this IntegerView. |
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 IntegerView(MutableInteger 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 |