Difference between revisions of "GEF/New and Noteworthy/3.6"

From Eclipsepedia

Jump to: navigation, search
Line 1: Line 1:
 
= New and Noteworthy for Previous Versions =
 
= New and Noteworthy for Previous Versions =
* [http://www.eclipse.org/gef/highlights30.html New and Noteworthy for 3.0]
+
* [http://www.eclipse.org/gef/highlights30.html New and Noteworthy in 3.0]
* [http://www.eclipse.org/gef/newandnoteworthy/gef-news-35m4.html New and Noteworthy for 3.5 (M4)]
+
* [http://www.eclipse.org/gef/newandnoteworthy/gef-news-35m4.html New and Noteworthy in 3.5 (M4)]
  
 
= New and Noteworthy in GEF 3.6 =
 
= New and Noteworthy in GEF 3.6 =

Revision as of 18:24, 8 November 2010

Contents

New and Noteworthy for Previous Versions

New and Noteworthy in GEF 3.6

Draw2d

Puristic Scrollbar

Draw2d now provides a puristic scrollbar as alternative to the classic scrollbar.
Scrollbar.png PuristicScrollbar.jpg

Ghost Image Figure

Semi-transparent ghost image figures now be easily created for arbitrary Draw2d figures, e.g. to render feedback.
GhostImageFigure.png

Clipping Strategy

Draw2d figures can now be parameterized with a clipping strategy (IClippingStrategy) to establish custom clipping behavior for their children. If no clipping strategy is provided, the default clipping behavior prior to 3.6 is applied, i.e. child figures are clipped at their parent's client area.

As this default clipping behavior leads to quite poor results in case connections are drawn from nested viewports ...
DefaultClippingStrategy.jpg
... a clipping strategy implementation (ViewportAwareConnectionLayerClippingStrategy) to deal with this is now available, being the default clipping strategy of the logic editor's ConnectionLayer.
ViewportAwareClippingStrategy.jpg

GEF

Scrollable Selection Feedback

GEF now offers a special SelectionEditPolicy to render the hidden contents of a viewport by means of semi-transparent ghost images for the nested children and related connections. That is, in case the ScrollableFeedbackSelectionPolicy is registered at a host edit part, the hidden contents can now be easily made visible by a primary selection of the host figure.
ScrollableSelectionFeedback.png