コード例 #1
0
  private void constructFigs(int x, int y, int w, int h) {
    bigPort = new FigRect(x, y, w, h, LINE_COLOR, FILL_COLOR);
    bigPort.setFilled(true);
    setFilled(true);

    bigPort.setLineWidth(0);
    setLineWidth(0);
    addFig(bigPort);
  }
コード例 #2
0
 /** Change the fill. */
 public void setTargetFill() {
   Fig target = getPanelTarget();
   Object c = fillField.getSelectedItem();
   if (target == null || c == null) {
     return;
   }
   if (c instanceof Color) {
     target.setFillColor((Color) c);
   }
   target.setFilled(c instanceof Color);
   target.endTrans();
 }