Пример #1
0
 @Override
 protected int execute(ActionData actionData) {
   TGLayout layout = getEditor().getTablature().getViewLayout();
   layout.setStyle((layout.getStyle() ^ TGLayout.DISPLAY_SCORE));
   if ((layout.getStyle() & TGLayout.DISPLAY_TABLATURE) == 0
       && (layout.getStyle() & TGLayout.DISPLAY_SCORE) == 0) {
     layout.setStyle((layout.getStyle() ^ TGLayout.DISPLAY_TABLATURE));
   }
   updateTablature();
   return 0;
 }
 protected int execute(TypedEvent e) {
   TGLayout layout = getEditor().getTablature().getViewLayout();
   layout.setStyle((layout.getStyle() ^ TGLayout.DISPLAY_MULTITRACK));
   updateTablature();
   return 0;
 }
 protected void processAction(TGActionContext context) {
   TGLayout layout = TablatureEditor.getInstance(getContext()).getTablature().getViewLayout();
   layout.setStyle((layout.getStyle() ^ TGLayout.DISPLAY_COMPACT));
 }