Skip to main content


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 20:21 Go to next message
Eclipse UserFriend
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 07:36 Go to previous messageGo to next message
Eclipse UserFriend
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 12:32 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Apr 19 07:05:46 GMT 2024

Powered by FUDForum. Page generated in 0.02251 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top