Class sgraphics.widget.CheckboxGlyph
All Packages Class Hierarchy This Package Previous Next Index
Class sgraphics.widget.CheckboxGlyph
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Checkbox
|
+----sgraphics.widget.CheckboxGlyph
- public class CheckboxGlyph
- extends Checkbox
- implements Viewer, Widget, Glyph
A class that allows an awt checkbox to be used as a glyph.
-
CheckboxGlyph()
- Constructs a Checkbox with no label, no Checkbox group, and initialized
to a false state.
-
CheckboxGlyph(String)
- Constructs a Checkbox with the specified label, no Checkbox group, and
initialized to a false state.
-
CheckboxGlyph(String, CheckboxGroup, boolean)
- Constructs a Checkbox with the specified label, specified Checkbox
group, and specified boolean state.
-
allocate(Allocation)
-
-
append(Glyph)
-
-
body()
-
-
count()
-
-
disconnected()
-
-
draw(Painter)
-
-
empty()
-
-
getChild(int)
-
-
getParentGlyph()
-
-
getSgraphicsAdapter()
-
-
grab(Viewer)
-
-
handleEvent(GraphicsEvent)
-
-
needRedraw()
-
-
needRedraw(Area)
-
-
needResize()
-
-
pick(Picker)
-
-
prepend(Glyph)
-
-
processPick(Picker, GraphicsEvent)
-
-
removeCallback()
-
-
replace(int, Glyph)
-
-
requirements()
-
-
setBody(Glyph)
-
-
setCallback(ViewerCallback)
-
-
setParent(Glyph)
-
-
swap(int, int)
-
-
ungrab()
-
CheckboxGlyph
public CheckboxGlyph()
- Constructs a Checkbox with no label, no Checkbox group, and initialized
to a false state.
CheckboxGlyph
public CheckboxGlyph(String label)
- Constructs a Checkbox with the specified label, no Checkbox group, and
initialized to a false state.
- Parameters:
- label - the label on the Checkbox
CheckboxGlyph
public CheckboxGlyph(String label,
CheckboxGroup group,
boolean state)
- Constructs a Checkbox with the specified label, specified Checkbox
group, and specified boolean state. If the specified CheckboxGroup
is not equal to null, then this Checkbox becomes a Checkbox button.
If the Checkbox becomes a button, this simply means that only
one Checkbox in a CheckboxGroup may be set at a time.
- Parameters:
- label - the label on the Checkbox
- group - the CheckboxGroup this Checkbox is in
- state - is the initial state of this Checkbox
disconnected
public void disconnected()
requirements
public Requirements requirements()
allocate
public void allocate(Allocation allocation)
setParent
public void setParent(Glyph parent)
getParentGlyph
public Glyph getParentGlyph()
setCallback
public void setCallback(ViewerCallback callback)
removeCallback
public void removeCallback()
pick
public void pick(Picker pick)
processPick
public boolean processPick(Picker pick,
GraphicsEvent event)
handleEvent
public boolean handleEvent(GraphicsEvent event)
body
public Glyph body()
setBody
public void setBody(Glyph body)
append
public void append(Glyph glyph)
prepend
public void prepend(Glyph glyph)
replace
public void replace(int position,
Glyph glyph)
swap
public void swap(int position1,
int position2)
getChild
public Glyph getChild(int pos)
empty
public void empty()
count
public int count()
grab
public void grab(Viewer target)
ungrab
public void ungrab()
needRedraw
public void needRedraw()
needRedraw
public void needRedraw(Area area)
needResize
public void needResize()
draw
public void draw(Painter painter)
getSgraphicsAdapter
public SgraphicsAdapter getSgraphicsAdapter()
All Packages Class Hierarchy This Package Previous Next Index