dguitar.codecs.guitarPro.statistics
Class GPStats

java.lang.Object
  extended bydguitar.codecs.guitarPro.statistics.GPStats
All Implemented Interfaces:
common.FolderIteratorListener
Direct Known Subclasses:
GPStatsEffectsOnBeat, GPStatsEffectsOnNote, GPStatsMeasureTrackPair, GPStatsPiece

public class GPStats
extends java.lang.Object
implements common.FolderIteratorListener


Field Summary
private  boolean detailed
           
protected static int level
           
(package private)  java.lang.String msg
           
(package private)  GPStatsPiece PieceCumulative
           
private  java.lang.String results
           
 
Constructor Summary
GPStats()
          this class obtains statistics from a GPSong or from a folder that contains Guitar Pro files The statistics can be obtained using the stats() method
 
Method Summary
 void actionForFile(java.io.File file, common.FolderIteratorInfo FII)
           
 void actionForFolder(java.io.File folder, java.io.File path, common.FolderIteratorInfo FII)
           
 void actionRunFinished(common.FolderIteratorInfo FII)
           
 void actionRunInit(common.FolderIteratorInfo FII)
           
 java.lang.String getResults()
           
 boolean isDetailed()
           
private static float porcentaje(int v, int max)
          Calculates de porcentaje of a value
 void setDetailed(boolean detailed)
           
 void setResults(java.lang.String results)
           
protected  java.lang.String stringFor(int value, java.lang.String sValue, int max, java.lang.String sMax)
          creates a String that is used for output os statistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PieceCumulative

GPStatsPiece PieceCumulative

detailed

private boolean detailed

level

protected static int level

msg

java.lang.String msg

results

private java.lang.String results
Constructor Detail

GPStats

public GPStats()
this class obtains statistics from a GPSong or from a folder that contains Guitar Pro files The statistics can be obtained using the stats() method

Method Detail

porcentaje

private static float porcentaje(int v,
                                int max)
Calculates de porcentaje of a value


stringFor

protected java.lang.String stringFor(int value,
                                     java.lang.String sValue,
                                     int max,
                                     java.lang.String sMax)
creates a String that is used for output os statistics


actionForFile

public void actionForFile(java.io.File file,
                          common.FolderIteratorInfo FII)
Specified by:
actionForFile in interface common.FolderIteratorListener

actionRunInit

public void actionRunInit(common.FolderIteratorInfo FII)
Specified by:
actionRunInit in interface common.FolderIteratorListener

actionRunFinished

public void actionRunFinished(common.FolderIteratorInfo FII)
Specified by:
actionRunFinished in interface common.FolderIteratorListener

setResults

public void setResults(java.lang.String results)
Parameters:
results - The results to set.

getResults

public java.lang.String getResults()
Returns:
Returns the results.

setDetailed

public void setDetailed(boolean detailed)
Parameters:
detailed - The detailed to set.

isDetailed

public boolean isDetailed()
Returns:
Returns the detailed.

actionForFolder

public void actionForFolder(java.io.File folder,
                            java.io.File path,
                            common.FolderIteratorInfo FII)
Specified by:
actionForFolder in interface common.FolderIteratorListener