Modifier and Type | Field and Description |
---|---|
static int |
ARC |
static int |
CAPACITY_BLOCK |
static String |
CLOSE |
String |
comment |
static String |
COMMENT |
static String |
CUBIC_TO |
static char[] |
DELIM_CHAR |
static String |
DELIMS |
protected int[] |
descriptors |
protected int |
descriptorsIndex |
static String |
ELEMENT_NAME |
static int |
ELLIPSE |
static String |
LINE_TO |
static String |
MOVE_TO |
static int |
NUM_PRIMITIVES |
protected double[] |
points |
protected int |
pointsIndex |
protected double[] |
primitivePoints |
static String[] |
PRIMITIVES |
protected int |
primitiveType |
static String |
QUAD_TO |
static int |
RECTANGLE |
static int |
ROUND_RECT |
static String |
RULE |
protected int |
windingRule |
Constructor and Description |
---|
ShapeData()
Creates new ShapeData
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(int descriptor,
double[] data) |
Object |
clone() |
void |
closePath() |
void |
cubicTo(double x0,
double y0,
double x1,
double y1,
double x2,
double y2) |
Element |
getJDomElement(double scaleW,
double scaleH) |
Shape |
getShape(double dx,
double dy,
double scaleX,
double scaleY) |
Shape |
getShape(Rectangle2D rect) |
static ShapeData |
getShapeData(Element e,
double scaleW,
double scaleH) |
static ShapeData |
getShapeData(Shape sh,
String comment) |
static ShapeData |
getShapeData(Shape sh,
String comment,
boolean closeTo) |
void |
lineTo(double x,
double y) |
void |
moveTo(double x,
double y) |
void |
quadTo(double x0,
double y0,
double x1,
double y1) |
void |
scaleTo(double scaleX,
double scaleY) |
void |
setWindingRule(int setRule) |
public static final int CAPACITY_BLOCK
protected double[] points
protected int pointsIndex
protected int[] descriptors
protected int descriptorsIndex
protected int windingRule
protected int primitiveType
protected double[] primitivePoints
public String comment
public static final String ELEMENT_NAME
public static final String COMMENT
public static final int RECTANGLE
public static final int ELLIPSE
public static final int ROUND_RECT
public static final int ARC
public static final int NUM_PRIMITIVES
public static final String[] PRIMITIVES
public static final String RULE
public static final String MOVE_TO
public static final String LINE_TO
public static final String QUAD_TO
public static final String CUBIC_TO
public static final String CLOSE
public static final String DELIMS
public static final char[] DELIM_CHAR
public Element getJDomElement(double scaleW, double scaleH)
public static ShapeData getShapeData(Element e, double scaleW, double scaleH) throws Exception
Exception
protected void add(int descriptor, double[] data)
public void moveTo(double x, double y)
public void lineTo(double x, double y)
public void quadTo(double x0, double y0, double x1, double y1)
public void cubicTo(double x0, double y0, double x1, double y1, double x2, double y2)
public void closePath()
public void setWindingRule(int setRule)
public void scaleTo(double scaleX, double scaleY)
public Shape getShape(Rectangle2D rect)
public Shape getShape(double dx, double dy, double scaleX, double scaleY)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.