/*******************************************************************************
* Copyright (c) 2012, 2013 Original authors and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Original authors and others - initial API and implementation
******************************************************************************/
package org.eclipse.nebula.widgets.nattable.layer.event;
import java.util.Collection;
import org.eclipse.nebula.widgets.nattable.layer.ILayer;
import org.eclipse.swt.graphics.Rectangle;
/**
* An event which indicates a visible change to one or more cells in the layer.
* A visible change simply indicates that one or more cells should be redrawn.
* It does not imply a structural change to the layer. This means that cached
* structure does not need to be invalidated due to visible change events.
*/
public interface IVisualChangeEvent extends ILayerEvent {
/**
* @return the layer that the visible change event is originating from.
*/
public ILayer getLayer();
/**
* @return the position rectangles that have changed and need to be redrawn.
* If no rectangles are returned, then the receiver should assume
* that the entire layer is changed and will need to be redrawn.
*/
public Collection<Rectangle> getChangedPositionRectangles();
}