oracle.cabo.style.util
Class MutableFontProxy
java.lang.Object
|
+--oracle.cabo.style.util.FontProxy
|
+--oracle.cabo.style.util.MutableFontProxy
- public class MutableFontProxy
- extends FontProxy
MutableFontProxy is a FontProxy subclass which allows FontProxy values
to be modified. This class is provided to allow clients (such as the
UIX Components Renderers) to reuse a single FontProxy object to
represent different fonts over a short period of time. Most clients
should use the immutable FontProxy class.
- See Also:
FontProxy
Constructor Summary |
MutableFontProxy(java.lang.String name,
int style,
int size)
Creates a MutableFontProxy. |
Method Summary |
void |
setName(java.lang.String name)
Sets the name of the font. |
void |
setSize(int size)
Sets the size of the font |
void |
setStyle(int style)
Sets the style of the font, using AWT Font style flags. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MutableFontProxy
public MutableFontProxy(java.lang.String name,
int style,
int size)
- Creates a MutableFontProxy.
- Parameters:
name
- The logical name of the fontstyle
- The font style, using the java.awt.Font bitmask constants.size
- he point size of the font
setName
public void setName(java.lang.String name)
- Sets the name of the font.
setSize
public void setSize(int size)
- Sets the size of the font
setStyle
public void setStyle(int style)
- Sets the style of the font, using AWT Font style flags.