| com.xoetrope.awt.XGraphicButton
XGraphicButton | public class XGraphicButton extends XLabel (Code) | | A graphical button that is drawn with rounded edges.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.3 $ not attributable
|
BOTTOM_LEFT_STYLE | final public static int BOTTOM_LEFT_STYLE(Code) | | Rounded corner on the bottom left corner
|
BOTTOM_RIGHT_STYLE | final public static int BOTTOM_RIGHT_STYLE(Code) | | Rounded corner on the bottom right corner
|
LINE_STYLE | final public static int LINE_STYLE(Code) | | Rounded edges, but no fill
|
SOLID_STYLE | final public static int SOLID_STYLE(Code) | | Rounded edges and filled
|
XGraphicButton | public XGraphicButton()(Code) | | |
XGraphicButton | public XGraphicButton(String title, int style)(Code) | | |
doLayout | public void doLayout()(Code) | | |
setAttribute | public void setAttribute(String attribName, String attribValue)(Code) | | Set the attributes of the button, see setDrawStyle
Parameters: attribName - the attribute name Parameters: attribValue - the attribute value |
setCentered | public void setCentered(boolean c)(Code) | | Center the text
Parameters: c - true to center the text |
setDrawArrow | public void setDrawArrow(boolean draw)(Code) | | Turn on drawing of the arrow
Parameters: draw - true to draw the arrow |
setDrawStyle | public void setDrawStyle(String style)(Code) | | Set the button style
Parameters: style - "0"=LINE_STYLE, "1"=SOLID_STYLE, "2"=BOTTOM_RIGHT_STYLE, "3"=BOTTOM_LEFT_STYLE |
setDrawStyle | public void setDrawStyle(int style)(Code) | | Set the button style
Parameters: style - LINE_STYLE, SOLID_STYLE, BOTTOM_RIGHT_STYLE, BOTTOM_LEFT_STYLE |
setTitle | public void setTitle(String title)(Code) | | Set the button caption
Parameters: title - the text to display |
|
|