Class Cross

  • All Implemented Interfaces:
    CenteredSilhouette, Silhouette

    public class Cross
    extends AbstractCenteredSilhouette
    Cross

    Defines a cross shape that may have round corners.

    Constraints

    • 0 <= roundness <= 1
    • width <= radius* 2

    Style Classes

    • silhouette
    • silhouette-cross
    Author:
    Andres Almiray
    • Constructor Detail

      • Cross

        public Cross()
      • Cross

        public Cross​(double cx,
                     double cy,
                     double radius,
                     double width)
      • Cross

        public Cross​(double cx,
                     double cy,
                     double radius,
                     double width,
                     double roundness)
    • Method Detail

      • getRadius

        public double getRadius()
        Gets the value of the property radius.
        Property description:
      • setRadius

        public void setRadius​(double radius)
        Sets the value of the property radius.
        Property description:
      • getRoundness

        public double getRoundness()
        Gets the value of the property roundness.
        Property description:
      • setRoundness

        public void setRoundness​(double roundness)
        Sets the value of the property roundness.
        Property description:
      • getWidth

        public double getWidth()
        Gets the value of the property width.
        Property description:
      • setWidth

        public void setWidth​(double width)
        Sets the value of the property width.
        Property description:
      • validateRoundness

        protected double validateRoundness​(double roundness)
      • validateWidth

        protected double validateWidth​(double width,
                                       double radius)