gnu.kawa.models

Class Display

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
static ThreadLocationmyDisplay
Method Summary
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

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()