|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.piece.Ellipse
public class Ellipse
Ellipse drawing - two different algorithms for untilted (Bresenham) and tilted (Bond) ellipses.
Field Summary | |
---|---|
protected static java.lang.String |
CATEGORY
Object category. |
protected BitMask |
out
Accelerator: attached output module. |
static RegPiece |
reg
Static registration instance for this class. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.Render |
---|
LINE_CAP, LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE, LINE_JOIN, LINE_JOIN_BEVEL, LINE_JOIN_DISJOINT, LINE_JOIN_MITER, LINE_JOIN_OVERLAP, LINE_JOIN_ROUND, LINE_WIDTH, PROJECTION, RENDER_STYLE, RENDER_STYLE_FLAT, RENDER_STYLE_GOURAUD, RENDER_STYLE_LINE, RENDER_STYLE_PHONG, RENDER_STYLE_TEXTURE |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
Ellipse()
|
Method Summary | |
---|---|
void |
drawEllipse(double x0,
double y0,
double a,
double b)
Draws an axis-aligned ellipse with center [x,y] and radii a, b. |
void |
drawEllipse(double x0,
double y0,
double a,
double b,
double tilt)
Draws a tilted ellipse with center [x,y] and radii a, b. |
void |
drawEllipse(int x0,
int y0,
int a,
int b)
Draws an axis-aligned ellipse with center [x,y] and radii a, b. |
protected static double |
ellipseFunction(double A,
double B,
double C2,
double D,
double E,
double F,
double x,
double y)
Support polynomial. |
protected void |
ellipsePoints(int x0,
int y0,
int x,
int y)
Draws four symmetric ellipse points. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
protected BitMask out
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
Constructor Detail |
---|
public Ellipse()
Method Detail |
---|
protected final void ellipsePoints(int x0, int y0, int x, int y)
protected static final double ellipseFunction(double A, double B, double C2, double D, double E, double F, double x, double y)
public void drawEllipse(int x0, int y0, int a, int b)
drawEllipse
in interface EllipseRender
x0
- X coordinate of ellipse center.y0
- X coordinate of ellipse center.a
- Horizontal radius of the ellipse.b
- Vertical radius of the ellipse.public void drawEllipse(double x0, double y0, double a, double b)
drawEllipse
in interface EllipseRender
x0
- X coordinate of ellipse center.y0
- X coordinate of ellipse center.a
- Horizontal radius of the ellipse.b
- Vertical radius of the ellipse.public void drawEllipse(double x0, double y0, double a, double b, double tilt)
drawEllipse
in interface EllipseRender
x0
- X coordinate of ellipse center.y0
- X coordinate of ellipse center.a
- Primary radius of the ellipse.b
- Secondary radius of the ellipse.tilt
- Tilt angle in radians. 0.0
for axis-aligned ellipse.
Positive orientation means counterclockwise.public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |