| 
       メソッド 
       | 
      
       説明 
       | 
    
    
      | 
       simpleSort 
       | 
      
       public static void simpleSort(int [] data) 
      整数データ列に対するソート。配列dataが小さい順に並び変えられる。 
       | 
    
    
      | 
       simpleSort 
       | 
      
       public static void simpleSort(double[] data) 
      倍精度データ列に対するソート。配列dataが小さい順に並び変えられる。 
       | 
    
    
      | 
       indexedSimpleSort 
       | 
      
       public static int[] indexedSimpleSort(int[] data) 
      整数データ列に対するソート。配列dataは変化しない。int[]に配列dataの添え字が返される。 
      int[]をindicesと書くと、data[indices[0]]<= data[indices[1]]<= data[indices[2]]
          ....となる。 
       | 
    
    
      | 
       indexedSimpleSort 
       | 
      
       public static int[] indexedSimpleSort(double[] data) 
      倍精度データ列に対するソート。出力はindexedSimpleSortと同様。 
       | 
    
    
      | 
       indexedSwap 
       | 
      
       private static void indexedSwap(int[] indices, int i,int j) 
      indices[i]とindices[j]の値を交換する。 
       | 
    
    
      | 
       swap 
       | 
      
       private static void swap(int [] data, int i,int j) 
      data[i]とdata[j]の値を交換する。 
       | 
    
    
      | 
       swap 
       | 
      
       private static void swap(double[] data, int i,int j) 
      data[i]とdata[j]の値を交換する。 
       | 
    
    
      | 
       printSort 
       | 
      
       private static void printSort(String message, int [] data) 
      dataをプリントアウトする。 
       | 
    
    
      | 
       printSort 
       | 
      
       private static void printSort(String message, double[] data) 
      dataをプリントアウトする。 
       | 
    
    
      | 
       printSort 
       | 
      
       private static void printSort(String message, int[] data, int[] indices) 
      dataとindicesをプリントアウトする。 
       | 
    
    
      | 
       printSort 
       | 
      
       private static void printSort(String message, double[] data, int[] indices) 
      dataとindicesをプリントアウトする。messageは識別をのためにつける文字列。 
       | 
    
    
      | 
       getASCIIControlString 
       | 
      
       public String getASCIIControlString(String command) 
      引数: 
      command - コマンド名 
      戻り値: 
      引数commandが1文字からなるASCII制御コードならば、それを表す文字列を返す。そうでなければ""を返す。 
      処理: 
      例えばCtr;キーを押したまま"c"のキーが押されると、ボタンなどに設定したアクションコマンド(ActionEvent.getActionCommand()で取得)は"0x03"(ASCII制御コード)が戻る。そして"0x03"はJaveでは認識できない文字である。 
      このメソッドでは引数がASCII制御コードか否かをチェックし、そうであればそれを表す文字列を返す。例えばこの場合は "ctrl+c"。 
         例: ASCII制御コードを表す文字列 
       "0x01" ->"ctrl+a", "0x08" ->"ctrl+h"
      (Back space), "0x16" ->"ctrl+v", "0x18"
      ->"ctrl+x" 
       | 
    
    
      | toHexString | 
      public static String toHexString(String str) 
      引数の16進表記を返す。 | 
    
    
      | toHexString | 
      public static String toHexString(byte[] byteBuff) 
      引数の16進表記を返す。 | 
    
    
      | 
       Text 
       | 
      
       public static String Text(AttributedString attribStr) 
      AttributedStringを文字列で返す。\n(改行)があれば文字列の"\n"に変えて返す。 
       | 
    
    
      | 
       Num 
       | 
      
       public static String Num(double d) 
      フィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | PercentNum | 
      public static String PercentNum(double d, int fraction) 
          フィールド変数nfでフォーマッティングして文字列で返す。 | 
    
    
      | 
       Pt 
       | 
      
       public static String Pt(Point point) 
      Pointのx,yをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Pt 
       | 
      
       public static String Pt(Point2D point) 
      Point2Dのx,yをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Pt 
       | 
      
       public static String Pt(Vector2D vec) 
      Vector2Dのx,yをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Pt 
       | 
      
       public static String Pt(Rectangle2D rect) 
      Rectangle2Dの左上隅点のx,yをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Pt 
       | 
      
       public static String Pt(Arc2D arc) 
      Arc2Dが内接する矩形の左上隅点のx,yをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Angle 
       | 
      
       public static String Angle(Arc2D arc) 
      Arc2Dの中心角をフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Rect 
       | 
      
       public static String Rect(Rectangle rect) 
      Rectangleの左上隅点x,yと幅w、高さhをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Rect 
       | 
      
       public static String Rect(Component component) 
      Componentの左上隅点x,yと幅w、高さhをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | 
       Rect 
       | 
      
       public static String Rect(Rectangle2D rect) 
      Rectangle2Dの左上隅点x,yと幅w、高さhをフィールド変数nfでフォーマッティングして文字列で返す。 
       | 
    
    
      | Dim | 
      public static String Dim(Dimension dim) 
          フィールド変数nfでフォーマッティングして文字列で返す。 | 
    
    
      | Insets | 
      ublic static String Insets(Insets insets) 
          フィールド変数nfでフォーマッティングして文字列で返す。 |