I am trying to use the CircleToCommand but it does not draw anything on the screen. Following is the code which I am using. If I use the "LineToCommand", then I do see a line being drawn. But nothing when I use the CircleToCommand. Has anyone tried using the CircleToCommand ?
DrawPane drawPane = new DrawPane();
drawPane.setShowEdges(false);
//drawPane.setOverflow(Overflow.HIDDEN);
CircleToCommand usedSegment = new CircleToCommand(new Point(50,50) ,10, 0.0, 78.0);
//LineToCommand usedSegment = new LineToCommand(new Point(20,20), new Point(80,80));
DrawShape drawShape = new DrawShape();
drawShape.setDrawPane(drawPane);
drawShape.setCommands(usedSegment, new CloseCommand());
drawShape.setLineWidth(5);
drawShape.setLineColor("#FFFF00");
drawShape.setFillColor("#FF0000");
drawShape.setEndArrow(ArrowStyle.NULL);
drawShape.draw();
RootLayoutPanel.get().add(drawPane);
DrawPane drawPane = new DrawPane();
drawPane.setShowEdges(false);
//drawPane.setOverflow(Overflow.HIDDEN);
CircleToCommand usedSegment = new CircleToCommand(new Point(50,50) ,10, 0.0, 78.0);
//LineToCommand usedSegment = new LineToCommand(new Point(20,20), new Point(80,80));
DrawShape drawShape = new DrawShape();
drawShape.setDrawPane(drawPane);
drawShape.setCommands(usedSegment, new CloseCommand());
drawShape.setLineWidth(5);
drawShape.setLineColor("#FFFF00");
drawShape.setFillColor("#FF0000");
drawShape.setEndArrow(ArrowStyle.NULL);
drawShape.draw();
RootLayoutPanel.get().add(drawPane);