blob: 75b34e236899c2c1a117b4da6f93e0f0b1155ba6 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2005, 2019 SAP SE
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* SAP SE - initial API, implementation and documentation
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.ui.internal.fixed;
import org.eclipse.draw2d.FreeformLayer;
import org.eclipse.draw2d.ScalableLayeredPane;
import org.eclipse.gef.editparts.ScalableRootEditPart;
/**
* The Class FixedScalableRootEditPart.
*
* @noinstantiate This class is not intended to be instantiated by clients.
* @noextend This class is not intended to be subclassed by clients.
*/
public class FixedScalableRootEditPart extends ScalableRootEditPart {
/**
* Creates a scalable layered pane and the layers that should be scaled.
*
* @return a new <code>ScalableLayeredPane</code> containing the scalable
* layers
*/
@Override
protected ScalableLayeredPane createScaledLayers() {
ScalableLayeredPane layers = new ScalableLayeredPane();
layers.add(createGridLayer(), GRID_LAYER);
layers.add(getPrintableLayers(), PRINTABLE_LAYERS);
layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER);
return layers;
}
/**
* The Class FeedbackLayer.
*/
class FeedbackLayer extends FreeformLayer {
/**
* Instantiates a new feedback layer.
*/
FeedbackLayer() {
setEnabled(false);
}
}
}