Class RiverMaker


  • public class RiverMaker
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int BASE_HEIGHT  
      private static int BASE_WIDTH  
      private static java.awt.geom.Point2D.Float CENTER  
      private static int DX  
      private static int DY  
      private static float EDGE_LENGTH  
      private static int HALF_HEIGHT  
      private static int HALF_WIDTH  
      private static java.awt.geom.Point2D.Float NE  
      private static java.awt.geom.Point2D.Float NW  
      private static java.awt.geom.Point2D.Float[] POINTS  
      private static java.awt.geom.Point2D.Float SE  
      private static java.awt.geom.Point2D.Float SW  
    • Constructor Summary

      Constructors 
      Constructor Description
      RiverMaker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static int branchCount​(int[] branches)  
      private static java.lang.String getName​(int[] branches)  
      static void main​(java.lang.String[] args)  
      private static int[] nextBranch​(int[] branches)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EDGE_LENGTH

        private static final float EDGE_LENGTH
      • NE

        private static final java.awt.geom.Point2D.Float NE
      • SE

        private static final java.awt.geom.Point2D.Float SE
      • SW

        private static final java.awt.geom.Point2D.Float SW
      • NW

        private static final java.awt.geom.Point2D.Float NW
      • CENTER

        private static final java.awt.geom.Point2D.Float CENTER
      • POINTS

        private static final java.awt.geom.Point2D.Float[] POINTS
    • Constructor Detail

      • RiverMaker

        public RiverMaker()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • nextBranch

        private static int[] nextBranch​(int[] branches)
      • branchCount

        private static int branchCount​(int[] branches)
      • getName

        private static java.lang.String getName​(int[] branches)