brush-structure.puml 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @startuml
  2. abstract SPaintEngine
  3. SPainter *-- SPaintEngine
  4. SCanvasPaintEngine ..|> SPaintEngine
  5. SSvgPaintEngine ..|> SPaintEngine
  6. SPaintEngine "1" -- "n" SPaintState
  7. SBrush -- SPaintState
  8. SBrush "1" -- "1" SColor
  9. SBrush "1" -- "1" SGradient
  10. SLineGradient ..|> SGradient
  11. SRadialGradient ..|> SGradient
  12. SPainter "1" *-- "1" SBrush
  13. class SBrush{
  14. color: SColor
  15. type: SBrushType
  16. gradient: SGradient
  17. constructor(SBrush):void
  18. constructor(SColor):void
  19. constructor(SGradient):void
  20. constructor():void
  21. }
  22. class SPaintState{
  23. brush: SBrush
  24. font: SFont
  25. matrix: SMatrix
  26. pen: SPen
  27. composite: SComposite
  28. constructor(SPaintState): void
  29. }
  30. class SColor{
  31. alpha: number
  32. red: number
  33. green: number
  34. blue: number
  35. constructor(number | string | SColor, number, number, number): void
  36. rgb(number, number, number): SColor
  37. rgba(number, number, number, number): SColor
  38. }
  39. class SGradient{
  40. stopList: SGradientStop[]
  41. addColorStop(number, SColor): void
  42. }
  43. @enduml