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 ThreadLocation
myDisplay
-
Constructor Summary
Constructors Constructor Description Display()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addBox(Box model, Object where)
abstract void
addButton(Button model, Object where)
abstract void
addImage(DrawImage model, Object where)
abstract void
addLabel(Label model, Object where)
void
addSpacer(Spacer model, Object where)
void
addText(Text model, Object where)
abstract void
addView(Object view, Object where)
static Dimension
asDimension(Dimension2D dim)
Model
coerceToModel(Object component)
static Display
getInstance()
abstract Window
makeWindow()
-
-
-
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)
-
-