|
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.internal.figures.LineBorderEx
org.eclipse.gmf.runtime.draw2d.ui.figures.RectangularDropShadowLineBorder
public class RectangularDropShadowLineBorder
| Field Summary |
|---|
| Fields inherited from class org.eclipse.draw2d.AbstractBorder |
|---|
tempRect |
| Constructor Summary | |
|---|---|
RectangularDropShadowLineBorder()
Constructs a DropShadowLineBorder with the foreground color and backgroud color of the figure that it is drawing the border for. |
|
RectangularDropShadowLineBorder(int w)
Constructs a LineBorder of the specified width. |
|
| Method Summary | |
|---|---|
protected RectangularDropShadow |
getDropShadow()
|
Insets |
getInsets(IFigure figure)
Method for determining the inset the border will take up on the shape. |
protected int |
getShadowHeight()
Method for determining the height of the drop shadow border will take up on the shape. |
protected int |
getShadowWidth()
Method for determining the width of the drop shadow border will take up on the shape. |
Insets |
getTransparentInsets(IFigure figure)
|
boolean |
isOpaque()
Is this border Opaque or not. |
void |
paint(IFigure figure,
Graphics g,
Insets insets)
Overridden method for painting the border on the shape. |
void |
paintDropShadowBorder(IFigure figure,
Graphics g,
Insets insets,
Rectangle rBox)
Paint the border of the figure with a dropshadow. |
void |
paintLineBorder(IFigure figure,
Graphics g,
Insets insets)
Method paintLineBorder. |
void |
setShouldDrawDropShadow(boolean bDrawDropShadow)
Sets whether the border will draw a drop shadow with the border edge. |
boolean |
shouldDrawDropShadow()
|
protected boolean |
shouldDrawShadow(IFigure figure)
Method shouldDrawShadow. |
| Methods inherited from class org.eclipse.draw2d.LineBorder |
|---|
getColor, getWidth, setColor, 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 |
| Methods inherited from interface org.eclipse.draw2d.Border |
|---|
getPreferredSize |
| Constructor Detail |
|---|
public RectangularDropShadowLineBorder(int w)
w - Width of inset for borderpublic RectangularDropShadowLineBorder()
| Method Detail |
|---|
protected int getShadowWidth()
protected int getShadowHeight()
public Insets getInsets(IFigure figure)
getInsets in interface BordergetInsets in class LineBorderfigure - Figure that will be inset from the border
protected boolean shouldDrawShadow(IFigure figure)
figure - Figure that the border will be drawn on
public Insets getTransparentInsets(IFigure figure)
getTransparentInsets in interface org.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorderTransparentBorder#getTransparentInsets(IFigure)public boolean isOpaque()
isOpaque in interface BorderisOpaque in class LineBorder
public void paintLineBorder(IFigure figure,
Graphics g,
Insets insets)
figure - Figure that the border will be painted ong - Graphics contextinsets - Insets value that contrains how the border will be painted.
public void paintDropShadowBorder(IFigure figure,
Graphics g,
Insets insets,
Rectangle rBox)
figure - Figure that the border will be painted ong - Graphics contextinsets - Insets value that contrains how the border will be painted.rBox - Rectangle representing figure bounds.
public void paint(IFigure figure,
Graphics g,
Insets insets)
paint in interface Borderpaint in class org.eclipse.gmf.runtime.draw2d.ui.internal.figures.LineBorderExfigure - Figure that the border will be painted ong - Graphics contextinsets - Insets value that contrains how the border will be painted.public boolean shouldDrawDropShadow()
shouldDrawDropShadow in interface DropShadowBorderpublic void setShouldDrawDropShadow(boolean bDrawDropShadow)
DropShadowBorder
setShouldDrawDropShadow in interface DropShadowBorderprotected RectangularDropShadow getDropShadow()
|
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.