frysk.gui.monitor.eventviewer
Class EventViewerWidget

java.lang.Object
  extended by frysk.gui.monitor.GuiObject
      extended by frysk.gui.monitor.eventviewer.EventViewerWidget
All Implemented Interfaces:
SaveableXXX
Direct Known Subclasses:
EventViewerWidgetList

public abstract class EventViewerWidget
extends GuiObject

An EventViewerWidget is a widget within the EventViewer. This Glyph design pattern will make complex manipulations of EventViewer and its children simpler.


Field Summary
private  int height
           
private  int width
           
private  int x
           
private  int y
           
 
Fields inherited from class frysk.gui.monitor.GuiObject
propertiesChanged
 
Constructor Summary
EventViewerWidget(String name, String tooltip)
           
 
Method Summary
abstract  void draw(org.gnu.gdk.GdkCairo cairo)
           
 int getHeight()
           
 int getWidth()
           
 boolean isInside(int x, int y)
          Return wether the given points are inside the widget.
 void setSize(int x, int y, int w, int h)
           
 
Methods inherited from class frysk.gui.monitor.GuiObject
dontSaveObject, doSaveObject, getCopy, getName, getSummary, getToolTip, load, save, setName, setSummay, setToolTip, shouldSaveObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

private int x

y

private int y

height

private int height

width

private int width
Constructor Detail

EventViewerWidget

EventViewerWidget(String name,
                  String tooltip)
Method Detail

draw

public abstract void draw(org.gnu.gdk.GdkCairo cairo)

setSize

public void setSize(int x,
                    int y,
                    int w,
                    int h)

getHeight

public int getHeight()

getWidth

public int getWidth()

isInside

public boolean isInside(int x,
                        int y)
Return wether the given points are inside the widget. useful for mouse event ownership.