Пример #1
0
  /* Override setBounds to keep shapes looking right */
  public void setBounds(int x, int y, int w, int h) {
    Rectangle oldBounds = getBounds();
    if (w > h) h = 9;
    else w = 9;
    _bigPort.setBounds(x, y, w, h);
    _head.setBounds(x, y, w, h);

    calcBounds(); // _x = x; _y = y; _w = w; _h = h;
    updateEdges();
    firePropChange("bounds", oldBounds, getBounds());
  }
Пример #2
0
 public int getLineWidth() {
   return _head.getLineWidth();
 }
Пример #3
0
 public void setLineWidth(int w) {
   _head.setLineWidth(w);
 }
Пример #4
0
 public Color getFillColor() {
   return _head.getFillColor();
 }
Пример #5
0
 public void setFillColor(Color col) {
   _head.setFillColor(col);
 }
Пример #6
0
 public Color getLineColor() {
   return _head.getLineColor();
 }
Пример #7
0
 public void setLineColor(Color col) {
   _head.setLineColor(col);
 }