|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wicketstuff.yui.markup.html.ellipse.EllipseHelper
public class EllipseHelper
EllipseHelper will help generate the points needed. x = a cos theta y = b sin theta
| Constructor Summary | |
|---|---|
EllipseHelper(double width,
double height,
int segments)
Construct |
|
EllipseHelper(int segments)
construct |
|
| Method Summary | |
|---|---|
double |
getHeight()
|
int |
getLeft(int segment)
the Left value in HTML position terms by add half-width because the centre of the ellipse is half-width from the 0,0 position in HTML |
int |
getSegments()
|
float |
getTheta()
|
int |
getTop(int segment)
the Left value in HTML position terms by add half-height because the centre of the ellipse is half-height from the 0,0 position in HTML |
double |
getWidth()
|
double |
getX(int segment)
x = a cos theta a is half width |
double |
getY(int segment)
y = b sin theta |
void |
setHeight(double height)
|
void |
setSegments(int segments)
|
void |
setTheta(float theta)
|
void |
setWidth(double width)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EllipseHelper(double width,
double height,
int segments)
width - height - segments - public EllipseHelper(int segments)
| Method Detail |
|---|
public double getX(int segment)
segment -
public double getY(int segment)
segment -
public int getLeft(int segment)
segment -
public int getTop(int segment)
segment -
public double getWidth()
public void setWidth(double width)
public double getHeight()
public void setHeight(double height)
public int getSegments()
public void setSegments(int segments)
public float getTheta()
public void setTheta(float theta)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||