Class PicDiagnosticTriangle

    • Field Detail

      • lenBaseline

        protected float lenBaseline
        Length of the triangle baseline.
      • h

        protected float h
        Height of the triangle.
    • Constructor Detail

      • PicDiagnosticTriangle

        public PicDiagnosticTriangle​(float maxArea,
                                     float defaultAreaAbsentMetric,
                                     float defaultAreaZeroMetric,
                                     java.util.Optional<java.lang.Float> metricValue)
    • Method Detail

      • initTriangle

        public void initTriangle()
      • getColor

        public java.lang.String getColor()
        Description copied from class: PicDiagnostic
        The color for this triangle if the metric is present and non-zero.
        Specified by:
        getColor in class PicDiagnostic
        Returns:
        Color string
      • add2SVG

        public void add2SVG​(com.kitfox.svg.SVGElement svgEl)
                     throws com.kitfox.svg.SVGElementException
        Specified by:
        add2SVG in class InOutInLayoutableElement
        Throws:
        com.kitfox.svg.SVGElementException