Color strokeColor2; DrawingEditor e = getEditor(); if (e.getTool().supportsHandleInteraction()) { if (isHoverHandle) { stroke1 = (Stroke) e.getHandleAttribute(HandleAttributeKeys.BEZIER_PATH_STROKE_1_HOVER);
Color strokeColor2; if (getEditor().getTool().supportsHandleInteraction()) { stroke1 = (Stroke) getEditor().getHandleAttribute(stroke1Enabled); strokeColor1 = (Color) getEditor().getHandleAttribute(strokeColor1Enabled);
Color strokeColor2; if (getEditor().getTool().supportsHandleInteraction()) { stroke1 = (Stroke) getEditor().getHandleAttribute(stroke1Enabled); strokeColor1 = (Color) getEditor().getHandleAttribute(strokeColor1Enabled);
Stroke stroke2; Color strokeColor2; if (getEditor().getTool().supportsHandleInteraction()) { if (isHoverHandle) { stroke1 = (Stroke) getEditor().getHandleAttribute(HandleAttributeKeys.BEZIER_PATH_STROKE_1_HOVER);
Stroke stroke2; Color strokeColor2; if (getEditor().getTool().supportsHandleInteraction()) { handleFillColor = (Color) getEditor().getHandleAttribute(HandleAttributeKeys.BEZIER_CONTROL_POINT_HANDLE_FILL_COLOR); handleStrokeColor = (Color) getEditor().getHandleAttribute(HandleAttributeKeys.BEZIER_CONTROL_POINT_HANDLE_STROKE_COLOR);
/** * Draws this handle. */ @Override public void draw(Graphics2D g) { if (getEditor().getTool().supportsHandleInteraction()) { drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_STROKE_COLOR)); } else { drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_FILL_COLOR_DISABLED), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_STROKE_COLOR_DISABLED)); } }
/** * Draws this handle. */ @Override public void draw(Graphics2D g) { if (getEditor().getTool().supportsHandleInteraction()) { drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_STROKE_COLOR)); } else { drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_FILL_COLOR_DISABLED), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ATTRIBUTE_HANDLE_STROKE_COLOR_DISABLED)); } }
/** * Draws this handle. */ @Override public void draw(Graphics2D g) { if (getEditor().getTool().supportsHandleInteraction()) { drawCircle(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ROTATE_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ROTATE_HANDLE_STROKE_COLOR)); } else { drawCircle(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ROTATE_HANDLE_FILL_COLOR_DISABLED), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.ROTATE_HANDLE_STROKE_COLOR_DISABLED)); } }
/** * Draws this handle. */ @Override public void draw(Graphics2D g) { if (getEditor().getTool().supportsHandleInteraction()) { //drawArc(g); drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.TRANSFORM_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.TRANSFORM_HANDLE_STROKE_COLOR)); } else { drawDiamond(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.TRANSFORM_HANDLE_FILL_COLOR_DISABLED), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.TRANSFORM_HANDLE_STROKE_COLOR_DISABLED)); } }
/** * Draws this handle. * <p> * If the figure is transformable, the handle is drawn as a filled rectangle. * If the figure is not transformable, the handle is drawn as an unfilled * rectangle. */ @Override public void draw(Graphics2D g) { if (getEditor().getTool().supportsHandleInteraction()) { if (getOwner().isTransformable()) { drawRectangle(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.RESIZE_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.RESIZE_HANDLE_STROKE_COLOR)); } else { drawRectangle(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.NULL_HANDLE_FILL_COLOR), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.NULL_HANDLE_STROKE_COLOR)); } } else { drawRectangle(g, (Color) getEditor().getHandleAttribute(HandleAttributeKeys.HANDLE_FILL_COLOR_DISABLED), (Color) getEditor().getHandleAttribute(HandleAttributeKeys.HANDLE_STROKE_COLOR_DISABLED)); } }
Color fillColor; Color strokeColor; if (getEditor().getTool().supportsHandleInteraction()) { fillColor = (Color) getEditor().getHandleAttribute(HandleAttributeKeys.BEZIER_NODE_HANDLE_FILL_COLOR); strokeColor = (Color) getEditor().getHandleAttribute(HandleAttributeKeys.BEZIER_NODE_HANDLE_STROKE_COLOR);