|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.display.Displayable
com.livescribe.display.Canvas
com.livescribe.buttons.ButtonPABDisplay
public class ButtonPABDisplay
This can display a configurable text button. The configurable options include:
DrawnButtonController.setButton(Bookmarkable)| Constructor Summary | |
|---|---|
ButtonPABDisplay(AttributedText text)
Creates a new Prompt and Believe display having the specified attributed text. |
|
ButtonPABDisplay(AttributedText text,
Image icon)
Creates a new Prompt and Believe display having the specified attributed text and icon. |
|
ButtonPABDisplay(String text)
Creates a new Prompt and Believe display having the specified text. |
|
ButtonPABDisplay(String text,
Image icon)
Creates a new Prompt and Believe display having the specified text and icon. |
|
| Method Summary | |
|---|---|
protected void |
notifyHidden(Display d)
Stops the animation when this hidden. |
protected void |
notifyShown(Display d)
This is called when this object has become the current thing on the display. |
protected void |
paint(Graphics g)
Paints the component. |
void |
setAudio(String audio,
MediaPlayer player)
Sets the audio and media player to use for playing the audio. |
void |
setBoxLineStyle(int style)
Sets the style of the box drawn around the button. |
void |
setFont(Font font)
Sets the text's font. |
void |
stopAnimation()
Stop the animation |
| Methods inherited from class com.livescribe.display.Canvas |
|---|
repaint |
| Methods inherited from class com.livescribe.display.Displayable |
|---|
getSurface, isCurrent, notifySystemTrayHidden, notifySystemTrayShown |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonPABDisplay(String text)
text - the button text
public ButtonPABDisplay(String text,
Image icon)
text - the button texticon - the button iconpublic ButtonPABDisplay(AttributedText text)
text - the button textAttributedText.parseEnriched(String, Font)
public ButtonPABDisplay(AttributedText text,
Image icon)
text - the button texticon - the button iconAttributedText.parseEnriched(String, Font)| Method Detail |
|---|
public void setAudio(String audio,
MediaPlayer player)
null then no audio will be played.
audio - the audio to play when the button is shownplayer - use this MediaPlayerpublic void setFont(Font font)
null
then a default font will be used.
The default is "Verdana", bold, and medium size.
font - the new fontFontpublic void setBoxLineStyle(int style)
Graphics.LINE_STYLE_XXX constants.
The default is solid.
style - the new text styleGraphics.LINE_STYLE_SOLID,
Graphics.LINE_STYLE_DOTTED,
Graphics.LINE_STYLE_INVISIBLEprotected void notifyShown(Display d)
notifyShown in class Displayabled - the Displayprotected void notifyHidden(Display d)
notifyHidden in class Displayabled - hidden from this displaypublic void stopAnimation()
protected void paint(Graphics g)
paint in class Displayableg - the graphics context
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||