Enum Presentation.Format
- All Implemented Interfaces:
Comparable<Presentation.Format>
- Enclosing class:
Presentation
The formats a presentation is read from and written to.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApple Keynote 2013 and later (.key).Codename One's own.cn1slides: a ZIP holdingpresentation.xml, with each text box in the.cn1docvocabulary.OpenDocument presentation, the format of LibreOffice Impress and Keynote's export.PDF, one page per visible slide.PowerPoint 97-2003 (.ppt).Office Open XML, the format of PowerPoint 2007 and later. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()True when a presentation can be read from this format.booleancanWrite()True when a presentation can be written in this format.The file extension without a dot.static Presentation.FormatforFileName(String fileName) The format a file name's extension names, ignoring case.static Presentation.FormatReturns the enum constant of this type with the specified name.static Presentation.Format[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
NATIVE
Codename One's own.cn1slides: a ZIP holdingpresentation.xml, with each text box in the.cn1docvocabulary. Keeps everything the model holds, diagrams included. -
PPTX
Office Open XML, the format of PowerPoint 2007 and later. Reads and writes shapes with preset geometry, fills, outlines and arrowheads, text with layout and master placeholder inheritance, pictures with cropping, tables with merged cells, groups, charts, speaker notes, transitions and entrance/exit animations. A diagram is written as a group of shapes. -
ODP
OpenDocument presentation, the format of LibreOffice Impress and Keynote's export. Reads and writes the same features as PPTX. -
KEY
Apple Keynote 2013 and later (.key). Read only: slides, text boxes and placeholders with their text, shapes, pictures and speaker notes are read from the package's archived objects. What cannot be decoded is listed ingetWarnings(). -
PPT
PowerPoint 97-2003 (.ppt). Read only: text, shapes, pictures, notes and slide backgrounds. -
PDF
PDF, one page per visible slide. Write only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
extension
The file extension without a dot.
Returns
the extension
-
canRead
public boolean canRead()True when a presentation can be read from this format.
Returns
true when readable
-
canWrite
public boolean canWrite()True when a presentation can be written in this format.
Returns
true when writable
-
forFileName
The format a file name's extension names, ignoring case.
Parameters
fileName: the name
Returns
the format, or null when the extension is not a presentation format
-