Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
package com.codename1.presentation
Presentations: slide decks read, shown, edited and written.
A Presentation is an immutable list of Slides, each a list of SlideElements –
ShapeElements with their TextFrames, PictureElements, TableElements,
ChartElements, DiagramElements and GroupElements – with a Transition into the
slide and the Builds that animate its elements, over a Theme.
SlideShow plays a deck, in presenter mode too, and SlideView edits one through a
PresentationModel, which keeps the undo history and tells its PresentationListeners
about every change. SlideRenderer paints a slide into any Graphics.
Decks are read from PowerPoint (.pptx and the older .ppt), OpenDocument (.odp),
Keynote (.key) and Codename One’s own .cn1slides files, and written as .pptx,
.odp, .cn1slides and PDF; see Presentation.Format.
Types
class Build | One step of a slide’s animation: an element appearing, leaving or drawing attention. |
class ChartElement | A chart on a slide: its data – categories, named series of values, colors – and its kind. |
class DiagramElement | A diagram on a slide – a process, a hierarchy, a cycle – kept as what it means: nodes, the edges between them and how they are arranged. |
class Fill | How the inside of a shape or a slide’s background is painted: nothing, one color, a two-color linear gradient, or a picture stretched over the area. |
class GroupElement | Elements moved, resized and rotated as one. |
class LineStyle | How the outline of a shape, or a line or connector, is drawn. |
class PictureElement | A picture on a slide, optionally cropped and outlined. |
class Presentation | A slide presentation: slides of a common size, the theme they were designed with, and the formats it is read from and written to. |
interface PresentationListener | Notified when a PresentationModel’s presentation is replaced, by an edit, an undo or a redo. |
class PresentationModel | The editable, undoable facade of a Presentation, the way DocumentModel is for a word processing document. |
class ShapeElement | A drawn shape – rectangle, ellipse, arrow, star, line, connector – with an optional fill, outline and text. |
class ShapeGeometry | The outlines of the preset shapes, as com.codename1.ui.geom.GeneralPaths. |
class Slide | One slide: a background, elements in painting order, speaker notes, a transition and the builds that animate its elements. |
class SlideAnimation | The timing of a slide’s builds and the frames of its transitions, as pure functions of progress. |
class SlideElement | Something placed on a slide: a shape, a picture, a table, a chart, a diagram or a group of them. |
class SlidePdfExport | PDF export: one page per visible slide, at the slide’s size in points, drawn by SlideRenderer with a painter over com.codename1.pdf.PdfCanvas. |
class SlideRenderer | Paints slides on a Graphics: thumbnails, the editor’s canvas and the slide show all draw through this class, and PDF export draws the same elements with the same geometry. |
class SlideShow | Plays a presentation: slide transitions, builds, and charts that animate in as their slide appears. |
class SlideView | An editor for a presentation: a strip of slide thumbnails, the slide being edited and its speaker notes. |
class TableElement | A table on a slide. |
class TextBoxLayout | The text of a shape laid out in its box: the word processing layout, where its first line starts, and how much it was shrunk to fit. |
class TextFrame | The text inside a shape: word processing blocks, laid out in the shape’s box less its insets. |
class Theme | The colors and fonts a presentation is designed with. |
class Transition | How a slide comes on screen in a slide show, and when the show moves on from it. |