|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.HZirkel
public class HZirkel
HZirkel class is used to create a canvas for dynamic manipulation with geometrical objects. Based on CarMatal/Zirkel program adopted for java scripting.
| Field Summary | |
|---|---|
static boolean |
IsApplet
|
static long |
Version
|
| Constructor Summary | |
|---|---|
HZirkel()
Build a canvas for the zirkel with the standard size 600x600 |
|
HZirkel(int Xsize,
int Ysize)
Build a canvas for the Zirkel canvas |
|
| Method Summary | |
|---|---|
void |
add(carmetal.objects.ConstructionObject obj)
Add an object on the canvas and update it. |
void |
clear()
Clear the canvas |
void |
close()
close current page |
void |
draw(carmetal.objects.ConstructionObject obj)
Draw an object on the canvas. |
void |
exit()
|
void |
export(String file)
Export image to a file. |
carmetal.rene.zirkel.ZirkelCanvas |
getCanvas()
Return the actual canvas where all objects are shown |
carmetal.construction.Construction |
getConstruction()
Get construction to draw the objects |
void |
setAxis(boolean axis)
Show coordinate system on the canvas. |
void |
update()
Update the canvas with new objects. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long Version
public static boolean IsApplet
| Constructor Detail |
|---|
public HZirkel()
Xsize - size in XYsize - size in Y
public HZirkel(int Xsize,
int Ysize)
Xsize - size in XYsize - size in Y| Method Detail |
|---|
public carmetal.rene.zirkel.ZirkelCanvas getCanvas()
public void draw(carmetal.objects.ConstructionObject obj)
obj - objectpublic carmetal.construction.Construction getConstruction()
public void add(carmetal.objects.ConstructionObject obj)
obj - objectpublic void update()
public void close()
public void exit()
public void clear()
public void setAxis(boolean axis)
public void export(String file)
file - name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||