示例#1
0
  public void readObject(DataInput in) throws IOException {
    super.readObject(in);

    ((Node) node).setBounds(control.readBounds(in));

    ((Node) node).setPickable(in.readBoolean());
    ((Node) node).setCollidable(in.readBoolean());
    ((Node) node).setBoundsAutoCompute(in.readBoolean());
  }
示例#2
0
  public void writeObject(DataOutput out) throws IOException {

    super.writeObject(out);

    control.writeBounds(out, ((Node) node).getBounds());

    out.writeBoolean(((Node) node).getPickable());
    out.writeBoolean(((Node) node).getCollidable());
    out.writeBoolean(((Node) node).getBoundsAutoCompute());
  }