@Override public void setTop(double top) { // TODO Auto-generated method stub super.setTop(top); outport.setTop((getTop() + getBottom()) / 2.0); inport.setTop((getTop() + getBottom()) / 2.0); }
public Store() { super(); setText("STORE"); setComponentDescription("Output files defined in this \"component\"."); setTitle("This is popup for Store"); setValidationText("Source File"); setWidth(100); setHeight(100); outport = new StoreOutPort(); outport.setParent(this); addPort(outport, PortType.OUTPORT); inport = new StoreInPort(); inport.setParent(this); addPort(inport, PortType.INPORT); }
@Override public void setLeft(double left) { super.setLeft(left); outport.setLeft(this.getRight()); inport.setLeft(getLeft() - 16); }