Skip to main content



      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 11:03 Go to next message
Eclipse UserFriend
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 11:23 Go to previous messageGo to next message
Eclipse UserFriend
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 11: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: Sat Jul 12 10:16:26 EDT 2025

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

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

Back to the top