Class PicDiagnostic
- java.lang.Object
-
- org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
-
- org.processmining.trafficlightcc.visualization.trafficlight.PicDiagnostic
-
- Direct Known Subclasses:
PicAdditional,PicDiagnosticBlockTriangle,PicDiagnosticCircle,PicDiagnosticTriangle,PicMissing
public abstract class PicDiagnostic extends InOutInLayoutableElement
-
-
Field Summary
Fields Modifier and Type Field Description protected floatdefaultAreaAbsentMetricDefault factor for the pic's area if there is no metric value.protected floatdefaultAreaZeroMetricDefault factor for the pic's area if the metric is zero.protected floatmaxAreaArea unit metric.protected java.util.Optional<java.lang.Float>metricValueThe associated ("normalized" metric value) Normalization is assumed to be one for one occurrence per trace.-
Fields inherited from class org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
fixDim, layoutInfo
-
-
Constructor Summary
Constructors Constructor Description PicDiagnostic(float maxArea, float defaultAreaAbsentMetric, float defaultAreaZeroMetric, java.util.Optional<java.lang.Float> metricValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidapplyColoring(com.kitfox.svg.SVGElement svgEl)protected voidapplyIntraPicShift(com.kitfox.svg.SVGElement root, com.kitfox.svg.SVGElement pic)protected voidapplyIntraPicShift(com.kitfox.svg.SVGElement root, com.kitfox.svg.SVGElement pic, com.kitfox.svg.Group addPicTransform)abstract java.lang.StringgetColor()The color for this triangle if the metric is present and non-zero.java.lang.StringgetColorPlot()floatgetFillOpacity()protected floatgetPicArea()-
Methods inherited from class org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
add2SVG, finalPositionUpdate, getLayoutInfo, initInternalLayout, processExternalDimensions, writeSVG
-
-
-
-
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.
-
-
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
-
-