Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Right-justified layout
Right-justified layout [message #222457] Tue, 05 September 2006 16:21 Go to next message
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 #222464 is a reply to message #222457] Wed, 06 September 2006 03:36 Go to previous messageGo to next message
Eclipse User
Originally posted by: mateu.yabar.justinmind.com

You can use a grid Layout (crete a row with two cells a first one empty and
with grap horizontal and put all the data in the second cell). The grid
Layout can be found at https://bugs.eclipse.org/bugs/show_bug.cgi?id=71684

Mateu Y
Re: Right-justified layout [message #222477 is a reply to message #222464] Wed, 06 September 2006 08:32 Go to previous messageGo to next message
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 12:44 Go to previous message
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;
>
> }
>
>
Previous Topic:how can I use a dynamic EMF model as components in PaletteDrawer?
Next Topic:Connection label translation problem
Goto Forum:
  


Current Time: Fri Aug 29 12:20:02 EDT 2014

Powered by FUDForum. Page generated in 0.02599 seconds