|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gicentre.utils.multisketch.Slide
public class Slide
Class to represent a presentation slide for use in a slide show.
| Constructor Summary | |
|---|---|
Slide(processing.core.PFont font)
Creates a slide that uses the given default font. |
|
Slide(processing.core.PFont font,
int size,
int colour)
Creates a slide that uses the given default values for font, size and colour. |
|
Slide(processing.core.PFont font,
int size,
int colour,
int hAlignment)
Creates a slide that uses the given default values for font, size, colour and horizontal alignment. |
|
Slide(processing.core.PFont font,
int size,
int colour,
int hAlignment,
int vAlignment)
Creates a slide that uses the given default values for font, size, colour and alignment. |
|
| Method Summary | |
|---|---|
void |
addImage(processing.core.PImage image)
Adds an image to the slide with the default horizontal alignment. |
void |
addImage(processing.core.PImage image,
int width,
int height)
Adds an image with the given dimensions to the slide with the default horizontal alignment. |
void |
addImage(processing.core.PImage image,
int width,
int height,
int hAlign)
Adds an image with the given dimensions to the slide with the given horizontal alignment. |
void |
addLine(java.lang.String text)
Adds a line of text to the slide to be displayed using the default font, size, colour and alignment. |
void |
addLine(java.lang.String text,
processing.core.PFont font)
Adds a line of text to the slide using the given font. |
void |
addLine(java.lang.String text,
processing.core.PFont font,
int fontSize)
Adds a line of text to the slide using the given font and size. |
void |
addLine(java.lang.String text,
processing.core.PFont font,
int fontSize,
int colour)
Adds a line of text to the slide using the given font, size and colour. |
void |
addLine(java.lang.String text,
processing.core.PFont font,
int fontSize,
int colour,
int hAlign)
Adds a line of text to the slide using the given font, size, colour and horizontal alignment. |
void |
draw(processing.core.PApplet aContext)
Draws the contents of the slide. |
void |
setBorder(int top,
int bottom,
int left,
int right)
Sets the borders around the slide. |
void |
setLeading(int leading)
Sets the leading (vertical gap) between items on the slide. |
java.lang.String |
toString()
Provides a textual description of the contents of this slide. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Slide(processing.core.PFont font)
font - Default font used to display text.
public Slide(processing.core.PFont font,
int size,
int colour)
font - Default font used to display text.size - Default font size used to display text.colour - Default colour used to display text.
public Slide(processing.core.PFont font,
int size,
int colour,
int hAlignment)
font - Default font used to display text.size - Default font size used to display text.colour - Default colour used to display text.hAlignment - Default horizontal alignment to use to display text. Assumes Processing's
LEFT, CENTER and RIGHT constants.
public Slide(processing.core.PFont font,
int size,
int colour,
int hAlignment,
int vAlignment)
font - Default font used to display text.size - Default font size used to display text.colour - Default colour used to display text.hAlignment - Default horizontal alignment to use to display text. Assumes Processing's
LEFT, CENTER and RIGHT constants.vAlignment - Vertical alignment to use to display text. Assumes Processing's
TOP, CENTER and BOTTOM constants.| Method Detail |
|---|
public void draw(processing.core.PApplet aContext)
aContext - Applet context in which to draw.
public void setBorder(int top,
int bottom,
int left,
int right)
top - Top border in pixels.bottom - bottom border in pixels.left - Left hand border in pixels.right - Right hand border in pixels.public void setLeading(int leading)
leading - Leading height in pixels.public void addLine(java.lang.String text)
text - The text to add to the slide.
public void addLine(java.lang.String text,
processing.core.PFont font)
font - Font used to display this line of text.text - The text to add to the slide.
public void addLine(java.lang.String text,
processing.core.PFont font,
int fontSize)
font - Font used to display this line of text.text - The text to add to the slide.fontSize - Size of font in pixels.
public void addLine(java.lang.String text,
processing.core.PFont font,
int fontSize,
int colour)
font - Font used to display this line of text.text - The text to add to the slide.fontSize - Size of font in pixels.colour - Colour in which to display text.
public void addLine(java.lang.String text,
processing.core.PFont font,
int fontSize,
int colour,
int hAlign)
font - Font used to display this line of text.text - The text to add to the slide.fontSize - Size of font in pixels.colour - Colour in which to display text.hAlign - Horizontal text alignment to use. Assumes Processing's LEFT,
CENTER and RIGHT constants.public void addImage(processing.core.PImage image)
image - Image to display in slide.
public void addImage(processing.core.PImage image,
int width,
int height)
image - Image to display in slide.width - Width at which to display image.height - Height at which to display image.
public void addImage(processing.core.PImage image,
int width,
int height,
int hAlign)
image - Image to display in slide.width - Width at which to display image.height - Height at which to display image.hAlign - Horizontal image alignment to use. Assumes Processing's LEFT,
CENTER and RIGHT constants.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||