Change mouse cursor when in "Highlight Connected Areas" mode to avoid

confusion
This commit is contained in:
Branislav Stojkovic
2018-12-18 10:20:40 +01:00
parent f94691bb0e
commit 680397b44f
5 changed files with 20 additions and 2 deletions
@@ -200,6 +200,8 @@ public class Presenter implements IPlugInPort {
@Override
public Cursor getCursorAt(Point point) {
// Only change the cursor if we're not making a new component.
if (ConfigurationManager.getInstance().readBoolean(HIGHLIGHT_CONTINUITY_AREA, false))
return Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR);
if (instantiationManager.getComponentTypeSlot() == null) {
// Scale point to remove zoom factor.
Point2D scaledPoint = scalePoint(point);