gnu.kawa.models

Class Display

Known Direct Subclasses:
SwingDisplay, SwtDisplay

public abstract class Display
extends java.lang.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

static ThreadLocation
myDisplay

Method Summary

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 Details

myDisplay

public static ThreadLocation myDisplay

Method Details

addBox

public abstract void addBox(Box model,
                            Object where)

addButton

public abstract void addButton(Button model,
                               Object where)

addImage

public abstract void addImage(DrawImage model,
                              Object where)

addLabel

public abstract void addLabel(Label model,
                              Object where)

addSpacer

public void addSpacer(Spacer model,
                      Object where)

addText

public void addText(Text model,
                    Object where)

addView

public abstract void addView(Object view,
                             Object where)

asDimension

public static Dimension asDimension(Dimension2D dim)

coerceToModel

public Model coerceToModel(Object component)

getInstance

public static Display getInstance()

makeWindow

public abstract Window makeWindow()