Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9bd2d289b2d4df88cffda3fbfdf51e95c00d5664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*******************************************************************************
 * Copyright (c) 2012 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
 *******************************************************************************/
package org.eclipse.papyrus.uml.diagram.timing.custom.figures;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.geometry.Rectangle;

public class TimeRulerFigure extends InvisibleRectangleFigure {

	@Override
	protected void outlineShape(final Graphics graphics) {
		final Rectangle bounds = getBounds();
		graphics.setForegroundColor(ColorConstants.gray);
		graphics.drawLine(bounds.getTopLeft(), bounds.getTopRight());
	}
}

Back to the top