Class sgraphics.widget.ButtonGlyph
All Packages Class Hierarchy This Package Previous Next Index
Class sgraphics.widget.ButtonGlyph
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Button
|
+----sgraphics.widget.ButtonGlyph
- public class ButtonGlyph
- extends Button
- implements Viewer, Widget, Glyph
A class that allows an awt button to be used as a glyph.
-
ButtonGlyph()
- Constructs a Button with no label.
-
ButtonGlyph(String)
- Constructs a Button with a string label.
-
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()
-
ButtonGlyph
public ButtonGlyph()
- Constructs a Button with no label.
ButtonGlyph
public ButtonGlyph(String label)
- Constructs a Button with a string label.
- Parameters:
- label - the button label
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