|
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)
Method getTransparentInsets. |
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 Border
getInsets
in class LineBorder
figure
- 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)
org.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorder
getTransparentInsets
in interface org.eclipse.gmf.runtime.draw2d.ui.internal.figures.TransparentBorder
figure
- IFigure to calculate the insets of
TransparentBorder#getTransparentInsets(IFigure)
public boolean isOpaque()
isOpaque
in interface Border
isOpaque
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 Border
paint
in class org.eclipse.gmf.runtime.draw2d.ui.internal.figures.LineBorderEx
figure
- 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 DropShadowBorder
public void setShouldDrawDropShadow(boolean bDrawDropShadow)
DropShadowBorder
setShouldDrawDropShadow
in interface DropShadowBorder
protected 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.