info.aduna.graphics.geom
Class HexagonUtil

java.lang.Object
  extended by info.aduna.graphics.geom.HexagonUtil

public class HexagonUtil
extends Object


Constructor Summary
HexagonUtil()
           
 
Method Summary
static Point[] createHexagonalPoints(int amount, int iconRadius, int iconPadding)
          Creates and returns an array of Points organized in a hexagonal pattern around the point [0, 0].
static Point[] createSortedCenteredPoints(int amount, int iconRadius, int iconPadding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexagonUtil

public HexagonUtil()
Method Detail

createHexagonalPoints

public static Point[] createHexagonalPoints(int amount,
                                            int iconRadius,
                                            int iconPadding)
Creates and returns an array of Points organized in a hexagonal pattern around the point [0, 0]. The number of Points can be specified as well as the radius of the object that should be placeble at any point and the padding between these objects, so that they do not overlap visually.


createSortedCenteredPoints

public static Point[] createSortedCenteredPoints(int amount,
                                                 int iconRadius,
                                                 int iconPadding)


Copyright © 1997-2008 Aduna. All Rights Reserved.