// Event handling
@Override
public void handleLayerEvent(ILayerEvent event) {
if (event instanceof IStructuralChangeEvent) {
IStructuralChangeEvent structuralChangeEvent = (IStructuralChangeEvent) event;
if (structuralChangeEvent.isHorizontalStructureChanged()) {
invalidateHorizontalStructure();
// saved origin correction for multi viewports
if (this.viewportOff
&& (getMaxColumnPosition() >= 0 || getMinColumnPosition() >= 0)
&& event instanceof ColumnResizeEvent) {
correctSavedOriginX();
}
}
if (structuralChangeEvent.isVerticalStructureChanged()) {
invalidateVerticalStructure();
// saved origin correction for multi viewports
if (this.viewportOff
&& (getMaxRowPosition() >= 0 || getMinRowPosition() >= 0)