B C D E F G H I L M N P R S T U

B

Board - class hexIT.Board.
This class represents a configuration of hexagons, a "board".
Board() - Constructor for class hexIT.Board
Creates a new, empty Board.
Board(int) - Constructor for class hexIT.Board
Creates a new board of the specified size.

C

COORDNUM_BOTTOM - Static variable in class hexIT.Hexagon
 
COORDNUM_BOTTOMLEFT - Static variable in class hexIT.Hexagon
 
COORDNUM_BOTTOMRIGHT - Static variable in class hexIT.Hexagon
 
COORDNUM_TOP - Static variable in class hexIT.Hexagon
 
COORDNUM_TOPLEFT - Static variable in class hexIT.Hexagon
 
COORDNUM_TOPRIGHT - Static variable in class hexIT.Hexagon
 
createFrame(String) - Method in class hexIT.Board
Creates a Frame to view this board in.

D

DIR_E - Static variable in class hexIT.HexagonalBoard
 
DIR_NE - Static variable in class hexIT.HexagonalBoard
 
DIR_NW - Static variable in class hexIT.HexagonalBoard
 
DIR_SE - Static variable in class hexIT.HexagonalBoard
 
DIR_SW - Static variable in class hexIT.HexagonalBoard
 
DIR_W - Static variable in class hexIT.HexagonalBoard
 
DiamondBoard - class hexIT.DiamondBoard.
A diamond board is a board arranged like a diamond, as seen below.
DiamondBoard(int) - Constructor for class hexIT.DiamondBoard
Creates a new diamond board of the specified size.
DiamondHexPanel - class hexIT.DiamondHexPanel.
A diamond hex panel is a panel component that contains a diamond board.
DiamondHexPanel(int, int, int, Color) - Constructor for class hexIT.DiamondHexPanel
Creates a new diamond hex panel, using the specified board as the basis.
DisposeFrame() - Method in class hexIT.HexApplet
Dispose of the main frame.
Drawable - interface hexIT.Drawable.
A drawable object is any object that can be drawn to the screen.
DrawableAdapter - class hexIT.DrawableAdapter.
A DrawableAdapater is a simple implementation of the Drawable interface.
DrawableAdapter(String) - Constructor for class hexIT.DrawableAdapter
Creates a new drawable adapter loading the specified image file as this drawable object's image.
DrawableAdapter() - Constructor for class hexIT.DrawableAdapter
Creates a drawable adapter with no associated image.
distance(Hexagon, Hexagon) - Method in class hexIT.Board
A distance metric between 2 separate hexagons.
distance(Hexagon, Hexagon) - Method in class hexIT.DiamondBoard
Calculates the minimum # of hexes need to travel from one to the other.
distance(Hexagon, Hexagon) - Method in class hexIT.HexagonalBoard
Returns the minimum # of hexes need to travel from one hexagon to the other.

E

equals(Object) - Method in class hexIT.Hexagon
Returns true if the object that's passed-in is a Hexagon and has the same hexagonal coordinates as this Hexagon.

F

findObject(Drawable) - Method in class hexIT.Board
Finds an object that is on one of the hexagons.

G

getBackgroundColor() - Method in class hexIT.HexPanel
Gets the background color of this panel.
getBoard() - Method in class hexIT.HexPanel
Gets the board which is associated with this panel.
getBorderColor() - Method in class hexIT.Hexagon
Returns the current border color of this hexagon.
getExterior() - Method in class hexIT.Board
Returns the exterior of the hexagonal board.
getExterior() - Method in class hexIT.DiamondBoard
Unimplemented.
getExterior() - Method in class hexIT.HexagonalBoard
Returns the list of hexagons on the outer edges.
getFOV(int, int, int) - Method in class hexIT.Board
Gets all the hexes that can be "seen" in the Field-of-View of an observer at hex coordinate (hexx1,hexy1).
getFOV(int, int, int) - Method in class hexIT.DiamondBoard
Unimplemented.
getFOV(int, int, int) - Method in class hexIT.HexagonalBoard
Get the list of hexagons in the Field-of-View from the source hexagon at hex location (hexx1, hexy1).
getFillColor() - Method in class hexIT.Hexagon
Gets the fill color of this hexagon.
getHexPanel() - Method in class hexIT.HexFrame
Return the main panel.
getHexX() - Method in class hexIT.Hexagon
Get this hexagon's hexagonal X coordinate, where the coordinate system is defined by the board that created this hexagon.
getHexY() - Method in class hexIT.Hexagon
Get this hexagon's hexagonal Y coordinate, where the coordinate system is defined by the board that created this hexagon.
getHexagon(int, int) - Method in class hexIT.HexagonalBoard
Return the hexagon at hex location (x,y) or null if invalid coordinates, or null if the location is not valid.
getHexagonByPixel(int, int) - Method in class hexIT.HexagonalBoard
Gets the hexagon which contains this pixel.
getHexagons() - Method in class hexIT.HexagonalBoard
Returns an array of all valid hexagons on this hexagonal board, in no particular order.
getHost() - Method in class hexIT.HexApplet
 
getImage() - Method in interface hexIT.Drawable
Returns the image represented by this drawable object.
getImage() - Method in class hexIT.DrawableAdapter
Get the image associated with this drawable object.
getLOS(int, int, int, int) - Method in class hexIT.Board
Gets all the hexes that can be "seen" from one hexagon to another.
getLOS(int, int, int, int) - Method in class hexIT.DiamondBoard
Unimplemented.
getLOS(int, int, int, int) - Method in class hexIT.HexagonalBoard
Returns the line-of-sight from hexagon at hex location (hexx1,hexy1).
getLOSPixel(int, int, int, int) - Method in class hexIT.HexagonalBoard
Returns the line-of-sight from hexagon at hex location (hexx1,hexy1).
getMidPixelX() - Method in class hexIT.Hexagon
Get the x coordinate of the pixel at the center of this hexagon.
getMidPixelY() - Method in class hexIT.Hexagon
Get the y coordinate of the pixel at the center of this hexagon.
getNonOccupiedHexagons() - Method in class hexIT.HexagonalBoard
Returns an array of all valid hexagon on this hexagonal board that are not occupied by pieces, in no particular order.
getObj() - Method in class hexIT.Hexagon
Return the object on this hexagon, or null if there is none.
getOccupiedHexagons() - Method in class hexIT.HexagonalBoard
Returns an array of all valid hexagon on this hexagonal board that are occupied by pieces, in no particular order.
getOutlineColor() - Method in class hexIT.Hexagon
Gets the outline line color of this hexagon.
getPixelX(int) - Method in class hexIT.Hexagon
Get the x coordinate of the pixel attached to the coordinate number of the vertex of this hexagon.
getPixelY(int) - Method in class hexIT.Hexagon
Get the y coordinate of the pixel attached to the coordinate number of the vertex of this hexagon.
getShortestPath(int, int, int, int) - Method in class hexIT.Board
Returns the shortest path (a list of haxagons) from hex locations (hexy1,hexy2) to (hexx2, hexy2);
getShortestPath(int, int, int, int) - Method in class hexIT.DiamondBoard
Unimplemented.
getShortestPath(int, int, int, int) - Method in class hexIT.HexagonalBoard
Returns the list of hexagons that forms the shortest path between the source hexagon at (hexx1,hexy1) and destination hexagon at (hexx2,hexy2).
getSideLength() - Method in class hexIT.HexagonalBoard
Returns the side length.
getSurrounding(int, int, int) - Method in class hexIT.Board
Gets all the hexes surrounding the hexes at hex coords (x,y) within a specified radius (in hex units).
getSurrounding(int, int, int) - Method in class hexIT.DiamondBoard
Unimplemented.
getSurrounding(int, int, int) - Method in class hexIT.HexagonalBoard
Get all the hexagons surround the given source hexagon at (hexx,hexy) within the specified radius.
getSurroundingArray(Hexagon, int) - Method in class hexIT.HexagonalBoard
Get all the hexagons surround the given source hexagon (h) within the specified radius.

H

HexApplet - class hexIT.HexApplet.
 
HexApplet() - Constructor for class hexIT.HexApplet
 
HexFrame - class hexIT.HexFrame.
A frame that contains a hex panel for displaying the board.
HexFrame(String, int, int, int, int, Color) - Constructor for class hexIT.HexFrame
Creates a new frame wigh the specified height and width.
HexPanel - class hexIT.HexPanel.
A hex panel is a panel which contains a board of hexagons.
HexPanel(int, int, int, Color) - Constructor for class hexIT.HexPanel
Create a new hex panel with the specified width heights and heights (in pixels), and background color.
Hexagon - class hexIT.Hexagon.
A hexagon object represents a particular tile on a board of hexagons.
Hexagon(int, int) - Constructor for class hexIT.Hexagon
Creates a hexagon with hexagonal coordinates (new_hexX, new_hexY).
HexagonalBoard - class hexIT.HexagonalBoard.
A hexagonal board is a board which is itself arranged into one big hexagon composed of smaller ones.
HexagonalBoard() - Constructor for class hexIT.HexagonalBoard
Create an empty hexagonal board with no size.
HexagonalBoard(int) - Constructor for class hexIT.HexagonalBoard
Create a hexagonal board of the specified size.
HexagonalHexPanel - class hexIT.HexagonalHexPanel.
A panel that holds and graphically represents a hexagonal board.
HexagonalHexPanel(int, int, int, Color, HexagonalBoard) - Constructor for class hexIT.HexagonalHexPanel
Create a hexagonal hex panel with specified height and width (in pixels) Note: these panels are currently not resizable.
hasFill() - Method in class hexIT.Hexagon
Returns true if this hexagon has a fill color, false otherwise.
hasOutline() - Method in class hexIT.Hexagon
Returns true if this hexagon has an outline, false otherwise.
hexIT - package hexIT
 
hideGrid() - Method in class hexIT.DiamondHexPanel
Unimplemented.
hideGrid() - Method in class hexIT.HexFrame
Hide the board grid.
hideGrid() - Method in class hexIT.HexPanel
Hides the grid.
hideGrid() - Method in class hexIT.HexagonalHexPanel
Hide the board grid.

I

ImageTools - class hexIT.ImageTools.
ImageTools is a helper class that provides convenient methods for loading, caching, and scaling images.
ImageTools() - Constructor for class hexIT.ImageTools
 
init() - Method in class hexIT.HexApplet
Initializes the applet.
isOccupied() - Method in class hexIT.Hexagon
Returns true if there is an object on this hexagon, false otherwise.
isStraightPath(Hexagon, Hexagon) - Method in class hexIT.HexagonalBoard
If there is a straight line of hexagons (ie: you can get there by going in one constant direction) between the source and destination, then the direction (from source to dest) is returned.
isStraightPath(int, int, int, int) - Method in class hexIT.HexagonalBoard
If there is a straight line of hexagons (ie: you can get there by going in one constant direction) between the source and destination, then the direction (from source to dest) is returned.
isValidCoord(int, int) - Method in class hexIT.HexagonalBoard
Returns true if the specified hexagonal coordinates are not valid.
isVisible() - Method in class hexIT.Hexagon
Returns true if this hexagon is visible, false otherwise.

L

loadImage(String) - Static method in class hexIT.ImageTools
Load the image with the specified filename and return it.
loadScaledImage(String, int, int) - Static method in class hexIT.ImageTools
Scale the specified image.

M

Misc - class hexIT.Misc.
This is a helper class that supplies miscellaneous functions that are convenient to have package-wide.
Misc() - Constructor for class hexIT.Misc
 
main(String[]) - Static method in class hexIT.Test
Modify this method to specify any tests to be run.
moveObject(Hexagon, Hexagon) - Method in class hexIT.HexagonalBoard
Move the object at hex location h1 to h2.
moveObject(int, int, int, int) - Method in class hexIT.HexagonalBoard
Move the object at hex location (x1,y1) to (x2,y2).
moveObject(int, int, int) - Method in class hexIT.HexagonalBoard
Move the object at hex location (x,y) in the specified direction.
moveObject(int, int, int, int) - Method in class hexIT.HexagonalHexPanel
Move object from hex coords (x1,y1) to (x2,y2).
moveObject(int, int, int) - Method in class hexIT.HexagonalHexPanel
Move object from hex coords (x1,y1) in the specified direction.
moveObject(Drawable, int, int) - Method in class hexIT.HexagonalHexPanel
Move the object from wherever it is on the board to hex location (x2,y2).
moveObject(Drawable, int) - Method in class hexIT.HexagonalHexPanel
Move the object from wherever it is on the board to hex location in the specified direction.

N

nextHexagon(Hexagon, int) - Method in class hexIT.HexagonalBoard
Returns the hexagon which is of distance 1 away in the specified direction from the specified Hexagon.
nextX(int, int) - Method in class hexIT.HexagonalBoard
Returns the next value of the hex x-coordinate given the current value x and moving in the specified direction.
nextY(int, int) - Method in class hexIT.HexagonalBoard
Returns the next value of the hex y-coordinate given the current value x and moving in the specified direction.

P

paint(Graphics) - Method in class hexIT.HexagonalHexPanel
Paint the panel.
putObj(Drawable) - Method in class hexIT.Hexagon
Places the specified drawable object onto this hex.
putObject(int, int, Drawable) - Method in class hexIT.DiamondHexPanel
Unimplemented.
putObject(int, int, Drawable) - Method in class hexIT.HexFrame
Put the specified object at hex location (x,y) Note: the hex coords depend on the coordinate system used by the board type.
putObject(int, int, Drawable) - Method in class hexIT.HexPanel
Puts the specified object at hex coordinates (x,y).
putObject(int, int, Drawable) - Method in class hexIT.HexagonalBoard
Put the specified object on hex location (x,y).
putObject(int, int, Drawable) - Method in class hexIT.HexagonalHexPanel
Puts the specified object at hex coordinates (x,y).

R

removeFill() - Method in class hexIT.Hexagon
Removes the fill from this hexagon.
removeObj() - Method in class hexIT.Hexagon
Remove the object on this hexagon.
removeObject(int, int) - Method in class hexIT.DiamondHexPanel
Unimplemented.
removeObject(int, int) - Method in class hexIT.HexFrame
Remove the specified object from hex location (x,y) Note: the hex coords depend on the coordinate system used by the board type.
removeObject(int, int) - Method in class hexIT.HexPanel
Removes the specified object at hex coordinates (x,y).
removeObject(int, int) - Method in class hexIT.HexagonalBoard
Remove the object on hex location (x,y).
removeObject(int, int) - Method in class hexIT.HexagonalHexPanel
Removes the specified object at hex coordinates (x,y).
removeOutline() - Method in class hexIT.Hexagon
Remove the outline from this hexagon.

S

scaleAllImages() - Method in class hexIT.DiamondHexPanel
Unimplemented.
scaleAllImages() - Method in class hexIT.HexPanel
Scale all the images of all the objects on the Hexagons.
scaleAllImages() - Method in class hexIT.HexagonalHexPanel
Scale all the images associated with each drawable object on each hexagon.
scaleImage(Image, int, int) - Static method in class hexIT.ImageTools
Scale the specified image.
scaleObjImage(int, int) - Method in class hexIT.Hexagon
Scales the object on this hexagon to the specified new pixel values.
setBackgroundColor(Color) - Method in class hexIT.HexFrame
Set the background for the fram and panel.
setBackgroundColor(Color) - Method in class hexIT.HexPanel
Sets the background color of this panel.
setBorderColor(Color) - Method in class hexIT.Hexagon
Set the border line color of this hexagon.
setDrawingColor(Color) - Method in class hexIT.HexFrame
Set the drawing color of the hexagon grid.
setFrameSize(int, int) - Method in class hexIT.Board
Sets the size of the frame, in pixels, to the specified values.
setHexFillColor(int, int, Color) - Method in class hexIT.DiamondHexPanel
Unimplemented.
setHexFillColor(int, int, Color) - Method in class hexIT.HexPanel
Set the outline color of the hexagon at hex coords (hexx, hexy).
setHexFillColor(int, int, Color) - Method in class hexIT.HexagonalHexPanel
Set the fill color of the Hexagon at hex location (hexx, hexy) the specified color.
setHexOutlineColor(int, int, Color) - Method in class hexIT.DiamondHexPanel
Unimplemented.
setHexOutlineColor(int, int, Color) - Method in class hexIT.HexPanel
Set the outline color of the hexagon at hex coords (hexx, hexy).
setHexOutlineColor(int, int, Color) - Method in class hexIT.HexagonalHexPanel
Set the outline color of the Hexagon at hex location (hexx, hexy) the specified color.
setImage(Image) - Method in interface hexIT.Drawable
Sets the image of this object to the specified image.
setImage(Image) - Method in class hexIT.DrawableAdapter
Set the image associated with this drawable object.
setImage(String) - Method in class hexIT.DrawableAdapter
Set the image associated with this drawable object.
setScale(boolean) - Method in class hexIT.HexPanel
If the argument is true, scale all the images.
setVisible(boolean) - Method in class hexIT.Hexagon
Toggles the visibility of this hexagon.
show() - Method in class hexIT.Board
Show the internal frame created by createFrame().
showErrorMessage(String) - Method in class hexIT.HexApplet
Show an error message.
showGrid(Color) - Method in class hexIT.DiamondHexPanel
Unimplemented.
showGrid() - Method in class hexIT.HexFrame
Show the board grid.
showGrid(Color) - Method in class hexIT.HexFrame
Show the board, graphically.
showGrid(Color) - Method in class hexIT.HexPanel
Shows the hex grid (all the hexagons on the board).
showGrid(Color) - Method in class hexIT.HexagonalHexPanel
Show the board grid.
start() - Method in class hexIT.HexApplet
Start the applet client.
surroundsPixel(int, int) - Method in class hexIT.Hexagon
Returns true if the specified pixel with coordinates (x,y) lie inside this hexagon.

T

TYPE_DIAMOND - Static variable in class hexIT.HexFrame
 
TYPE_HEXAGONAL - Static variable in class hexIT.HexFrame
 
Test - class hexIT.Test.
A test class.
Test() - Constructor for class hexIT.Test
 
tilesIterator() - Method in class hexIT.Board
Returns an iterator over all hexagons in the board, in no particular order.
tilesIterator() - Method in class hexIT.DiamondBoard
Unimplemented.
tilesIterator() - Method in class hexIT.HexagonalBoard
Returns an iterator over all hexagons on the board.
toString() - Method in class hexIT.Hexagon
Returns the coordinates string of this hexagon.

U

UniformRandom(int, int) - Static method in class hexIT.Misc
Generates a uniformly random number between high and low, inclusive

B C D E F G H I L M N P R S T U