AssemblyPainter class
Constructors
AssemblyPainter ({required double assemblyAngle , required int assemblyElements , required double assemblyWidth , required double viewWidth , List <IndividualVotes > ? individualVotes , List <GroupSectors > ? groupSectors , List <GroupSectors > ? superGroupSectors , required int nbRows , bool ? useGroupSector , required double backgroundOpacity , required Color backgroundColor , bool ? hiliteFronde })
Methods
addListener (VoidCallback listener )
→ void
Register a closure to be notified when it is time to repaint.
inherited
drawAnArc (Canvas canvas , Paint paint , {required Offset center , required Offset centerOffset , required double rayonArc , required double startAngleInDegrees , required double sweepAngleInDegrees })
→ void
drawArcOfPoints (Canvas canvas , Size canvasSize , {Color color = const Color.fromRGBO(128, 128, 128, 1) , int ? elementAttributeRow , List <ElementAttributes > ? allElementAttributes , Offset centerOffset = const Offset(0, 0) , double rectSize = 20 , int nbElements = 10 , double angleArcDegres = 90 , double angleOffset = 0 , double rayonArc = 100 , double rectRadius = 0 , bool ? hiliteFronde = false })
→ void
drawArcOfSectors (Canvas canvas , Size canvasSize , {Color color = const Color.fromRGBO(128, 128, 128, 1) , int ? elementAttributeRow , List <SectorAttributes > ? allSectorAttributes , Offset centerOffset = const Offset(0, 0) , double angleArcDegres = 90 , double angleOffset = 0 , double rayonArc = 100 })
→ void
drawBackgroundArcOfSectors (Canvas canvas , Size canvasSize , {Color color = const Color.fromRGBO(128, 128, 128, 1) , required List <SectorAttributes > allSectorAttributes , Offset centerOffset = const Offset(0, 0) , double assemblyAngle = 175 , required double angleArcDegrees , double angleOffset = 0 , required double insideHole , required double rayonArc , double backgroundOpacity = 0.1 , required Color widgetColorBackground })
→ void
drawLine (Canvas canvas , Size canvasSize , {Color color = const Color.fromRGBO(255, 255, 255, 1) , Offset centerOffset = const Offset(0, 0) , double rectSize = 20 , int nbElements = 10 , double angleDegres = 90 , double distance = 20 , double rectRadius = 0 })
→ void
hitTest (Offset position )
→ bool ?
Called whenever a hit test is being performed on an object that is using
this custom paint delegate.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint (Canvas canvas , Size canvasSize )
→ void
Called whenever the object needs to paint. The given Canvas has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the size
argument.
override
perimeterFromDegrees (double radiusArc , double angleDegrees )
→ double
rectPainting (Canvas canvas , Size canvasSize , Color color , double rectSize , double xOffset , double yOffset , {double ? radius })
→ void
removeListener (VoidCallback listener )
→ void
Remove a previously registered closure from the list of closures that the
object notifies when it is time to repaint.
inherited
returnTheDotColor (ElementAttributes element )
→ Color
shouldRebuildSemantics (covariant CustomPainter oldDelegate )
→ bool
Called whenever a new instance of the custom painter delegate class is
provided to the RenderCustomPaint object, or any time that a new
CustomPaint object is created with a new instance of the custom painter
delegate class (which amounts to the same thing, because the latter is
implemented in terms of the former).
inherited
shouldRepaint (covariant AssemblyPainter oldDelegate )
→ bool
Called whenever a new instance of the custom painter delegate class is
provided to the RenderCustomPaint object, or any time that a new
CustomPaint object is created with a new instance of the custom painter
delegate class (which amounts to the same thing, because the latter is
implemented in terms of the former).
override
toString ()
→ String
A string representation of this object.
inherited