Right-justified layout [message #222457] |
Tue, 05 September 2006 20:21 |
Eclipse User |
|
|
|
Originally posted by: jricker.progess.com
I want to layout the objects in the compartment as a row right-justified. I
keep getting a stack of objects. What gives?
public IFigure createFigure() {
ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
..createFigure();
// ToolbarLayout layout = new ToolbarLayout(true);
// layout.setVertical(false);
// layout.setMinorAlignment(ToolbarLayout.ALIGN_BOTTOMRIGHT);
FlowLayout layout = new FlowLayout(true);
layout.setMajorAlignment(FlowLayout.ALIGN_RIGHTBOTTOM);
result.setLayoutManager(layout);
result.setTitleVisibility(false);
return result;
}
|
|
|
|
Re: Right-justified layout [message #222477 is a reply to message #222464] |
Wed, 06 September 2006 12:32 |
Eclipse User |
|
|
|
Originally posted by: jricker.progess.com
That's fine. I will try that, but it seems a lot for a simple procedure. I
want the items layed out right justified as opposed to left-justified.
Shouldn't a simpler layout do thi? Is the FlowLayout supposed to behave as I
expect? Is this a bug?
"Mateu Y
|
|
|
Re: Right-justified layout [message #222496 is a reply to message #222457] |
Wed, 06 September 2006 16:44 |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
Try asking on the GMF newsgroup since you are using GMF figures and layouts.
If you were using just GEF, you would create a ToolbarLayout, and call
setMinorAlignment(ALIGN_BOTTOMRIGHT)
"Ricker" <jricker@progess.com> wrote in message
news:edkm87$7of$1@utils.eclipse.org...
>I want to layout the objects in the compartment as a row right-justified. I
>keep getting a stack of objects. What gives?
>
> public IFigure createFigure() {
>
> ResizableCompartmentFigure result = (ResizableCompartmentFigure) super
>
> .createFigure();
>
>
> // ToolbarLayout layout = new ToolbarLayout(true);
>
> // layout.setVertical(false);
>
> // layout.setMinorAlignment(ToolbarLayout.ALIGN_BOTTOMRIGHT);
>
> FlowLayout layout = new FlowLayout(true);
>
> layout.setMajorAlignment(FlowLayout.ALIGN_RIGHTBOTTOM);
>
>
> result.setLayoutManager(layout);
>
> result.setTitleVisibility(false);
>
> return result;
>
> }
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06403 seconds