@Override
    public boolean equals(Object object) {
        if (object == null || !(object instanceof PComponent))
            return false;
        PComponent comp = (PComponent) object;
        return comp.getX() == x &&
               comp.getY() == y &&
               comp.getWidth() == width &&
               comp.getHeight() == height &&
               comp.getClass().getSimpleName().equals(getClass().getSimpleName());
    }