Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] [GMF - API CHANGE] Bugzilla#121457 Removing org.eclipse.gmf.runtime.diagram.ui.util.DrawConstant


Description:
- The DrawConstant class is basically a duplicate of GEF's PositionConstants class so it is being removed and we recommend using the PositionConstants class instead.

- References in GMF have been changed.  The only public API references were in IBorderItemLocator and BorderItemLocator.

New API Availability:

now

Old API Removal:

Feb 17, 2006


Tracking:        
               
Bugzilla#121457

Clients Taken Care of:      
 
gmf

Other Clients' Action:

Change references to DrawConstant t
o be an int from org.eclipse.draw2d.PositionConstants.

IBorderItemLocator
OLD API NEW API
public DrawConstant getCurrentSide() public int getCurrentSideOfParent()


BorderItemLocator
OLD API NEW API
public BorderItemLocator(IFigure parentFigure, DrawConstant preferredSide) public BorderItemLocator(IFigure parentFigure, DrawConstant preferredSide)
public static DrawConstant findClosestSide(Rectangle proposedLocation, Rectangle parentBorder) public static int findClosestSideOfParent(Rectangle proposedLocation, Rectangle parentBorder)
protected Point getPreferredLocation(DrawConstant side, IFigure borderItem) protected Point getPreferredLocation(int side, IFigure borderItem)
public DrawConstant getPreferredSide() public int getPreferredSideOfParent()
public void setPreferredSide(DrawConstant preferredSide) public void setPreferredSideOfParent(int preferredSide)
public DrawConstant getCurrentSide() public int getCurrentSideOfParent()
public void setCurrentSide(DrawConstant side) public void setCurrentSideOfParent(int side)


Thanks,

Cherie


Cherie Mahoney
Software Developer
GMF Diagram Team
Rational Software, IBM Software Group
(613) 591-7900
cmahoney@xxxxxxxxxx

Back to the top