dguitar.gui
Class DisplayOptions

java.lang.Object
  extended bydguitar.gui.DisplayOptions
All Implemented Interfaces:
java.lang.Cloneable

public class DisplayOptions
extends java.lang.Object
implements java.lang.Cloneable

This class stores the DisplayOptions related to a Song and the whole program too.

Author:
Mauricio Gracia Gutiérrez

Field Summary
protected  int BottomOffset
          how much space below is preserved
 int coloringForFrets
          type of coloring for the Frets
 int coloringForRhythm
          type of coloring for the Rhythm lines
 boolean displayMusicCursor
          display the music cursor ?
 boolean displayUnsupportedEffects
          display a question mark when the a effect is present but is not painted yet
protected  boolean extendBottom
          are the lines extend to the bottom
protected  boolean extendTop
          are lines are extend to the top
 ColorScheme fretColors
          The colors that are used for vertical rhythm lines
 int LS
          The spacing between horizontal lines in pixels (LineSpacing)
 boolean minPieceSpacing
          is the proportional spacing linked to the piece
 boolean multiTrackView
          is the preferred view MultiTrack ?
 java.awt.Color musicCursorColor
           
 int NS
          The horinzal spacing between notes in pixels
static int RELATED_TO_DURATION
           
static int RELATED_TO_DYNAMIC
           
static int RELATED_TO_NOTHING
           
 ColorScheme rhythmColors
          The colors that are used for vertical rhythm lines
 boolean singleMusicCursorColor
          if true the musicCursor are all in the same color otherwise each MusicCursor is painted with the Track color
 int TopOffset
          how far below are the lines draw
 
Constructor Summary
DisplayOptions()
           
 
Method Summary
protected  java.lang.Object clone()
           
 void toggleDisplayUnsupportedEffects()
          remember to call validate when necesary.
 void toggleMinPieceSpacing()
           
 void toggleMultiTrackView()
           
 void toggleSingleMusicCursorColor()
           
 void toggleViewMusicCursors()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATED_TO_NOTHING

public static final int RELATED_TO_NOTHING
See Also:
Constant Field Values

RELATED_TO_DURATION

public static final int RELATED_TO_DURATION
See Also:
Constant Field Values

RELATED_TO_DYNAMIC

public static final int RELATED_TO_DYNAMIC
See Also:
Constant Field Values

LS

public int LS
The spacing between horizontal lines in pixels (LineSpacing)


NS

public int NS
The horinzal spacing between notes in pixels


TopOffset

public int TopOffset
how far below are the lines draw


BottomOffset

protected int BottomOffset
how much space below is preserved


extendTop

protected boolean extendTop
are lines are extend to the top


extendBottom

protected boolean extendBottom
are the lines extend to the bottom


rhythmColors

public ColorScheme rhythmColors
The colors that are used for vertical rhythm lines


fretColors

public ColorScheme fretColors
The colors that are used for vertical rhythm lines


coloringForRhythm

public int coloringForRhythm
type of coloring for the Rhythm lines


coloringForFrets

public int coloringForFrets
type of coloring for the Frets


displayMusicCursor

public boolean displayMusicCursor
display the music cursor ?


displayUnsupportedEffects

public boolean displayUnsupportedEffects
display a question mark when the a effect is present but is not painted yet


minPieceSpacing

public boolean minPieceSpacing
is the proportional spacing linked to the piece


multiTrackView

public boolean multiTrackView
is the preferred view MultiTrack ?


singleMusicCursorColor

public boolean singleMusicCursorColor
if true the musicCursor are all in the same color otherwise each MusicCursor is painted with the Track color


musicCursorColor

public java.awt.Color musicCursorColor
Constructor Detail

DisplayOptions

public DisplayOptions()
Method Detail

clone

protected java.lang.Object clone()

toggleMinPieceSpacing

public void toggleMinPieceSpacing()

toggleDisplayUnsupportedEffects

public void toggleDisplayUnsupportedEffects()
remember to call validate when necesary.


toggleSingleMusicCursorColor

public void toggleSingleMusicCursorColor()

toggleViewMusicCursors

public void toggleViewMusicCursors()

toggleMultiTrackView

public void toggleMultiTrackView()