Class TrafficLightPic
- java.lang.Object
-
- org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
-
- org.processmining.trafficlightcc.visualization.trafficlight.TrafficLightPic
-
public class TrafficLightPic extends InOutInLayoutableElement
-
-
Field Summary
Fields Modifier and Type Field Description protected floatdefaultAreaAbsentMetricDefault factor for the pic's area if there is no metric value.-
Fields inherited from class org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
fixDim, layoutInfo
-
-
Constructor Summary
Constructors Constructor Description TrafficLightPic(TLCElementDiagnostic elDiag, float maxArea, float defaultAreaAbsentMetric, float defaultAreaZeroMetric, float innerSep, float elementPadding, TLMetricNormalization normalizationMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd2SVG(com.kitfox.svg.SVGElement svgEl)voidfinalPositionUpdate()java.lang.StringgetSVGString()voidinitInternalLayout()Init the internal layout (in particular, width and height of the element)voidlayout()voidprocessExternalDimensions(java.util.Optional<java.lang.Float> wDesiredExt, java.util.Optional<java.lang.Float> hDesiredExt)voidwriteSVG(java.lang.StringBuilder builder)-
Methods inherited from class org.processmining.trafficlightcc.visualization.trafficlight.InOutInLayoutableElement
getLayoutInfo
-
-
-
-
Constructor Detail
-
TrafficLightPic
public TrafficLightPic(TLCElementDiagnostic elDiag, float maxArea, float defaultAreaAbsentMetric, float defaultAreaZeroMetric, float innerSep, float elementPadding, TLMetricNormalization normalizationMethod)
-
-
Method Detail
-
getSVGString
public java.lang.String getSVGString()
-
layout
public void layout()
-
initInternalLayout
public void initInternalLayout()
Description copied from class:InOutInLayoutableElementInit the internal layout (in particular, width and height of the element)- Specified by:
initInternalLayoutin classInOutInLayoutableElement
-
processExternalDimensions
public void processExternalDimensions(java.util.Optional<java.lang.Float> wDesiredExt, java.util.Optional<java.lang.Float> hDesiredExt)- Overrides:
processExternalDimensionsin classInOutInLayoutableElement
-
finalPositionUpdate
public void finalPositionUpdate()
- Overrides:
finalPositionUpdatein classInOutInLayoutableElement
-
writeSVG
public void writeSVG(java.lang.StringBuilder builder)
- Specified by:
writeSVGin classInOutInLayoutableElement
-
add2SVG
public void add2SVG(com.kitfox.svg.SVGElement svgEl) throws com.kitfox.svg.SVGElementException- Specified by:
add2SVGin classInOutInLayoutableElement- Throws:
com.kitfox.svg.SVGElementException
-
-