|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--adavid.awt.BorderedPanel
Bordered Panel a panel bordered with a text and a line
Field Summary | |
static int |
DEFAULT_THICKNESS
default values |
static int |
INC
default values |
static int |
MIDDLE
default values |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
BorderedPanel(java.awt.Graphics g)
default constructor: all default |
|
BorderedPanel(java.awt.Graphics g,
java.lang.String title)
default constructor: default color and thickness |
|
BorderedPanel(java.awt.Graphics g,
java.lang.String title,
java.awt.Color color)
default constructor: default thickness |
|
BorderedPanel(java.awt.Graphics g,
java.lang.String title,
int thickness)
default constructor: default color |
|
BorderedPanel(java.awt.Graphics g,
java.lang.String title,
int thickness,
java.awt.Color color)
the constructor: the Graphics is used for the label, title to display, thickness and color of the border |
Method Summary | |
void |
addComponent(java.awt.Component compo)
add a component |
void |
addComponent(java.awt.Component compo,
int width,
int height)
add a component |
NiceCheckbox |
addNiceCheckbox(java.awt.Graphics g,
java.lang.String name)
create and add a NiceCheckbox |
NiceCheckbox |
addNiceCheckbox(java.awt.Graphics g,
java.lang.String name,
java.awt.CheckboxGroup group,
java.awt.event.ItemListener listener)
a method just for convenience: same as before but may initialize a check box group and an item listener.. |
void |
breakColumn()
break the column |
NiceLabel |
getLabel()
returns the used label |
int |
getOffset()
offset from border |
static BorderedPanel |
getPanel(java.awt.Graphics g,
java.awt.Color color,
java.lang.String title,
java.awt.Component[] list)
get a simple panel with the given checkboxes, may have more configuration options in the future |
java.awt.Dimension |
getPreferredSize()
preferred size |
void |
paint(java.awt.Graphics g)
paint |
int |
prefHeight()
preferred Height |
int |
prefWidth()
preferred Width |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int DEFAULT_THICKNESS
public static final int INC
public static final int MIDDLE
Constructor Detail |
public BorderedPanel(java.awt.Graphics g, java.lang.String title)
public BorderedPanel(java.awt.Graphics g)
public BorderedPanel(java.awt.Graphics g, java.lang.String title, java.awt.Color color)
public BorderedPanel(java.awt.Graphics g, java.lang.String title, int thickness)
public BorderedPanel(java.awt.Graphics g, java.lang.String title, int thickness, java.awt.Color color)
Method Detail |
public NiceLabel getLabel()
public void paint(java.awt.Graphics g)
public void addComponent(java.awt.Component compo)
public void addComponent(java.awt.Component compo, int width, int height)
public NiceCheckbox addNiceCheckbox(java.awt.Graphics g, java.lang.String name)
public NiceCheckbox addNiceCheckbox(java.awt.Graphics g, java.lang.String name, java.awt.CheckboxGroup group, java.awt.event.ItemListener listener)
public void breakColumn()
public java.awt.Dimension getPreferredSize()
public int prefWidth()
public int prefHeight()
public int getOffset()
public static BorderedPanel getPanel(java.awt.Graphics g, java.awt.Color color, java.lang.String title, java.awt.Component[] list)
g
- a valid graphics objectcolor
- the color of the bordertitle
- the title of the panellist
- the list of components to put in
the panel
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |