|
||||||||||
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 | +--javax.swing.JComponent | +--javax.swing.JPanel | +--au.edu.swin.synergy.plugin.diagram.BDrawablePalette
class BDrawablePalette - provides a tool palette containing BDrawables, that the user can select from..
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
protected ButtonGroup |
buttonGroup
a button group, so only 1 button is selected at a time.. |
protected JPanel |
buttonPanel
the panel containing all the buttons * |
protected Vector |
buttons
Vector holding all the buttons displayed on the panel. |
protected JScrollPane |
buttonScroll
a scroll pane for the panel containing all the buttons * |
protected BDrawableButton |
curSel
The currently selected button * |
protected Vector |
drawables
Vector containing all of the drawables on the buttons. |
protected FlowLayout |
flowLayout
the flow layout of the panel * |
protected static int |
kDefaultHGap
the default size of the horizontal gap between the buttons on the panel * |
protected static int |
kDefaultVGap
the default size of the vertical gap between the buttons on the panel * |
protected ImageIcon |
pointer
|
protected JToggleButton |
pointerButton
the pointer button |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
BDrawablePalette()
Please complete the missing tags for BGroupPalette |
|
BDrawablePalette(int hGap,
int vGap)
Please complete the missing tags for BGroupPalette |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Handler for the pressing of buttons. |
void |
cleanup()
Removes any unused buttons from the button vector. |
BDrawable |
getSelectedDrawable()
Gets the currently selected BDrawable Please complete the missing tags for getSelectedDrawable |
void |
resetCurSel()
|
void |
reshape(int x,
int y,
int w,
int h)
Please complete the missing tags for reshape |
void |
setDisabled(boolean b)
|
void |
setDrawables(Vector drawables)
Sets the shapes of the buttons in the tool palette to a corresponding shape from a shape vector. |
void |
setHGap(int hGap)
Sets the horizontal gap between the buttons. |
void |
setVGap(int vGap)
Sets the vertical gap between the buttons. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final int kDefaultHGap
protected static final int kDefaultVGap
protected JPanel buttonPanel
protected FlowLayout flowLayout
protected JScrollPane buttonScroll
protected ButtonGroup buttonGroup
protected Vector buttons
protected Vector drawables
protected BDrawableButton curSel
protected JToggleButton pointerButton
protected ImageIcon pointer
Constructor Detail |
public BDrawablePalette(int hGap, int vGap)
- public BDrawablePalette()
- Method Detail |
public BDrawable getSelectedDrawable()
- public void resetCurSel()
public void setDisabled(boolean b)
public void setDrawables(Vector drawables)
Vector
- drawables - a vector containing the BDrawable to set the buttons to.
Please complete the missing tags for setGroupspublic void setHGap(int hGap)
- public void setVGap(int vGap)
- public void reshape(int x, int y, int w, int h)
- public void actionPerformed(ActionEvent e)
- public void cleanup()
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |