/* 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()); }
public int getLineWidth() { return _head.getLineWidth(); }
public void setLineWidth(int w) { _head.setLineWidth(w); }
public Color getFillColor() { return _head.getFillColor(); }
public void setFillColor(Color col) { _head.setFillColor(col); }
public Color getLineColor() { return _head.getLineColor(); }
public void setLineColor(Color col) { _head.setLineColor(col); }