|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.LineBorder
org.eclipse.gmf.runtime.draw2d.ui.figures.RoundedRectangleBorder
public class RoundedRectangleBorder
Extends LineBorder to replace rectangular border with
rounded rectangle.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.draw2d.AbstractBorder |
|---|
tempRect |
| Constructor Summary | |
|---|---|
RoundedRectangleBorder(int arcWidth,
int arcHeight)
Creates an instance of this class with the given arc width and arc height in pixels |
|
| Method Summary | |
|---|---|
int |
getArcHeight()
Gets the arc height. |
int |
getArcWidth()
Gets the arc width. |
Insets |
getInsets(IFigure figure)
Insets are defined by the line width. |
void |
paint(IFigure figure,
Graphics graphics,
Insets insets)
Paints rounded rectangular border taking into account arcWidth, arcHeight, line width and line style |
void |
setArcHeight(int arcHeight)
Sets the arc height |
void |
setArcWidth(int arcWidth)
Sets the arc width |
| Methods inherited from class org.eclipse.draw2d.LineBorder |
|---|
getColor, getStyle, getWidth, isOpaque, setColor, setStyle, setWidth |
| Methods inherited from class org.eclipse.draw2d.AbstractBorder |
|---|
getPaintRectangle, getPreferredSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoundedRectangleBorder(int arcWidth,
int arcHeight)
arcWidth - The width of the corner arcarcHeight - The height of the corner arc| Method Detail |
|---|
public Insets getInsets(IFigure figure)
getInsets in interface BordergetInsets in class LineBorderLineBorder.getInsets(org.eclipse.draw2d.IFigure)public int getArcWidth()
public void setArcWidth(int arcWidth)
arcWidth - public int getArcHeight()
public void setArcHeight(int arcHeight)
arcHeight -
public void paint(IFigure figure,
Graphics graphics,
Insets insets)
paint in interface Borderpaint in class LineBorderLineBorder.paint(org.eclipse.draw2d.IFigure, org.eclipse.draw2d.Graphics, org.eclipse.draw2d.geometry.Insets)
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.