[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] text clipping in Label - how to prevent?
|
This I think is a pretty basic question, but for some reason I cannot get
this to work properly.
I'm creating a custom Figure-based class that draws "flags". The flag uses
an GIF image (Label) for the flag pole and another Label with the flag text.
I use a horizontal ToolbarLayout. I have the figure working properly but I
cannot disable text clipping on the label. What am I doing wrong?
Code:
public FlagFigure() {
super();
IFigure flagPole = new Label(Images.getImage("flagpole.gif"));
IFigure bookmarkLabel = new Label("ThisIsALongerLabel");
setLayoutManager(new ToolbarLayout(true));
bookmarkLabel.setBorder(new MarginBorder(15, 2, 0, 0));
add(flagPole);
add(bookmarkLabel);
}
Thanks for any help,
Erik