Пример #1
0
 /**
  * Specifies the constants to be used for this Configuration.
  *
  * @param gapBetweenLevels  
  * @param gapBetweenNodes  
  * @param location
  *            [default: {@link org.abego.treelayout.Configuration.Location#Top Top}]
  * @param alignmentInLevel
  *            [default: {@link org.abego.treelayout.Configuration.AlignmentInLevel#Center Center}]
  */
 public DefaultConfiguration(float gapBetweenLevels,
                             float gapBetweenNodes, Location location = Location.Top,
                             AlignmentInLevel alignmentInLevel        = AlignmentInLevel.Center)
 {
     this.gapBetweenLevels = gapBetweenLevels;
     this.gapBetweenNodes  = gapBetweenNodes;
     RootLocation          = location;
     Alignment             = alignmentInLevel;
 }
Пример #2
0
        /**
         * Specifies the constants to be used for this Configuration.
         *
         * @param gapBetweenLevels  
         * @param gapBetweenNodes  
         * @param location
         *            [default: {@link org.abego.treelayout.Configuration.Location#Top Top}]
         * @param alignmentInLevel
         *            [default: {@link org.abego.treelayout.Configuration.AlignmentInLevel#Center Center}]
         */
        public DefaultConfiguration(double gapBetweenLevels,
                                    double gapBetweenNodes, Location location,
                                    AlignmentInLevel alignmentInLevel)
        {
            //checkArg(gapBetweenLevels >= 0, "gapBetweenLevels must be >= 0");
            //checkArg(gapBetweenNodes >= 0, "gapBetweenNodes must be >= 0");

            this.gapBetweenLevels = gapBetweenLevels;
            this.gapBetweenNodes  = gapBetweenNodes;
            this.location         = location;
            this.alignmentInLevel = alignmentInLevel;
        }