Package com.codename1.presentation


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.

  • Class
    Description
    One step of a slide's animation: an element appearing, leaving or drawing attention.
    A chart on a slide: its data -- categories, named series of values, colors -- and its kind.
    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.
    A node of a diagram.
    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.
    Elements moved, resized and rotated as one.
    How the outline of a shape, or a line or connector, is drawn.
    A picture on a slide, optionally cropped and outlined.
    A slide presentation: slides of a common size, the theme they were designed with, and the formats it is read from and written to.
    The formats a presentation is read from and written to.
    Notified when a PresentationModel's presentation is replaced, by an edit, an undo or a redo.
    The editable, undoable facade of a Presentation, the way DocumentModel is for a word processing document.
    A drawn shape -- rectangle, ellipse, arrow, star, line, connector -- with an optional fill, outline and text.
    The outlines of the preset shapes, as com.codename1.ui.geom.GeneralPaths.
    One slide: a background, elements in painting order, speaker notes, a transition and the builds that animate its elements.
    The timing of a slide's builds and the frames of its transitions, as pure functions of progress.
    Something placed on a slide: a shape, a picture, a table, a chart, a diagram or a group of them.
    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.
    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.
    How a slide show is showing an element partway through a build: its opacity, offset, scale and how much of it a wipe has revealed.
    Plays a presentation: slide transitions, builds, and charts that animate in as their slide appears.
    An editor for a presentation: a strip of slide thumbnails, the slide being edited and its speaker notes.
    A table on a slide.
    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.
    The text inside a shape: word processing blocks, laid out in the shape's box less its insets.
    The colors and fonts a presentation is designed with.
    How a slide comes on screen in a slide show, and when the show moves on from it.