Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java36
1 files changed, 24 insertions, 12 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java
index 19c2f14ce6b..865dbf006a3 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/BorderedScalableImageFigure.java
@@ -1,24 +1,36 @@
+/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ * 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:
+ *
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.common.figure.node;
-import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage;
import org.eclipse.gmf.runtime.draw2d.ui.render.figures.ScalableImageFigure;
/**
- * Scalable Image figure that will be aligned in the middle/center and keep its own ratio.
+ * Scalable Image figure that will be aligned in the middle/center and keep its own ratio.
*
- * It is also used to serve as specific implementation in Papyrus, as debug items can be easily added.
+ * It is also used to serve as specific implementation in Papyrus, as debug items can be easily added.
*/
public class BorderedScalableImageFigure extends ScalableImageFigure {
- public BorderedScalableImageFigure(RenderedImage renderedImage, boolean useDefaultImageSize, boolean useOriginalColors, boolean antiAlias) {
- super(renderedImage, useDefaultImageSize, useOriginalColors, antiAlias);
- //setBorder(new LineBorder(ColorConstants.red, 2));
- setAlignment(PositionConstants.CENTER|PositionConstants.MIDDLE);
- setMaintainAspectRatio(true);
- //setBackgroundColor(ColorConstants.green);
- //setForegroundColor(ColorConstants.red);
- }
-
+ public BorderedScalableImageFigure(RenderedImage renderedImage, boolean useDefaultImageSize, boolean useOriginalColors, boolean antiAlias) {
+ super(renderedImage, useDefaultImageSize, useOriginalColors, antiAlias);
+ //setBorder(new LineBorder(ColorConstants.red, 2));
+ setAlignment(PositionConstants.CENTER | PositionConstants.MIDDLE);
+ setMaintainAspectRatio(true);
+ //setBackgroundColor(ColorConstants.green);
+ //setForegroundColor(ColorConstants.red);
}
+
+}

Back to the top