@Override
    public void onDraw(Graphics G, int viewX, int viewY) {
        if (X>viewX&&X<viewX+300&&Y>viewY&&Y<viewY+300)
        {
            G.setColor(radius==0?Color.blue:Color.red);
            G.drawArc(((int)X-3)-viewX, (int)(Y-3)-viewY, 6, 6, 0, 360);
            G.drawLine((int)(X-2)-viewX, (int)Y-viewY, (int)(X+2)-viewX, (int)Y-viewY);
        }
    }