/** * Sets the x coordinate for this shape. * * @param x * @return T */ @Override public T setX(double x) { getAttributes().setX(x); return cast(); }
/** * Sets the y coordinate for this shape. * * @param y * @return T */ @Override public T setY(double y) { getAttributes().setY(y); return cast(); }
/** * Sets if this shape can be dragged or not. * * @return T */ @Override public T setDraggable(boolean draggable) { getAttributes().setDraggable(draggable); return cast(); }
/** * Sets this shape's offset * * @param offset * @return T */ @Override public T setOffset(Point2D offset) { getAttributes().setOffset(offset); return cast(); }
/** * Sets the alpha color on this shape. * * @param alpha * @return T */ @Override public T setAlpha(double alpha) { getAttributes().setAlpha(alpha); return cast(); }
/** * Sets the type of {@link LineJoin} for this shape. * * @param linejoin * @return T */ public T setLineJoin(LineJoin linejoin) { getAttributes().setLineJoin(linejoin); return cast(); }
/** * Sets the value of Miter Limit for this shape. * * @param limit * @return T */ public T setMiterLimit(double limit) { getAttributes().setMiterLimit(limit); return cast(); }
public final String toDataURL(DataURLType mimetype, boolean includeBackgroundLayer) { if (includeBackgroundLayer) { return getScene().toDataURL(mimetype, getBackgroundLayer()); } else { return getScene().toDataURL(mimetype); } }
/** * Gets this slice's radius * * @return double */ public double getRadius() { return getAttributes().getRadius(); }
/** * Gets the end angle of this slice. * * @param angle in radians * @return this Slice. */ public Slice setEndAngle(double angle) { getAttributes().setEndAngle(angle); return this; }
@Override protected String getColorString(Node<?> node) { return node.getAttributes().getFillColor(); }
/** * Gets the {@link Star} inner radius. * * @return double */ public double getInnerRadius() { return getAttributes().getInnerRadius(); }
/** * Gets the stroke color for this shape. * * @return String color in hex */ public String getStrokeColor() { return getAttributes().getStrokeColor(); }
/** * Gets the type of {@link LineJoin} for this shape. * * @return {@link LineJoin} */ public LineJoin getLineJoin() { return getAttributes().getLineJoin(); }
/** * Sets the {@link Text} String * * @return this Text */ public Text setText(String text) { getAttributes().setText(text); return this; }
/** * Returns the Font Family. * * @return String */ public String getFontFamily() { return getAttributes().getFontFamily(); }
/** * Sets the {@link TextBaseLine} * * @param baseline * @return this Text */ public Text setTextBaseLine(TextBaseLine baseline) { getAttributes().setTextBaseLine(baseline); return this; }