Class sgraphics.TopViewer
All Packages Class Hierarchy This Package Previous Next Index
Class sgraphics.TopViewer
java.lang.Object
|
+----sgraphics.GlyphImpl
|
+----sgraphics.MonoGlyph
|
+----sgraphics.ViewerImpl
|
+----sgraphics.TopViewer
- public class TopViewer
- extends ViewerImpl
The TopViewer is topmost viewer in the viewer tree. Actually, a tree
does not exist, but when a picker chain is assembled by pick(...),
TopViewer is at the beginning of the list.
-
TopViewer(Glyph, SgraphicsAdapter)
- Construct a TopViewer.
-
getSgraphicsAdapter()
-
-
grab(Viewer)
- Grab all the events.
-
handleEvent(GraphicsEvent)
- Handle the events.
-
needRedraw()
- Redraws the whole glyph tree.
-
needRedraw(Area)
- Redraws all glyphs overlapping with the area.
-
needResize()
- Forces geometry calculation and redraws the whole glyph tree.
-
postEvent(GraphicsEvent)
- Post an AWT event into the viewer system for processing.
-
ungrab()
- Ungrab all the events.
TopViewer
public TopViewer(Glyph glyph,
SgraphicsAdapter adapter)
- Construct a TopViewer.
- Parameters:
- glyph - the top most glyph in the glyph tree that TopViewer
manages events for.
- adapter - the Adapter that TopViewer processes events for.
handleEvent
public boolean handleEvent(GraphicsEvent event)
- Handle the events. This does not do anything.
- Overrides:
- handleEvent in class ViewerImpl
postEvent
public boolean postEvent(GraphicsEvent event)
- Post an AWT event into the viewer system for processing.
- Parameters:
- event - the event to be processed by the viewer system.
- Returns:
- true if processed. Event grabbing does not
affect the return value.
grab
public void grab(Viewer target)
- Grab all the events. No other viewers will receive events untill ungrab
is called.
- Parameters:
- target - the glyph to deliver the events to.
- Overrides:
- grab in class GlyphImpl
ungrab
public void ungrab()
- Ungrab all the events.
- Overrides:
- ungrab in class GlyphImpl
needRedraw
public void needRedraw()
- Redraws the whole glyph tree.
- Overrides:
- needRedraw in class GlyphImpl
needRedraw
public void needRedraw(Area area)
- Redraws all glyphs overlapping with the area.
- Parameters:
- area - the area that needs redrawing.
- Overrides:
- needRedraw in class GlyphImpl
needResize
public void needResize()
- Forces geometry calculation and redraws the whole glyph tree.
- Overrides:
- needResize in class GlyphImpl
getSgraphicsAdapter
public SgraphicsAdapter getSgraphicsAdapter()
- Overrides:
- getSgraphicsAdapter in class GlyphImpl
All Packages Class Hierarchy This Package Previous Next Index