Ejemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (obj instanceof IcyColorSpaceEvent) {
      final IcyColorSpaceEvent e = (IcyColorSpaceEvent) obj;

      return (colorSpace == e.getColorSpace());
    }

    return super.equals(obj);
  }
Ejemplo n.º 2
0
  @Override
  public boolean collapse(CollapsibleEvent event) {
    if (equals(event)) {
      final IcyColorSpaceEvent e = (IcyColorSpaceEvent) event;

      // set all component
      if (e.getComponent() != component) component = -1;

      return true;
    }

    return false;
  }