org.jupe.editors.classdiagram.graphics.nodes.atomics
Class UnderlineBorder
java.lang.Object
org.eclipse.draw2d.AbstractBorder
org.eclipse.draw2d.MarginBorder
org.jupe.editors.classdiagram.graphics.nodes.atomics.UnderlineBorder
- All Implemented Interfaces:
- org.eclipse.draw2d.Border
public class UnderlineBorder
- extends org.eclipse.draw2d.MarginBorder
Border that only consists of a line. Used to create a seperating line under
the label in a figure.
- Author:
- Michael Pradel
Constructor Summary |
UnderlineBorder(org.eclipse.draw2d.Label label)
Creates a new UnderlineBorder using a the constructor of MarginBorder |
Method Summary |
void |
paint(org.eclipse.draw2d.IFigure figure,
org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Insets insets)
|
Methods inherited from class org.eclipse.draw2d.MarginBorder |
getInsets |
Methods inherited from class org.eclipse.draw2d.AbstractBorder |
getPreferredSize, isOpaque |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnderlineBorder
public UnderlineBorder(org.eclipse.draw2d.Label label)
- Creates a new UnderlineBorder using a the constructor of MarginBorder
- Parameters:
label
- the label to be added to this figure;- See Also:
MarginBorder
paint
public void paint(org.eclipse.draw2d.IFigure figure,
org.eclipse.draw2d.Graphics graphics,
org.eclipse.draw2d.geometry.Insets insets)
- Specified by:
paint
in interface org.eclipse.draw2d.Border
- Overrides:
paint
in class org.eclipse.draw2d.MarginBorder