palmed.edit.scrollbar
Interface IDrawer

All Known Implementing Classes:
HorizontalScrollbar, VerticalScrollbar

public interface IDrawer

This interface defines a component able to draw a scrollbar.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Method Summary
 void drawArrow(javax.microedition.lcdui.Graphics g, int end, int from, int to)
          Draw an arrow.
 void drawBackground(javax.microedition.lcdui.Graphics g, int size, int width)
          Draw the background.
 void drawBody(javax.microedition.lcdui.Graphics g, int start, int end, int from, int to)
          Draw the body.
 void drawCursor(javax.microedition.lcdui.Graphics g, int start, int width, int from, int length)
          Draw the cursor.
 

Method Detail

drawBody

void drawBody(javax.microedition.lcdui.Graphics g,
              int start,
              int end,
              int from,
              int to)
Draw the body.

Parameters:
g - the graphics
start - the offset where to start at perpendiculary of the axis of the scrollbar
end - the offset where to end at perpendiculary of the axis of the scrollbar
from - the offset where to start at on the axis of the scrollbar
to - the offset where to end at on the axis of the scrollbar

drawArrow

void drawArrow(javax.microedition.lcdui.Graphics g,
               int end,
               int from,
               int to)
Draw an arrow.

Parameters:
g - the graphics
end - the offset where to end at perpendiculary of the axis of the scrollbar
from - the offset where to start at on the axis of the scrollbar
to - the offset where to end at on the axis of the scrollbar

drawCursor

void drawCursor(javax.microedition.lcdui.Graphics g,
                int start,
                int width,
                int from,
                int length)
Draw the cursor.

Parameters:
g - the graphics
start - the offset to start at perpendiculary of the axis of the scrollbar
width - the width of the cursor
from - the offset to start at on the axis of the scrollbar
length - the length of the cursor

drawBackground

void drawBackground(javax.microedition.lcdui.Graphics g,
                    int size,
                    int width)
Draw the background.

Parameters:
g - the graphics
size - the size of the scrollbar
width - the width of the scrollbar


Copyright © 2004-2006 PalmEd. All Rights Reserved.