|
||||||||||
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.AbstractLabeledBorder
vocleditor.figures.LabelBorder
public class LabelBorder
A labeled border intended to house a Figure with a group of children. The label should serve as a description of the group.
Constructor Summary | |
---|---|
LabelBorder(org.eclipse.swt.graphics.Color fill,
org.eclipse.swt.graphics.Color outside)
Constructs a TitleBarBorder with its label set to the name of this class. |
Method Summary | |
---|---|
java.lang.String |
getTitle()
returns the title string |
boolean |
isOpaque()
Says that this border does not use local coordinates. |
void |
paint(org.eclipse.draw2d.IFigure figure,
org.eclipse.draw2d.Graphics g,
org.eclipse.draw2d.geometry.Insets insets)
Paints this border. |
void |
setBackgroundColor(org.eclipse.swt.graphics.Color color)
Sets the background color of the area within the boundaries of this border. |
void |
setLines(boolean top,
boolean bottom,
boolean left,
boolean right,
boolean rightComplete,
boolean leftComplete)
Sets whichs lines o this border should be drawn |
void |
setTextPos(int textPos)
Sets the position od |
void |
setTitle(java.lang.String s)
sets the title string |
Methods inherited from class org.eclipse.draw2d.AbstractLabeledBorder |
---|
getInsets, getLabel, getPreferredSize, getTextColor, setFont, setLabel, setTextColor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelBorder(org.eclipse.swt.graphics.Color fill, org.eclipse.swt.graphics.Color outside)
fill
- the Color
to fill the border withoutside
- the Color
of the outside borderMethod Detail |
---|
public void setLines(boolean top, boolean bottom, boolean left, boolean right, boolean rightComplete, boolean leftComplete)
top
- draw the top linebottom
- draw the bottom lineleft
- draw the left lineright
- draw the right linerightComplete
- draw the right (or top) line beyond the line at the middle of the title textleftComplete
- draw the left (or bottom) line beyond the line at the middle of the title textpublic void setTextPos(int textPos)
textPos
- public boolean isOpaque()
isOpaque
in interface org.eclipse.draw2d.Border
isOpaque
in class org.eclipse.draw2d.AbstractBorder
AbstractBorder.isOpaque()
public void paint(org.eclipse.draw2d.IFigure figure, org.eclipse.draw2d.Graphics g, org.eclipse.draw2d.geometry.Insets insets)
Border#paint(IFigure, Graphics, Insets)
public void setBackgroundColor(org.eclipse.swt.graphics.Color color)
color
- the background colorpublic java.lang.String getTitle()
public void setTitle(java.lang.String s)
s
- the new title string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |