Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ResizableEditPolicy, what integer parameter do I use for setResizeDirections()?
ResizableEditPolicy, what integer parameter do I use for setResizeDirections()? [message #147722] Mon, 16 August 2004 15:03 Go to next message
Sean Neeley is currently offline Sean NeeleyFriend
Messages: 22
Registered: July 2009
Junior Member
I might be blind, but I can't find anywhere in the API docs where it
says what integer value can be passed to
ResizableEditPolicy.setResizeDirections(). I want to make my figure
resizable only in the horizontal directions. What value would I pass to
this method?

Thanks.
Sean
Re: ResizableEditPolicy, what integer parameter do I use for setResizeDirections()? [message #147730 is a reply to message #147722] Mon, 16 August 2004 15:23 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
PositionConstants.NORTH, SOUTH, EAST, WEST.

You should load the GEF/Draw2d code as well as the logic example. When not
sure about something like this, it might help to look at the code or how
other clients are using it.

"Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
news:cfqi7u$4it$1@eclipse.org...
> I might be blind, but I can't find anywhere in the API docs where it
> says what integer value can be passed to
> ResizableEditPolicy.setResizeDirections(). I want to make my figure
> resizable only in the horizontal directions. What value would I pass to
> this method?
>
> Thanks.
> Sean
Re: ResizableEditPolicy, what integer parameter do I use for setResizeDirections()? [message #147752 is a reply to message #147722] Mon, 16 August 2004 15:59 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

There is a clue in ChangeBoundsRequest. I've updated the JavaDoc.
/**
* Returns the direction the figure is being resized. Possible values are
* <ul>
* <li>{@link org.eclipse.draw2d.PositionConstants#EAST}
* <li>{@link org.eclipse.draw2d.PositionConstants#WEST}
* <li>{@link org.eclipse.draw2d.PositionConstants#NORTH}
* <li>{@link org.eclipse.draw2d.PositionConstants#SOUTH}
* <li>{@link org.eclipse.draw2d.PositionConstants#NORTH_EAST}
* <li>{@link org.eclipse.draw2d.PositionConstants#NORTH_WEST}
* <li>{@link org.eclipse.draw2d.PositionConstants#SOUTH_EAST}
* <li>{@link org.eclipse.draw2d.PositionConstants#SOUTH_WEST}
* </ul>
*
* @return the resize direction
*/
public int getResizeDirection() {
return resizeDirection;
}


"Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
news:cfqi7u$4it$1@eclipse.org...
> I might be blind, but I can't find anywhere in the API docs where it
> says what integer value can be passed to
> ResizableEditPolicy.setResizeDirections(). I want to make my figure
> resizable only in the horizontal directions. What value would I pass to
> this method?
>
> Thanks.
> Sean
Previous Topic:Editor Close Event
Next Topic:How to print the editor output in an image file
Goto Forum:
  


Current Time: Tue Apr 16 12:02:15 GMT 2024

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

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

Back to the top