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 BuildOne step of a slide’s animation: an element appearing, leaving or drawing attention.
class ChartElementA chart on a slide: its data – categories, named series of values, colors – and its kind.
class DiagramElementA 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 FillHow 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 GroupElementElements moved, resized and rotated as one.
class LineStyleHow the outline of a shape, or a line or connector, is drawn.
class PictureElementA picture on a slide, optionally cropped and outlined.
class PresentationA slide presentation: slides of a common size, the theme they were designed with, and the formats it is read from and written to.
interface PresentationListenerNotified when a PresentationModel’s presentation is replaced, by an edit, an undo or a redo.
class PresentationModelThe editable, undoable facade of a Presentation, the way DocumentModel is for a word processing document.
class ShapeElementA drawn shape – rectangle, ellipse, arrow, star, line, connector – with an optional fill, outline and text.
class ShapeGeometryThe outlines of the preset shapes, as com.codename1.ui.geom.GeneralPaths.
class SlideOne slide: a background, elements in painting order, speaker notes, a transition and the builds that animate its elements.
class SlideAnimationThe timing of a slide’s builds and the frames of its transitions, as pure functions of progress.
class SlideElementSomething placed on a slide: a shape, a picture, a table, a chart, a diagram or a group of them.
class SlidePdfExportPDF 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 SlideRendererPaints 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 SlideShowPlays a presentation: slide transitions, builds, and charts that animate in as their slide appears.
class SlideViewAn editor for a presentation: a strip of slide thumbnails, the slide being edited and its speaker notes.
class TableElementA table on a slide.
class TextBoxLayoutThe 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 TextFrameThe text inside a shape: word processing blocks, laid out in the shape’s box less its insets.
class ThemeThe colors and fonts a presentation is designed with.
class TransitionHow a slide comes on screen in a slide show, and when the show moves on from it.