| java.lang.Object com.sun.midp.chameleon.CLayer com.sun.midp.chameleon.layers.ScrollIndLayer com.sun.midp.chameleon.layers.ScrollArrowLayer
ScrollArrowLayer | public class ScrollArrowLayer extends ScrollIndLayer (Code) | | A ScrollArrowLayer is a region of the display used for showing scroll indicator
status arrows.
|
Field Summary | |
protected boolean | downViz | protected boolean | upViz |
downViz | protected boolean downViz(Code) | | True if down arrow is visible
|
upViz | protected boolean upViz(Code) | | True if up arrow is visible
|
ScrollArrowLayer | public ScrollArrowLayer(CLayer layer)(Code) | | Construct a new ScrollIndLayer, visible, but transparent :)
|
ScrollArrowLayer | public ScrollArrowLayer(CLayer layer, ScrollListener listener)(Code) | | Additional constructor.
Parameters: layer - the scrollable controlling the scrolling layer Parameters: listener - the scrolling listener |
paintBody | protected void paintBody(Graphics g)(Code) | | Paint the scroll indicator. The indicator arrows may be appear
individually
or together, and may vary in appearance based on whether they appear
in the normalsoft button region or an alert's softbutton region.
The visible state is based on the state of the alertMode ,
upViz , and downViz variables set by the
setVerticalScroll method.
Parameters: g - the graphics context to paint in |
pointerInput | public boolean pointerInput(int type, int x, int y)(Code) | | Handle input from a pen tap. Parameters describe
the type of pen event and the x,y location in the
layer at which the event occurred. Important : the
x,y location of the pen tap will already be translated
into the coordinate space of the layer.
Parameters: type - the type of pen event Parameters: x - the x coordinate of the event Parameters: y - the y coordinate of the event |
setBounds | public void setBounds()(Code) | | Calculate layer bounds depending on the scrollable
|
setScrollable | public boolean setScrollable(CLayer layer)(Code) | | Set new scrollable
Parameters: layer - new scrollable controlling the scrolling layer true if the scrollable is changed, false - otherwise |
setVerticalScroll | public void setVerticalScroll(int scrollPosition, int scrollProportion)(Code) | | Set the current vertical scroll position and proportion.
Parameters: scrollPosition - vertical scroll position. Parameters: scrollProportion - vertical scroll proportion. |
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)
|
|
|