1 /*******************************************************************************
\r
2 * Copyright (c) 2006 Sybase, Inc. and others.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * Sybase, Inc. - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.eclipse.jst.pagedesigner.css2.provider;
\r
14 import org.eclipse.draw2d.Graphics;
\r
15 import org.eclipse.draw2d.geometry.Rectangle;
\r
16 import org.eclipse.jst.pagedesigner.css2.ICSSStyle;
\r
21 public interface ICSSWidgetProvider {
\r
27 public ICSSStyle getCSSStyle();
\r
30 * @return true if is handling border
\r
32 public boolean isHandlingBorder();
\r
35 * whether the parameter and return value includes border depends on the
\r
39 * -1 means no suggested value
\r
41 * -1 means no suggested value
\r
42 * @return the dimension info
\r
44 public DimensionInfo getPreferredDimension(int width, int height);
\r
47 * if isHandlingBorder return false, then "rect" will be the rect without
\r
48 * border, and this method should not paint border.
\r
50 * If isHandlingBorder returns true, then "rect" include border, and this
\r
51 * method should also paint its own border.
\r
55 public void paintFigure(Graphics g, Rectangle rect);
\r
58 * @return true if is inline
\r
60 public boolean isInline();
\r