public class CCFFrame extends CCFNode implements IChildContainer, INamed
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
Modifier and Type | Method and Description |
---|---|
void |
addButton(CCFButton b)
Add child to this frame.
|
void |
addChild(CCFChild c)
Add child to this frame.
|
void |
addFrame(CCFFrame f)
Add child to this frame.
|
void |
convertToColor() |
void |
convertToGray() |
CCFButton |
createButton(java.lang.String name)
Create a button.
|
CCFFrame |
createFrame(java.lang.String name)
Create a frame.
|
void |
delete()
Deletes this child from it's parent.
|
CCFColor |
getBackground()
Get the frame background color.
|
CCFChild[] |
getChildren()
Gets the contents of this frame.
|
CCFChild |
getChildWrapper() |
CCFFont |
getFont()
Get the CCFFont for this Button.
|
CCFColor |
getForeground()
Get the frame foreground color.
|
CCFIcon |
getIcon()
Get the background icon associated with this frame.
|
java.awt.Point |
getLocation() |
java.lang.String |
getName()
Get the name of this frame.
|
java.awt.Dimension |
getSize()
Returns the size of this frame in pixels.
|
int |
getTextAlignment() |
boolean |
getTextWrap() |
boolean |
isResizable()
Returns true if this frame is resizable.
|
void |
setBackground(CCFColor color)
Set the frame background color.
|
void |
setChildren(CCFChild[] c)
Sets the contents of this frame.
|
void |
setFont(CCFFont font)
Set the CCFFont for this Button.
|
void |
setForeground(CCFColor color)
Set the frame foreground color.
|
void |
setIcon(CCFIcon icon)
Set the background icon associated with this frame.
|
void |
setLocation(java.awt.Point p) |
void |
setName(java.lang.String name)
Set the name of this frame.
|
void |
setParent(CCFNode p) |
void |
setSize(java.awt.Dimension size)
Sets the new size for this frame.
|
void |
setTextAlignment(int align) |
void |
setTextWrap(boolean w) |
java.lang.String |
toString() |
getHeader, getParent, getParentDevice, getParentPanel
public void setParent(CCFNode p)
public int getTextAlignment()
public void setTextAlignment(int align)
public boolean getTextWrap()
public void setTextWrap(boolean w)
public void convertToColor()
public void convertToGray()
public java.lang.String getName()
public void setName(java.lang.String name)
public CCFButton createButton(java.lang.String name)
public CCFFrame createFrame(java.lang.String name)
public CCFFont getFont()
public void setFont(CCFFont font)
font
- new button fontpublic CCFColor getBackground()
public void setBackground(CCFColor color)
color
- background colorpublic CCFColor getForeground()
public void setForeground(CCFColor color)
color
- foreground colorpublic CCFIcon getIcon()
public void setIcon(CCFIcon icon)
icon
- new background iconpublic CCFChild[] getChildren()
getChildren
in interface IChildContainer
public void setChildren(CCFChild[] c)
setChildren
in interface IChildContainer
c
- new contents of this framepublic void addChild(CCFChild c)
public void addButton(CCFButton b)
addButton
in interface IChildContainer
public void addFrame(CCFFrame f)
addFrame
in interface IChildContainer
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension size)
public CCFChild getChildWrapper()
public java.awt.Point getLocation()
public void setLocation(java.awt.Point p)
public boolean isResizable()
public void delete()