Exemplo n.º 1
0
 //-----
 public void fillSelected()
 {
     if (dSelected)
     {
         Drawing d = (Drawing)drawings[selectedDrawing];
         d.setFill(true);
         FillMemento m = new FillMemento(selectedDrawing, this);
         undoList.Add(m);
     }
 }
Exemplo n.º 2
0
 //------
 public void startFill()
 {
     stMgr.setFill();
     rectb.setSelected(false);
     circButton.setSelected(false);
     arrowButton.setSelected(false);
     if (selectedDrawing >= 0)
     {
         stMgr.selectOne(getDrawing(selectedDrawing));
         FillMemento m = new FillMemento(selectedDrawing, this);
         undoList.Add(m);
     }
     repaint();
 }