|
Re: Marquee Tool Help [message #1708539 is a reply to message #1708239] |
Thu, 17 September 2015 11:00 |
|
I do not know how Graphiti handles the registration of tools, but in GEF the list of tools (and the current active tool) is hold by the EditDomain. A palette entry usually sets the active tool in the domain. You will have to find a way (within Graphiti) to change the palette entry so that it creates and sets a customized MarqueeSelectionTool, where you could overwrite handleButtonDown(int) to check whether a marquee drag is to be started or not.
|
|
|
|
Re: Marquee Tool Help [message #1723443 is a reply to message #1723363] |
Mon, 15 February 2016 17:42 |
|
No, there is no direct tutorial related to MarqueeTool, but the code is pretty straight forward. The marquee tool is created through a MarqueeToolEntry. The palette entries in turn are created through a factory. You can e.g. take a look at the FlowExample, where the FlowEditorPaletteFactory is the respective implementation.
In either case, before you dig into the details, I recommend that you consult our reference documentation, so that concepts like domain, tools, etc. (and the related responsibilities) are clear.
|
|
|
Powered by
FUDForum. Page generated in 0.03276 seconds