Example #1
0
File: VNode.java Project: AKSW/SAIM
  public void addValue1(VCytoprocess vcypro, String name, Double value) {
    if (LOG) VConsole.log("VNode: addValue1");

    if (label1 == null) {

      if (!name.trim().isEmpty()) {
        label1 =
            vcypro.text(name + ": " + value, shape.getX(), shape.getY() + label.getTextHeight());

        setStyle(label, label1);
        value1 = value;
      }
    } else if (!name.trim().isEmpty()) label1.setText(name + ": " + value);

    bringToFront(vcypro.getCanvas());
  }
Example #2
0
File: VNode.java Project: AKSW/SAIM
  public void move(int x, int y) {
    shape.setX(shape.getX() - x);
    shape.setY(shape.getY() - y);

    label.setX(label.getX() - x);
    label.setY(label.getY() - y);

    if (label1 != null) {
      label1.setX(label1.getX() - x);
      label1.setY(label1.getY() - y);
    }

    if (label2 != null) {
      label2.setX(label2.getX() - x);
      label2.setY(label2.getY() - y);
    }
  }
Example #3
0
File: VNode.java Project: AKSW/SAIM
 public int getY() {
   return shape.getY();
 }
Example #4
0
File: VNode.java Project: AKSW/SAIM
 public void updatePosition(int x, int y) {
   shape.setX(x);
   shape.setY(y);
   updatePosition();
 }