Class PicDiagnostic

    • Field Detail

      • metricValue

        protected java.util.Optional<java.lang.Float> metricValue
        The associated ("normalized" metric value) Normalization is assumed to be one for one occurrence per trace. Can be greater than one if element is used more frequently.
      • maxArea

        protected float maxArea
        Area unit metric.
      • defaultAreaAbsentMetric

        protected float defaultAreaAbsentMetric
        Default factor for the pic's area if there is no metric value.
      • defaultAreaZeroMetric

        protected float defaultAreaZeroMetric
        Default factor for the pic's area if the metric is zero.
    • Constructor Detail

      • PicDiagnostic

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

      • getColorPlot

        public java.lang.String getColorPlot()
      • getFillOpacity

        public float getFillOpacity()
      • getColor

        public abstract java.lang.String getColor()
        The color for this triangle if the metric is present and non-zero.
        Returns:
        Color string
      • applyIntraPicShift

        protected void applyIntraPicShift​(com.kitfox.svg.SVGElement root,
                                          com.kitfox.svg.SVGElement pic)
                                   throws com.kitfox.svg.SVGElementException
        Throws:
        com.kitfox.svg.SVGElementException
      • applyIntraPicShift

        protected void applyIntraPicShift​(com.kitfox.svg.SVGElement root,
                                          com.kitfox.svg.SVGElement pic,
                                          com.kitfox.svg.Group addPicTransform)
                                   throws com.kitfox.svg.SVGElementException
        Throws:
        com.kitfox.svg.SVGElementException
      • getPicArea

        protected float getPicArea()
      • applyColoring

        protected void applyColoring​(com.kitfox.svg.SVGElement svgEl)
                              throws com.kitfox.svg.SVGElementException
        Throws:
        com.kitfox.svg.SVGElementException