codeblockutil
Interface Canvas

All Known Implementing Classes:
DefaultCanvas, FactoryCanvas

public interface Canvas

A Canvas is a low-level, mutable, CSwing component. It is the UI component onto which other UI components are added. An explorer, for example, may have a set of canvases that it controls and displays. A Navigator may take a set of canvases and control them in some complex way that mimicks real life experiences (such as sliding, fading, flying). A canvas should be the only part of a high-level CSwing object that users may manipulate.


Field Summary
static java.lang.String LABEL_CHANGE
           
 
Method Summary
 java.awt.Color getColor()
           
 java.awt.Color getHighlight()
          If this canvas is to be highlighted (because it might have focus for example), then getHighlight should return the color of that highlight.
 javax.swing.JComponent getJComponent()
           
 java.lang.String getName()
           
 

Field Detail

LABEL_CHANGE

static final java.lang.String LABEL_CHANGE
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns:
name of Canvas or an empty String by default. MAY NOT BE NULL.

getColor

java.awt.Color getColor()
Returns:
color of Canvas or null by default

getJComponent

javax.swing.JComponent getJComponent()
Returns:
the JComponent representation of this Canvas. MAY NOT BE NULL.

getHighlight

java.awt.Color getHighlight()
If this canvas is to be highlighted (because it might have focus for example), then getHighlight should return the color of that highlight. Otherwise, it should return null

Returns:
highlighting color or null by default.