DrawingParameters.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export class DrawingParameters {
  2. public drawHighlights: boolean;
  3. public drawErrors: boolean;
  4. public drawSelectionStartSymbol: boolean;
  5. public drawSelectionEndSymbol: boolean;
  6. public drawCursors: boolean;
  7. public drawActivitySymbols: boolean;
  8. public drawScrollIndicator: boolean;
  9. public drawComments: boolean;
  10. public drawMarkedAreas: boolean;
  11. public setForAllOn(): void {
  12. this.drawHighlights = true;
  13. this.drawErrors = true;
  14. this.drawSelectionStartSymbol = true;
  15. this.drawSelectionEndSymbol = true;
  16. this.drawCursors = true;
  17. this.drawActivitySymbols = true;
  18. this.drawScrollIndicator = true;
  19. this.drawComments = true;
  20. this.drawMarkedAreas = true;
  21. }
  22. public setForThumbmail(): void {
  23. this.drawHighlights = false;
  24. this.drawErrors = false;
  25. this.drawSelectionStartSymbol = false;
  26. this.drawSelectionStartSymbol = false;
  27. this.drawCursors = false;
  28. this.drawActivitySymbols = false;
  29. this.drawScrollIndicator = false;
  30. this.drawComments = true;
  31. this.drawMarkedAreas = true;
  32. }
  33. public setForLeadsheet(): void {
  34. this.drawHighlights = false;
  35. this.drawErrors = false;
  36. this.drawSelectionStartSymbol = true;
  37. this.drawSelectionEndSymbol = true;
  38. this.drawCursors = true;
  39. this.drawActivitySymbols = false;
  40. this.drawScrollIndicator = true;
  41. this.drawComments = true;
  42. this.drawMarkedAreas = true;
  43. }
  44. }