public enum DrawingType extends java.lang.Enum<DrawingType> implements ValueEnum
DrawPane
to draw its draw items
on screen. DrawItem.zIndex
, DrawItem.bringToFront()
, and DrawItem.sendToBack()
are not supported on iOS devices in
bitmap drawing mode due to platform limitations. These APIs are supported on iOS in SVG drawing mode. DrawPane
using bitmap drawing. Internet Explorer, for example, limits the width and height of a
<canvas> to 8192 pixels: http://msdn.microsoft.com/en-us/library/ie/ff975062(v=vs.85).aspx; therefore, in IE using bitmap
drawing, a DrawPane
can be at most 8192×8192 in size. To make larger drawings, you can either switch
to SVG drawing, use multiple DrawPane
s, or enable drag-scrolling
. Canvas
can be created with the solid
background color and one DrawPane
can be created for each content area. Each DrawPane
is
added as a child
to the Canvas
. The left
and top
properties of
the DrawPane
s are used to absolutely-position them within the Canvas
parent. Enum Constant and Description |
---|
BITMAP
Use an HTML5 <canvas> element.
|
SVG
Use Scalable Vector Graphics (SVG).
|
VML
Use Vector Markup Language (VML).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static DrawingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DrawingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DrawingType SVG
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "svg".
public static final DrawingType BITMAP
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "bitmap".
public static final DrawingType VML
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "vml".
public static DrawingType[] values()
for (DrawingType c : DrawingType.values()) System.out.println(c);
public static DrawingType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null