| java.lang.Object com.sun.midp.chameleon.CLayer com.sun.midp.chameleon.layers.TitleLayer
TitleLayer | public class TitleLayer extends CLayer (Code) | | A basic "title" layer. This layer holds a screens title information.
|
Constructor Summary | |
public | TitleLayer() Construct a new TitleLayer. |
Method Summary | |
public String | getTitle() Get the title of this layer. | protected void | initialize() The TitleLayer overrides the initialize method in order to locate
the title layer in the window at the position and dimensions defined
in the TitleSkin. | protected void | paintBody(Graphics g) Draw the body of this layer. | public void | setAnchor() Sets the anchor constraints for rendering operation. | public boolean | setTitle(String title) Set the title of this title layer. | public void | update(CLayer[] layers) |
title | protected String title(Code) | | The text to draw as the title
|
titlextitleytitlewtitleh | protected int titlextitleytitlewtitleh(Code) | | This is the anchor position for the title
|
TitleLayer | public TitleLayer()(Code) | | Construct a new TitleLayer. This will construct a new layer using
the background image and color settings as defined in the TitleSkin.
|
getTitle | public String getTitle()(Code) | | Get the title of this layer.
the title of this layer, or null if this TitleLayer has notitle set. |
initialize | protected void initialize()(Code) | | The TitleLayer overrides the initialize method in order to locate
the title layer in the window at the position and dimensions defined
in the TitleSkin.
|
paintBody | protected void paintBody(Graphics g)(Code) | | Draw the body of this layer. This method uses settings in the
TitleSkin to render the title at the correct location using
specified font and color values.
Parameters: g - the Graphics to draw to |
setAnchor | public void setAnchor()(Code) | | Sets the anchor constraints for rendering operation.
|
setTitle | public boolean setTitle(String title)(Code) | | Set the title of this title layer.
Parameters: title - the text to draw as the title true if visability of layer was changed |
update | public void update(CLayer[] layers)(Code) | | Update bounds of layer
Parameters: layers - - current layer can be dependant on this parameter |
Methods inherited from com.sun.midp.chameleon.CLayer | public void addDirtyRegion()(Code)(Java Doc) public boolean addDirtyRegion(int x, int y, int w, int h)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) protected void cleanDirty()(Code)(Java Doc) protected void cleanDirtyRegions()(Code)(Java Doc) public boolean containsPoint(int x, int y)(Code)(Java Doc) public int[] getBounds()(Code)(Java Doc) public boolean handlePoint(int x, int y)(Code)(Java Doc) protected void initialize()(Code)(Java Doc) public boolean isDirty()(Code)(Java Doc) protected boolean isEmptyDirtyRegions()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) public boolean keyInput(int type, int code)(Code)(Java Doc) protected String layerID()(Code)(Java Doc) public boolean methodInput(String str)(Code)(Java Doc) public void paint(Graphics g)(Code)(Java Doc) protected void paintBackground(Graphics g)(Code)(Java Doc) protected void paintBody(Graphics g)(Code)(Java Doc) public boolean pointerInput(int type, int x, int y)(Code)(Java Doc) public void relocateNotify(int[] oldBounds)(Code)(Java Doc) public void removeNotify(CWindow owner)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaint(int x, int y, int w, int h)(Code)(Java Doc) public void setBackground(Image bgImage, boolean tileBG, int bgColor)(Code)(Java Doc) public void setBackground(Image[] bgImages, int bgColor)(Code)(Java Doc) public void setBounds(int x, int y, int w, int h)(Code)(Java Doc) protected void setDirty()(Code)(Java Doc) protected void setDirtyButNotNotifyOwner()(Code)(Java Doc) public void setOpaque(boolean opaque)(Code)(Java Doc) public void setSupportsInput(boolean support)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public boolean supportsInput()(Code)(Java Doc) public String toString()(Code)(Java Doc) public void update(CLayer[] mainLayers)(Code)(Java Doc)
|
|
|