public class HZirkel extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IsApplet |
static long |
Version |
Constructor and Description |
---|
HZirkel()
Build a canvas for the zirkel with the standard size 600x600
|
HZirkel(int Xsize,
int Ysize)
Build a canvas for the Zirkel canvas
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final long Version
public static boolean IsApplet
public HZirkel()
Xsize
- size in XYsize
- size in Ypublic HZirkel(int Xsize, int Ysize)
Xsize
- size in XYsize
- size in Ypublic 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
- nameSCaVis 1.0 ©