Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GeometricOutlineProvider for javafx Group
GeometricOutlineProvider for javafx Group [message #1718301] Tue, 22 December 2015 09:25 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 134
Registered: July 2009
Senior Member
I try to use this in my code, to keep up with the changes in GEF4:
adapterMapBinder.addBinding(
    AdapterKey.role(
        FXDefaultFeedbackPartFactory.HOVER_FEEDBACK_GEOMETRY_PROVIDER))
    .to(GeometricOutlineProvider.class);


but my host visual is a Group as its node type.
Group seems not to be supported?


Re: GeometricOutlineProvider for javafx Group [message #1718304 is a reply to message #1718301] Tue, 22 December 2015 09:55 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 235
Registered: July 2009
Location: L√ľnen
Senior Member
That's true. Geometric outlines can only be retrieved for GeometryNode, Connection, or javafx Shapes. You can either use a ShapeOutlineProvider to retrieve the layout bounds of your group, or subclass GeometricOutlineProvider so that it returns a geometry for a child nested within the group.
Re: GeometricOutlineProvider for javafx Group [message #1718308 is a reply to message #1718304] Tue, 22 December 2015 10:32 Go to previous message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 134
Registered: July 2009
Senior Member
yes, ShapeOutlineProvider works.

Another question:
Inspired by the changed in the logo example, I changed as well code for a hover handle example.
Old code:
adapterMapBinder
	.addBinding(AdapterKey.get(FXClickDragTool.CLICK_TOOL_POLICY_KEY, "delete"))
	.to(DeleteOnClickPolicy.class);

New code:
adapterMapBinder
	.addBinding(AdapterKey.role("delete"))
	.to(DeleteOnClickPolicy.class);


But the policy is no more called.
Full code can be seen here, line 122:
https://github.com/keinfarbton/gef4.mvc.tutorial/blob/master/gef4.mvc.tutorial7/src/gef4/mvc/tutorial/GuiceModule.java

Can you help?
Previous Topic:[Zest] UnsupportedPerationException while multi selection
Next Topic:[GEF4] animations api in gef4
Goto Forum:
  


Current Time: Fri Sep 21 06:45:28 GMT 2018

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

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

Back to the top