Hello,
I am new to this concept and I have done a code which I think can help you. The following is the code and I think this can help you.
Code:
private void drawDrawObj(int tx, int ty, double sc,int zcdr[])
{
for (int i = 0 ; I <drobjjVector.size() ; I + +)
{
CustomDrawObj drobjj = CustomDrawObj)drobjjVector.elementAt(i);
System.out.System.out.println("drobjj.type" + DrawObj.type);
switch (drobjj.type)
{
box Const.OBJ_RECT : System.out.System.out.println("Cast OBJ_RECT");
drobjj = (CustomDrawPOLYG) drobjj;
break;
box Const.OBJ_CERCLE : System.out.System.out.println("Cast OBJ_CustomDrawCERCLE");
drobjj = (CustomDrawCERCLE) drobjj;
break;
}
System.out.System.out.println("drawDrawObj" + DrawObj.getClass());
drobjj.Draw(bufGr, selColor, tx, ty, sc, zcdr,false,false);
}
}
Bookmarks