|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.display.Display
public abstract class Display
Display encapsulates the display device of the pen. Applications
can get a reference to the display using the
PenletContext.getDisplay() method.
A portion of the display is used as a notification area on demand,
dynamically. This is known as the system tray. The dimensions of
the system tray can be retrieved using getTrayWidth() and
getTrayHeight().
| Method Summary | |
|---|---|
static byte |
getBlackColor()
Gets the pixel value used for black color |
Displayable |
getCurrent()
Gets the current Displayable instance. |
static int |
getHeight()
Gets the height of the display in pixels. |
Transition |
getTransition()
Gets the current Transition object. |
static int |
getTrayHeight()
Gets the height of the system tray in pixels. |
static int |
getTrayWidth()
Gets the width of the system tray in pixels. |
static byte |
getWhiteColor()
Gets the pixel value used for white color |
static int |
getWidth()
Gets the width of the display in pixels. |
void |
setCurrent(Displayable displayable)
Sets a new Displayable instance to be current. |
void |
setTransition(Transition transition)
Sets a new Transition on the display. |
abstract void |
showDefaultScreen()
Shows the platform default screen on the display. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getWidth()
public static int getHeight()
public static int getTrayWidth()
public static int getTrayHeight()
public static byte getWhiteColor()
public static byte getBlackColor()
public Displayable getCurrent()
Displayable instance. This can be null if
the display does not have any displayables.
Displayable instance; or null if
this Display does not have any displayable.public void setCurrent(Displayable displayable)
Displayable instance to be current.
displayable - the new Displayable. If the value is null,
the current Displayable (if any) is not changed.public void setTransition(Transition transition)
Transition on the display.
transition - the Transition to be used. This can be null to
use no transition.Transition.DEFAULT,
getTransition()public Transition getTransition()
Transition object. Note that this may be
null for the default transition.
Transition.setTransition(Transition)public abstract void showDefaultScreen()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||