protected IHandlePart<Node, ? extends Node> createHoverSegmentHandlePart( final IVisualPart<Node, ? extends Node> target, Provider<BezierCurve[]> hoverHandlesSegmentsInSceneProvider, int segmentCount, int segmentIndex, Map<Object, Object> contextMap) { FXCircleSegmentHandlePart part = injector.getInstance(FXCircleSegmentHandlePart.class); part.setSegmentsProvider(hoverHandlesSegmentsInSceneProvider); part.setSegmentIndex(segmentIndex); part.setSegmentParameter(0); return part; }
// TODO: if we pass in context behavior and context map to the other // creation methods, we should also do this here. // TODO: remove the segment count parameter here protected IHandlePart<Node, ? extends Node> createCurveSelectionHandlePart( final IVisualPart<Node, ? extends Node> targetPart, Provider<BezierCurve[]> segmentsProvider, int segmentCount, int segmentIndex, double segmentParameter) { FXCircleSegmentHandlePart part = injector.getInstance(FXCircleSegmentHandlePart.class); part.setSegmentsProvider(segmentsProvider); part.setSegmentIndex(segmentIndex); part.setSegmentParameter(segmentParameter); return part; }
/** * Creates an {@link IHandlePart} for the specified vertex of the {@link IGeometry} provided by * the given <i>handleGeometryProvider</i>. * * @param target {@link IVisualPart} for which a selection handle is created. * @param segmentsProvider Provides the {@link BezierCurve}s from which the handle can retrieve * its location. * @param segmentCount Number of segments. * @param segmentIndex Index of the segment where the handle is located. * @param contextMap Stores context information as an {@link IBehavior} is stateless. * @return {@link IHandlePart} for the specified vertex of the {@link IGeometry} provided by the * <i>handleGeometryProvider</i> */ protected IHandlePart<Node, ? extends Node> createSelectionSegmentHandlePart( final IVisualPart<Node, ? extends Node> target, Provider<BezierCurve[]> segmentsProvider, int segmentCount, int segmentIndex, Map<Object, Object> contextMap) { FXCircleSegmentHandlePart part = injector.getInstance(FXCircleSegmentHandlePart.class); part.setSegmentsProvider(segmentsProvider); part.setSegmentIndex(segmentIndex); part.setSegmentParameter(0); injector.injectMembers(part); return part; }