/** * Gets the {@link DashArray}. If this is a solid line, the dash array is empty. * * @return {@link DashArray} if this line is not dashed, there will be no elements in the {@link DashArray} */ public DashArray getDashArray() { return getAttributes().getDashArray(); }
/** * Gets the x coordinate for this shape. * * @return double */ @Override public double getX() { return getAttributes().getX(); }
/** * Returns true if this shape can be dragged; false otherwise. * * @return boolean */ @Override public boolean isDraggable() { return getAttributes().isDraggable(); }
/** * Gets this shape's offset as a {@link Point2D} * * @return Point2D */ @Override public Point2D getOffset() { return getAttributes().getOffset(); }
/** * Gets the {@link DragBounds} for this shape. * * @return DragBounds */ @Override public DragBounds getDragBounds() { return getAttributes().getDragBounds(); }
/** * Gets the type of Miter Limit for this shape. * * @return double */ public double getMiterLimit() { return getAttributes().getMiterLimit(); }
/** * Gets this shape's {@link DragConstraint} * * @return DragConstraint */ @Override public DragConstraint getDragConstraint() { return getAttributes().getDragConstraint(); }
/** * 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(); }
public T setFillShapeForSelection(boolean selection) { getAttributes().setFillShapeForSelection(selection); return cast(); }
/** * Sets the gradient fill. * * @param gradient a {@link PatternGradient} * @return T */ public T setFillGradient(PatternGradient gradient) { getAttributes().setFillGradient(gradient); return cast(); }
/** * 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 scale, starting at the given point. * * @param scale * @return T */ @Override public T setScale(Point2D scale) { getAttributes().setScale(scale); 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(); }
/** * Sets this group's rotation, in degrees. * * @param degrees * @return T */ @Override public T setRotationDegrees(double degrees) { getAttributes().setRotationDegrees(degrees); return cast(); }