Package gnu.kawa.models
Class Display
- java.lang.Object
-
- gnu.kawa.models.Display
-
- Direct Known Subclasses:
SwingDisplay,SwtDisplay
public abstract class Display extends Object
An abstract "display device". In the AWT/Swing world, this may bundle a GraphicsConfiguration and a Toolkit. In the web servlet world, this may correspond to a browser on on the other end of an http connection.
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocationmyDisplay
-
Constructor Summary
Constructors Constructor Description Display()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddBox(Box model, Object where)abstract voidaddButton(Button model, Object where)abstract voidaddImage(DrawImage model, Object where)abstract voidaddLabel(Label model, Object where)voidaddSpacer(Spacer model, Object where)voidaddText(Text model, Object where)abstract voidaddView(Object view, Object where)static DimensionasDimension(Dimension2D dim)ModelcoerceToModel(Object component)static DisplaygetInstance()abstract WindowmakeWindow()
-
-
-
Field Detail
-
myDisplay
public static ThreadLocation myDisplay
-
-
Method Detail
-
getInstance
public static Display getInstance()
-
makeWindow
public abstract Window makeWindow()
-
asDimension
public static Dimension asDimension(Dimension2D dim)
-
-