|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.parser.swf.Symbol
pt.tumba.parser.swf.Shape
public class Shape
A Shape Symbol
| Nested Class Summary | |
|---|---|
static class |
Shape.ColorFill
Description of the Class |
static class |
Shape.Curve
Description of the Class |
static class |
Shape.Element
Description of the Class |
static class |
Shape.FillStyle
Description of the Class |
static class |
Shape.GradientFill
Description of the Class |
static class |
Shape.ImageFill
Description of the Class |
static class |
Shape.Line
Description of the Class |
static class |
Shape.LineStyle
Description of the Class |
static class |
Shape.Move
Description of the Class |
static class |
Shape.SetFillStyle
Description of the Class |
static class |
Shape.SetLeftFillStyle
Description of the Class |
static class |
Shape.SetLineStyle
Description of the Class |
static class |
Shape.SetRightFillStyle
Description of the Class |
static class |
Shape.SetStyle
Description of the Class |
static class |
Shape.Style
Description of the Class |
static class |
Shape.Vector
Description of the Class |
| Field Summary | |
|---|---|
protected double |
currx
Description of the Field |
protected double |
curry
Description of the Field |
protected java.util.List |
elements
Description of the Field |
protected boolean |
hasAlpha
Description of the Field |
protected double |
maxLineWidth
Description of the Field |
protected double |
maxX
Description of the Field |
protected double |
maxY
Description of the Field |
protected double |
minX
Description of the Field |
protected double |
minY
Description of the Field |
| Fields inherited from class pt.tumba.parser.swf.Symbol |
|---|
id |
| Constructor Summary | |
|---|---|
Shape()
Constructor for the Shape object |
|
| Method Summary | |
|---|---|
void |
curve(double x,
double y,
double controlX,
double controlY)
Draw a curve in the current line style (if any) |
void |
defineFillStyle(Color color2)
Define a color fill |
void |
defineFillStyle(Color[] colors,
int[] ratios,
Transform matrix,
boolean radial)
Define a gradient fill |
void |
defineFillStyle(Symbol image,
Transform matrix,
boolean clipped)
Define an image fill |
void |
defineLineStyle(double width,
Color color2)
Define a line style |
protected int |
defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
double[] |
getBoundingRectangle()
Get the bounding rectangle as a double[4] - (min-X,min-Y,max-X,max-Y) |
protected Rect |
getRect()
Gets the rect attribute of the Shape object |
java.util.List |
getShapeElements()
Access the list of shape elements Each object is a subclass of Shape.Element |
void |
line(double x,
double y)
Draw a line in the current line style (if any) |
void |
move(double x,
double y)
Move the pen without drawing any line |
protected void |
predefineImageFills(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
Description of the Method |
void |
setBoundingRectangle(double minX,
double minY,
double maxX,
double maxY)
Set the bounding rectangle. |
void |
setLeftFillStyle(int index)
Set the left fill style |
void |
setLineStyle(int index)
Set the line style |
void |
setRightFillStyle(int index)
Set the right fill style |
protected void |
writeGlyph(SWFVectors vecs)
Description of the Method |
protected void |
writeShape(SWFShape shape)
Description of the Method |
protected void |
writeVector(SWFVectors vecs,
java.lang.Object el)
Description of the Method |
| Methods inherited from class pt.tumba.parser.swf.Symbol |
|---|
define, getId, getNextId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List elements
protected double minX
protected double maxX
protected double minY
protected double maxY
protected boolean hasAlpha
protected double maxLineWidth
protected double currx
protected double curry
| Constructor Detail |
|---|
public Shape()
| Method Detail |
|---|
public double[] getBoundingRectangle()
public void setBoundingRectangle(double minX,
double minY,
double maxX,
double maxY)
minx - The new boundingRectangle valueminY - The new boundingRectangle valuemaxX - The new boundingRectangle valuemaxY - The new boundingRectangle valuepublic java.util.List getShapeElements()
public void defineLineStyle(double width,
Color color2)
color - if null then black is assumedwidth - Description of the Parameterpublic void defineFillStyle(Color color2)
color - if null then white is assumed
public void defineFillStyle(Symbol image,
Transform matrix,
boolean clipped)
image - Description of the Parametermatrix - Description of the Parameterclipped - Description of the Parameter
public void defineFillStyle(Color[] colors,
int[] ratios,
Transform matrix,
boolean radial)
colors - Description of the Parameterratios - Description of the Parametermatrix - Description of the Parameterradial - Description of the Parameterpublic void setLeftFillStyle(int index)
index - The new leftFillStyle valuepublic void setRightFillStyle(int index)
index - The new rightFillStyle valuepublic void setLineStyle(int index)
index - The new lineStyle value
public void move(double x,
double y)
x - Description of the Parametery - Description of the Parameter
public void line(double x,
double y)
x - Description of the Parametery - Description of the Parameter
public void curve(double x,
double y,
double controlX,
double controlY)
x - Description of the Parametery - Description of the ParametercontrolX - Description of the ParametercontrolY - Description of the Parameter
protected int defineSymbol(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
throws java.io.IOException
defineSymbol in class Symbolmovie - Description of the ParametertimelineWriter - Description of the ParameterdefinitionWriter - Description of the Parameter
java.io.IOException - Description of the Exceptionprotected Rect getRect()
protected void predefineImageFills(Movie movie,
SWFTagTypes timelineWriter,
SWFTagTypes definitionWriter)
throws java.io.IOException
movie - Description of the ParametertimelineWriter - Description of the ParameterdefinitionWriter - Description of the Parameter
java.io.IOException - Description of the Exception
protected void writeShape(SWFShape shape)
throws java.io.IOException
shape - Description of the Parameter
java.io.IOException - Description of the Exception
protected void writeVector(SWFVectors vecs,
java.lang.Object el)
throws java.io.IOException
vecs - Description of the Parameterel - Description of the Parameter
java.io.IOException - Description of the Exception
protected void writeGlyph(SWFVectors vecs)
throws java.io.IOException
vecs - Description of the Parameter
java.io.IOException - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||