- Card - Class in pt.ua.gboard.games
-
- Card(Suits, Rank) - Constructor for class pt.ua.gboard.games.Card
-
- card(Suits, Rank) - Static method in class pt.ua.gboard.games.DeckOfCards
-
- cardGelem(Suits, Rank) - Method in class pt.ua.gboard.games.DeckOfCards
-
- cellHeight() - Method in class pt.ua.gboard.GBoard
-
Returns the current height of each cell (in pixels).
- cellWidth() - Method in class pt.ua.gboard.GBoard
-
Returns the current width of each cell (in pixels).
- CharGelem - Class in pt.ua.gboard.basic
-
This gelem writes a character in a rectangle of cells.
- CharGelem(char, Color) - Constructor for class pt.ua.gboard.basic.CharGelem
-
Constructs a new CharGelem (1x1 cells using Monospaced font).
- CharGelem(char, Color, String) - Constructor for class pt.ua.gboard.basic.CharGelem
-
Constructs a new CharGelem (1x1 cells).
- CharGelem(char, Color, int, int) - Constructor for class pt.ua.gboard.basic.CharGelem
-
Constructs a new CharGelem (using Monospaced font).
- CharGelem(char, Color, int, int, String) - Constructor for class pt.ua.gboard.basic.CharGelem
-
Constructs a new CharGelem.
- ChessBoard - Class in pt.ua.gboard.games
-
A GBoard based chess board.
- ChessBoard(int) - Constructor for class pt.ua.gboard.games.ChessBoard
-
Creates a NxN
chess board.
- ChessPiece - Class in pt.ua.gboard.games
-
- ChessPiece(ChessPieceType) - Constructor for class pt.ua.gboard.games.ChessPiece
-
- ChessPieces - Class in pt.ua.gboard.games
-
- ChessPieces(GBoard) - Constructor for class pt.ua.gboard.games.ChessPieces
-
- ChessPieceType - Enum in pt.ua.gboard.games
-
- Circle - Class in pt.ua.gboard.shapes
-
{...,"circle", center-x, center-y, radius,...}
- Circle() - Constructor for class pt.ua.gboard.shapes.Circle
-
- circle() - Static method in class pt.ua.gboard.shapes.Shapes
-
- CircleGelem - Class in pt.ua.gboard.basic
-
- CircleGelem(Color, double) - Constructor for class pt.ua.gboard.basic.CircleGelem
-
Deprecated.
Constructs a new filled CircleGelem (1x1 cells).
- CircleGelem(Color, double, boolean) - Constructor for class pt.ua.gboard.basic.CircleGelem
-
Deprecated.
Constructs a new CircleGelem (1x1 cells).
- CircleGelem(Color, double, int, int) - Constructor for class pt.ua.gboard.basic.CircleGelem
-
Deprecated.
Constructs a new filled CircleGelem.
- CircleGelem(Color, double, int, int, boolean) - Constructor for class pt.ua.gboard.basic.CircleGelem
-
Deprecated.
Constructs a new CircleGelem.
- className() - Method in class pt.ua.gboard.Gelem
-
gelem's class name.
- clear() - Method in class pt.ua.gboard.games.ChessBoard
-
Empties the board.
- ClosedLineCurvePath - Class in pt.ua.gboard.shapes
-
{...,"closed-line-curve-path", x0, y0, <connection-type> , <connection-type-args>, ...
- ClosedLineCurvePath() - Constructor for class pt.ua.gboard.shapes.ClosedLineCurvePath
-
- closedLineCurvePath() - Static method in class pt.ua.gboard.shapes.Shapes
-
- color() - Method in class pt.ua.gboard.basic.MutableOneColorGelem
-
- color() - Static method in class pt.ua.gboard.shapes.Shapes
-
- column() - Method in class pt.ua.gboard.basic.Position
-
Column.
- column(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Converts a String
position coordinate to a column number;
- ComposedGelem - Class in pt.ua.gboard.basic
-
This gelem joins several gelem's in one gelem
- ComposedGelem(Gelem[]) - Constructor for class pt.ua.gboard.basic.ComposedGelem
-
Constructs a new ComposedGelem (1x1 cells).
- concat(Object[], Object[]) - Static method in class pt.ua.gboard.shapes.Shapes
-
- concatAll(Object[], Object[]...) - Static method in class pt.ua.gboard.shapes.Shapes
-
- contentPane() - Method in class pt.ua.gboard.GBoard
-
- emptyPosition(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Is position (line,column)
empty?
- emptyPosition(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Is position pos
empty?
- equal(Card) - Method in class pt.ua.gboard.games.Card
-
- equal(ChessPiece) - Method in class pt.ua.gboard.games.ChessPiece
-
- equalColor(ChessPiece) - Method in class pt.ua.gboard.games.ChessPiece
-
- equalRank(Card) - Method in class pt.ua.gboard.games.Card
-
- equalSuits(Card) - Method in class pt.ua.gboard.games.Card
-
- equalType(ChessPiece) - Method in class pt.ua.gboard.games.ChessPiece
-
- erase(Gelem, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Erase a gelem.
- erase(Gelem, int, int) - Method in class pt.ua.gboard.GBoard
-
Erase a gelem from position (in any layer where it exists).
- erase(int, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Erases all gelems from a position in layers belonging to interval [minLayer, maxLayer]
.
- erase(int, int) - Method in class pt.ua.gboard.GBoard
-
Erase all gelems from a position (in all layers).
- erase(Graphics, int, int, int, int, Color) - Method in class pt.ua.gboard.Gelem
-
Erase Gelem from GBoard (it should be exported only to GBoard).
- erase(Graphics, int, int, int, int, Color, Object[], int) - Method in class pt.ua.gboard.shapes.Shape
-
- eraseAll() - Method in class pt.ua.gboard.GBoard
-
Erases all drawed gelems.
- eraseAll(int, int) - Method in class pt.ua.gboard.GBoard
-
Erases all drawed gelems in layers belonging to interval [minLayer, maxLayer]
.
- eraseAll(Graphics, int, int, int, int, int, int, Color, Object[], boolean) - Static method in class pt.ua.gboard.shapes.Shapes
-
- exists(Gelem, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if a gelem exists in a position at a layer.
- exists(Gelem, int, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if a gelem exists in a position in the layer interval [minLayer, maxLayer]
.
- exists(Gelem, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if a gelem exists in a position in any layer.
- exists(int, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if any gelem exists in a position at a layer.
- exists(int, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if any gelem exists in a position in the layer interval [minLayer, maxLayer]
.
- exists(int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if any gelem exists in a position at any layer.
- FillArc - Class in pt.ua.gboard.shapes
-
{..., "fill-arc", x, y, width, height, startAngle, arcAngle...}
(x,y): top-left point of rectangle enclosing arc
width: width of rectangle enclosing arc
height: height of rectangle enclosing arc
angles in degrees
startAngle = 0: three O'Clock position
arcAngle positive: counter-clockwise rotation
arcAngle negative: clockwise rotation
- FillArc() - Constructor for class pt.ua.gboard.shapes.FillArc
-
- fillArc() - Static method in class pt.ua.gboard.shapes.Shapes
-
- FillCircle - Class in pt.ua.gboard.shapes
-
{...,"fill-circle", center-x, center-y, radius,...}
- FillCircle() - Constructor for class pt.ua.gboard.shapes.FillCircle
-
- fillCircle() - Static method in class pt.ua.gboard.shapes.Shapes
-
- FilledGelem - Class in pt.ua.gboard.basic
-
This gelem fills a rectangle of cells.
- FilledGelem(Color, double) - Constructor for class pt.ua.gboard.basic.FilledGelem
-
Constructs a new FilledGelem (1x1 cells).
- FilledGelem(Color, double, int, int) - Constructor for class pt.ua.gboard.basic.FilledGelem
-
Constructs a new FilledGelem.
- FillLineCurvePath - Class in pt.ua.gboard.shapes
-
{...,"fill-line-curve-path", x0, y0, <connection-type> , <connection-type-args>, ...
- FillLineCurvePath() - Constructor for class pt.ua.gboard.shapes.FillLineCurvePath
-
- fillLineCurvePath() - Static method in class pt.ua.gboard.shapes.Shapes
-
- FillOval - Class in pt.ua.gboard.shapes
-
{...,"fill-oval", x, y, width, height,...}
(x,y): top left coordinate
- FillOval() - Constructor for class pt.ua.gboard.shapes.FillOval
-
- fillOval() - Static method in class pt.ua.gboard.shapes.Shapes
-
- FillPolygon - Class in pt.ua.gboard.shapes
-
{...,"fill-polygon", n, x1, y1, ...
- FillPolygon() - Constructor for class pt.ua.gboard.shapes.FillPolygon
-
- fillPolygon() - Static method in class pt.ua.gboard.shapes.Shapes
-
- FillRectangle - Class in pt.ua.gboard.shapes
-
{..., "fill-rectangle", x, y, width, height, ...}
- FillRectangle() - Constructor for class pt.ua.gboard.shapes.FillRectangle
-
- fillRectangle() - Static method in class pt.ua.gboard.shapes.Shapes
-
- frame() - Method in class pt.ua.gboard.GBoard
-
- gboard - Variable in class pt.ua.gboard.games.ChessPieces
-
- gboard - Variable in class pt.ua.gboard.games.DeckOfCards
-
- GBoard - Class in pt.ua.gboard
-
This module implements a simplified (and yet quite powerful)
graphical board.
- GBoard(String, int, int, int) - Constructor for class pt.ua.gboard.GBoard
-
Constructs a new GBoard with (numberOfLines x numberOfColumns
) cells and numberOfLayers
layers.
- GBoard(String, int, int, int, int, int) - Constructor for class pt.ua.gboard.GBoard
-
Constructs a new GBoard with (numberOfLines x numberOfColumns) cells and numberOfLayers layers.
- gboardClosingMask - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- GBoardInputHandler - Class in pt.ua.gboard
-
This module implements input handling for GBoard.
- GBoardInputHandler(int) - Constructor for class pt.ua.gboard.GBoardInputHandler
-
Constructs a new GBoardInputHandler accepting the events defined by the mask.
- Gelem - Class in pt.ua.gboard
-
Abstract graphical element occupying a rectangular group of cells in a GBoard.
- Gelem() - Constructor for class pt.ua.gboard.Gelem
-
Constructs a new Gelem (1x1 cells).
- Gelem(int, int) - Constructor for class pt.ua.gboard.Gelem
-
Constructs a new Gelem (numberOfLines x numberOfColumns cells).
- gelemAttachedToRoadSymbol(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Get Gelem attached to road symbol.
- gelemAttachedToWallSymbol(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Get Gelem attached to wall symbol.
- gelemFitsInside(Gelem, int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if a gelem fits inside current GBoard
- gelemLayer(Gelem, int, int) - Method in class pt.ua.gboard.GBoard
-
Returns the topmost layer containing gelem in that position.
- get(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Observe a chess piece in the board.
- get(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Observe a chess piece in the board.
- getBackBlueGelem(GBoard) - Static method in class pt.ua.gboard.games.Card
-
- getBackBlueGelem() - Method in class pt.ua.gboard.games.DeckOfCards
-
- getBackRedGelem(GBoard) - Static method in class pt.ua.gboard.games.Card
-
- getBackRedGelem() - Method in class pt.ua.gboard.games.DeckOfCards
-
- getGelem(GBoard) - Method in class pt.ua.gboard.games.Card
-
- getGelem(GBoard) - Method in class pt.ua.gboard.games.ChessPiece
-
- getPreferredSize() - Method in class pt.ua.gboard.GBoard
-
- ID() - Method in class pt.ua.gboard.shapes.Shape
-
- ImageGelem - Class in pt.ua.gboard.basic
-
This gelem draws an image in a rectangle of cells.
- ImageGelem(Image, GBoard, double) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem (1x1 cells).
- ImageGelem(String, GBoard, double) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem (1x1 cells).
- ImageGelem(String, GBoard, double, int, int) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem.
- ImageGelem(URL, GBoard, double) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem (1x1 cells).
- ImageGelem(URL, GBoard, double, int, int) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem.
- ImageGelem(Image, GBoard, double, int, int) - Constructor for class pt.ua.gboard.basic.ImageGelem
-
Constructs a new ImageGelem.
- imageOk() - Method in class pt.ua.gboard.basic.ImageGelem
-
Indicates if the image was correctly loaded.
- initializeChessGame() - Method in class pt.ua.gboard.games.ChessBoard
-
Initializes a standard 8x8
chess board.
- inputListenerExists() - Method in class pt.ua.gboard.GBoard
-
Checks if exists an input handler.
- intersects(int, int, Gelem, int, int) - Method in class pt.ua.gboard.Gelem
-
Does current gelem at position (line, column) intersects gelem other at position
(otherLine, otherColumn)?
- invalidArgumentsMessage(Color[], double[][][]) - Static method in class pt.ua.gboard.basic.PolygonComposedGelem
-
- invalidArgumentsMessage(Object[], int) - Method in class pt.ua.gboard.shapes.Shape
-
- invalidListMessage(Object[]) - Static method in class pt.ua.gboard.shapes.Shapes
-
- isBishop() - Method in class pt.ua.gboard.games.ChessPiece
-
- isBlack() - Method in class pt.ua.gboard.games.ChessPiece
-
- isEqual(Position) - Method in class pt.ua.gboard.basic.Position
-
Is equal?
- isEqual(int, int) - Method in class pt.ua.gboard.basic.Position
-
Is equal?
- isGreater(Position) - Method in class pt.ua.gboard.basic.Position
-
this.line() > other.line() && this.column() >= other.column() ||
this.line() >= other.line() && this.column() > other.column()
- isGreater(int, int) - Method in class pt.ua.gboard.basic.Position
-
this.line() > line && this.column() >= column ||
this.line() >= line && this.column() > column
- isGreaterOrEqual(Position) - Method in class pt.ua.gboard.basic.Position
-
this.line() >= other.line() && this.column() >= other.column() ||
this.line() >= other.line() && this.column() >= other.column()
- isGreaterOrEqual(int, int) - Method in class pt.ua.gboard.basic.Position
-
this.line() >= line && this.column() >= column ||
this.line() >= line && this.column() >= column
- isImage(String) - Static method in class pt.ua.gboard.basic.ImageGelem
-
Check is filepath corresponds to a readable compatible image file.
- isInside(Position) - Method in class pt.ua.gboard.basic.RectangularArea
-
Is position inside area?
- isInside(int, int) - Method in class pt.ua.gboard.basic.RectangularArea
-
Is position inside area?
- isKing() - Method in class pt.ua.gboard.games.ChessPiece
-
- isKnight() - Method in class pt.ua.gboard.games.ChessPiece
-
- isLower(Position) - Method in class pt.ua.gboard.basic.Position
-
this.line() < other.line() && this.column() <= other.column() ||
this.line() <= other.line() && this.column() < other.column()
- isLower(int, int) - Method in class pt.ua.gboard.basic.Position
-
this.line() < line && this.column() <= column ||
this.line() <= line && this.column() < column
- isLowerOrEqual(Position) - Method in class pt.ua.gboard.basic.Position
-
this.line() <= other.line() && this.column() <= other.column() ||
this.line() <= other.line() && this.column() <= other.column()
- isLowerOrEqual(int, int) - Method in class pt.ua.gboard.basic.Position
-
this.line() <= line && this.column() <= column ||
this.line() <= line && this.column() <= column
- isMutable() - Method in class pt.ua.gboard.Gelem
-
Is gelem mutable?
A mutable gelem automatically updates GBoard when updated.
- isMutable() - Method in class pt.ua.gboard.MutableGelem
-
Is gelem mutable?
A mutable gelem automatically updates GBoard when updated.
- isOutside(int, int) - Method in class pt.ua.gboard.games.Labyrinth
-
Is (line,column)
a position outside the maze?
- isPawn() - Method in class pt.ua.gboard.games.ChessPiece
-
- isQueen() - Method in class pt.ua.gboard.games.ChessPiece
-
- isRoad(int, int) - Method in class pt.ua.gboard.games.Labyrinth
-
Is (line,column)
a road position?
- isRoad() - Method in class pt.ua.gboard.games.LabyrinthGelem
-
- isRoadSymbol(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Is character c
a road symbol?
- isRoadSymbolAttachToGelem(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Is road symbol attached to a gelem?.
- isRook() - Method in class pt.ua.gboard.games.ChessPiece
-
- isWall(int, int) - Method in class pt.ua.gboard.games.Labyrinth
-
Is (line,column)
a wall position?
- isWall() - Method in class pt.ua.gboard.games.LabyrinthGelem
-
- isWallSymbol(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Is character c
a wall symbol?
- isWallSymbolAttachToGelem(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Is wall symbol attached to a gelem?.
- isWhite() - Method in class pt.ua.gboard.games.ChessPiece
-
- itsMe(Object[], int) - Method in class pt.ua.gboard.shapes.Shape
-
- Labyrinth - Class in pt.ua.gboard.games
-
GBoard's based maze module.
- Labyrinth(String) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from a file.
- Labyrinth(String, char[]) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from a file, using external road symbols.
- Labyrinth(String, int) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from a file.
- Labyrinth(String, char[], int) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from a file, using external road symbols.
- Labyrinth(String, char[], int, boolean) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from a file, using external road symbols.
- Labyrinth(String[]) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from an array of Strings.
- Labyrinth(String[], char[]) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from an array of Strings, using external road symbols.
- Labyrinth(String[], int) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from an array of Strings.
- Labyrinth(String[], char[], int) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from an array of Strings, using external road symbols.
- Labyrinth(String[], char[], int, boolean) - Constructor for class pt.ua.gboard.games.Labyrinth
-
Creates a labyrinth from an array of Strings, using external road symbols.
- LabyrinthGelem - Class in pt.ua.gboard.games
-
Labyrinth graphical element.
- LabyrinthGelem(int) - Constructor for class pt.ua.gboard.games.LabyrinthGelem
-
- LabyrinthGelem(int, int, int) - Constructor for class pt.ua.gboard.games.LabyrinthGelem
-
- line() - Method in class pt.ua.gboard.basic.Position
-
Line.
- line(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Converts a String
position coordinate to a line number;
- Line - Class in pt.ua.gboard.shapes
-
{..., "line", x1, y1, x2, y2, ...}
- Line() - Constructor for class pt.ua.gboard.shapes.Line
-
- line() - Static method in class pt.ua.gboard.shapes.Shapes
-
- LineCurvePath - Class in pt.ua.gboard.shapes
-
{...,"line-curve-path", x0, y0, <connection-type> , <connection-type-args>, ...
- LineCurvePath() - Constructor for class pt.ua.gboard.shapes.LineCurvePath
-
- lineCurvePath() - Static method in class pt.ua.gboard.shapes.Shapes
-
- LineDash - Class in pt.ua.gboard.shapes
-
{...,"line-dash", n, phase, length_1, length_2, ..., length_n,...}
with the exception of n, all values scaled to [0;1] and relative to minimum(width, height)
n = 0 - resets BasicStroke to continuous opaque lines
n = 1 - equal spaced opaque and transparent line sections
n > 1 - pattern of alternated lengths of opaque and transparent line sections
phase argument only for n > 0
- LineDash() - Constructor for class pt.ua.gboard.shapes.LineDash
-
- lineDash() - Static method in class pt.ua.gboard.shapes.Shapes
-
- LinePath - Class in pt.ua.gboard.shapes
-
{...,"line-path", n, x1, y1, ...
- LinePath() - Constructor for class pt.ua.gboard.shapes.LinePath
-
- linePath() - Static method in class pt.ua.gboard.shapes.Shapes
-
- LineWidth - Class in pt.ua.gboard.shapes
-
{...,"line-width", width,...}
width relative to coordinate system [0;1]
relative to minimum of {width,height}
a zero width (0.0) resets BasicStroke width 1.0
- LineWidth() - Constructor for class pt.ua.gboard.shapes.LineWidth
-
- lineWidth() - Static method in class pt.ua.gboard.shapes.Shapes
-
- mask() - Method in class pt.ua.gboard.GBoardInputHandler
-
The current mask value.
- maxMaskValue - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- mouseClickedMask - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- mouseEventType - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- mousePressedMask - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- mouseReleasedMask - Static variable in class pt.ua.gboard.GBoardInputHandler
-
- move(int, int, int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Moves a chess piece inside the board.
- move(String, String) - Method in class pt.ua.gboard.games.ChessBoard
-
Moves a chess piece inside the board.
- move(Gelem, int, int, int, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Move a gelem.
- move(Gelem, int, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Move gelems within the same layer.
- mutable() - Method in class pt.ua.gboard.Gelem
-
If mutable, returns a mutable version of current gelem, otherwise it returns null.
- mutableDraw(Gelem, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Draw the mutable part of a gelem.
- mutableDraw(Graphics, int, int, int, int, Color) - Method in class pt.ua.gboard.Gelem
-
Draw the mutable part of the gelem (does nothing in immutable gelem's).
- mutableErase(Gelem, int, int, int) - Method in class pt.ua.gboard.GBoard
-
Erase the mutable part of a gelem.
- mutableErase(Graphics, int, int, int, int, Color) - Method in class pt.ua.gboard.Gelem
-
Draw the mutable part of the gelem (does nothing in immutable gelem's).
- MutableGelem - Class in pt.ua.gboard
-
Abstract mutable graphical element occupying a rectangular group of cells in a GBoard.
- MutableGelem() - Constructor for class pt.ua.gboard.MutableGelem
-
Constructs a new MutableGelem (1x1 cells).
- MutableGelem(int, int) - Constructor for class pt.ua.gboard.MutableGelem
-
Constructs a new MutableGelem (numberOfLines x numberOfColumns cells).
- MutableOneColorGelem - Class in pt.ua.gboard.basic
-
Abstract graphical element with a unique color.
- MutableOneColorGelem(Color) - Constructor for class pt.ua.gboard.basic.MutableOneColorGelem
-
Constructs a new MutableOneColorGelem (1x1 cells).
- MutableOneColorGelem(Color, int, int) - Constructor for class pt.ua.gboard.basic.MutableOneColorGelem
-
Constructs a new MutableOneColorGelem.
- MutableStringGelem - Class in pt.ua.gboard.basic
-
This gelem writes a string in a rectangle of cells.
- MutableStringGelem(String, Color) - Constructor for class pt.ua.gboard.basic.MutableStringGelem
-
Constructs a new MutableStringGelem (1x1 cells using Monospaced font).
- MutableStringGelem(String, Color, String) - Constructor for class pt.ua.gboard.basic.MutableStringGelem
-
Constructs a new MutableStringGelem (1x1 cells).
- MutableStringGelem(String, Color, int, int) - Constructor for class pt.ua.gboard.basic.MutableStringGelem
-
Constructs a new MutableStringGelem (using Monospaced font).
- MutableStringGelem(String, Color, int, int, String) - Constructor for class pt.ua.gboard.basic.MutableStringGelem
-
Constructs a new MutableStringGelem.
- PacmanGelem - Class in pt.ua.gboard.games
-
Pacman gelem.
- PacmanGelem(Color, double) - Constructor for class pt.ua.gboard.games.PacmanGelem
-
Constructs a new PacmanGelem (1x1 cells).
- PacmanGelem(Color, double, int, int) - Constructor for class pt.ua.gboard.games.PacmanGelem
-
Constructs a new PacmanGelem.
- piece(ChessPieceType) - Static method in class pt.ua.gboard.games.ChessPieces
-
- pieceGelem(ChessPieceType) - Method in class pt.ua.gboard.games.ChessPieces
-
- piecePositions(ChessPieceType) - Method in class pt.ua.gboard.games.ChessBoard
-
Returns an array with the positions of a piece.
- pieces - Variable in class pt.ua.gboard.games.ChessBoard
-
Chess pieces.
- Polygon - Class in pt.ua.gboard.shapes
-
{...,"polygon", n, x1, y1, ...
- Polygon() - Constructor for class pt.ua.gboard.shapes.Polygon
-
- polygon() - Static method in class pt.ua.gboard.shapes.Shapes
-
- PolygonComposedGelem - Class in pt.ua.gboard.basic
-
This gelem allows the (immutable) construction of a set of polygons.
- PolygonComposedGelem(Color[], double[][][]) - Constructor for class pt.ua.gboard.basic.PolygonComposedGelem
-
Constructs a new Gelem (1x1 cells).
- PolygonComposedGelem(Color[], double[][][], int, int) - Constructor for class pt.ua.gboard.basic.PolygonComposedGelem
-
Constructs a new PolygonComposedGelem.
- popInputHandler() - Method in class pt.ua.gboard.GBoard
-
Pops the board's top input handler.
- Position - Class in pt.ua.gboard.basic
-
Position in GBoard.
- Position(int, int) - Constructor for class pt.ua.gboard.basic.Position
-
Constructs a new Position (line x column).
- positionSelected(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Is position (line,column)
selected?
- positionSelected(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Is position pos
selected?
- pt.ua.gboard - package pt.ua.gboard
-
A graphical console alike library based on Design-by-Contract.
- pt.ua.gboard.basic - package pt.ua.gboard.basic
-
This package contains several basic gelems (both immutable and mutable)
an abstract graphical element with a unique color,
a graphical element which fills cells,
a graphical element which displays text,
a graphical element which displays text,
a graphical element which displays an image,
a graphical element which displays a circle (filled by default),
a graphical element which displays a rectangle (filled by default),
a graphical element which displays list of other gelems,
a graphical element which displays a vertical striped gelem,
a location inside GBoard,
a rectangular area inside GBoard,
- pt.ua.gboard.games - package pt.ua.gboard.games
-
- pt.ua.gboard.shapes - package pt.ua.gboard.shapes
-
This package contains several classes to support game development
- pushInputHandler(GBoardInputHandler) - Method in class pt.ua.gboard.GBoard
-
Pushes a new board input handler.
- put(ChessPieceType, int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Puts a chess piece in the board.
- put(ChessPieceType, String) - Method in class pt.ua.gboard.games.ChessBoard
-
Puts a chess piece in the board.
- put(ChessPiece, int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Puts a chess piece in the board.
- put(ChessPiece, String) - Method in class pt.ua.gboard.games.ChessBoard
-
Puts a chess piece in the board.
- putRoadSymbol(int, int, char) - Method in class pt.ua.gboard.games.Labyrinth
-
Defines the road symbol at position (line,column)
.
- putWallSymbol(int, int, char) - Method in class pt.ua.gboard.games.Labyrinth
-
Defines the wall symbol at position (line,column)
.
- random() - Static method in class pt.ua.gboard.games.ChessPieces
-
- random() - Static method in class pt.ua.gboard.games.DeckOfCards
-
- rank - Variable in class pt.ua.gboard.games.Card
-
- Rank - Enum in pt.ua.gboard.games
-
- Rectangle - Class in pt.ua.gboard.shapes
-
{..., "rectangle", x, y, width, height, ...}
- Rectangle() - Constructor for class pt.ua.gboard.shapes.Rectangle
-
- rectangle() - Static method in class pt.ua.gboard.shapes.Shapes
-
- RectangleGelem - Class in pt.ua.gboard.basic
-
- RectangleGelem(Color, double) - Constructor for class pt.ua.gboard.basic.RectangleGelem
-
Deprecated.
Constructs a new filled RectangleGelem (1x1 cells).
- RectangleGelem(Color, double, boolean) - Constructor for class pt.ua.gboard.basic.RectangleGelem
-
Deprecated.
Constructs a new RectangleGelem (1x1 cells).
- RectangleGelem(Color, double, int, int) - Constructor for class pt.ua.gboard.basic.RectangleGelem
-
Deprecated.
Constructs a new filled RectangleGelem.
- RectangleGelem(Color, double, int, int, boolean) - Constructor for class pt.ua.gboard.basic.RectangleGelem
-
Deprecated.
Constructs a new RectangleGelem.
- RectangularArea - Class in pt.ua.gboard.basic
-
RectangularArea in GBoard.
- RectangularArea(Position, Position) - Constructor for class pt.ua.gboard.basic.RectangularArea
-
Constructs a new RectangularArea in GBoard (topLeftPosition x bottomRightPosition).
- remove(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Removes a chess piece from the board.
- remove(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Removes a chess piece from the board.
- resetShowRoadBoundaries() - Static method in class pt.ua.gboard.games.LabyrinthGelem
-
Singleton method to reset the visualization of road boundaries (this is the default).
- ROAD - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_E - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_N - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_NE - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_NW - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_S - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_SE - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_SW - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- ROAD_W - Static variable in class pt.ua.gboard.games.LabyrinthGelem
-
- roadSymbol(int, int) - Method in class pt.ua.gboard.games.Labyrinth
-
Get the road symbol at position (line,column)
.
- roadSymbolPositions(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Get all the external road symbol's positions at the maze.
- run(GBoard, int, int, int, int, int, Gelem) - Method in class pt.ua.gboard.GBoardInputHandler
-
Procedure to be automatically executed by GBoard
when
the input handler object is activated.
- selectPosition(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Select position (line,column)
.
- selectPosition(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Select position pos
.
- setColor(Color) - Method in class pt.ua.gboard.basic.MutableOneColorGelem
-
- setGapPercentageSize(double) - Static method in class pt.ua.gboard.games.LabyrinthGelem
-
Singleton method to define the separation gap between a wall and a road.
- setMask(int) - Method in class pt.ua.gboard.GBoardInputHandler
-
Defines a new input mask.
- setNumberOfLayers(int) - Static method in class pt.ua.gboard.games.Labyrinth
-
Define the number of layers to be used when creating the GBoard.
- setShowRoadBoundaries() - Static method in class pt.ua.gboard.games.LabyrinthGelem
-
Singleton method to set the visualization of road boundaries (as a thin yellow square).
- setText(String) - Method in class pt.ua.gboard.basic.MutableStringGelem
-
- setWindowName(String) - Static method in class pt.ua.gboard.games.Labyrinth
-
Define the name used when creating the GBoard.
- Shape - Class in pt.ua.gboard.shapes
-
- Shape() - Constructor for class pt.ua.gboard.shapes.Shape
-
- ShapeGelem - Class in pt.ua.gboard.shapes
-
- ShapeGelem(Object[]) - Constructor for class pt.ua.gboard.shapes.ShapeGelem
-
- ShapeGelem(Object[], boolean) - Constructor for class pt.ua.gboard.shapes.ShapeGelem
-
- ShapeGelem(Object[], int, int) - Constructor for class pt.ua.gboard.shapes.ShapeGelem
-
- ShapeGelem(Object[], int, int, boolean) - Constructor for class pt.ua.gboard.shapes.ShapeGelem
-
- ShapeGelem(Object[][], int, int, boolean) - Constructor for class pt.ua.gboard.shapes.ShapeGelem
-
- Shapes - Class in pt.ua.gboard.shapes
-
- Shapes() - Constructor for class pt.ua.gboard.shapes.Shapes
-
- sleep(int) - Static method in class pt.ua.gboard.GBoard
-
Stops thread execution for msec
milliseconds.
- StringGelem - Class in pt.ua.gboard.basic
-
This gelem writes a string in a rectangle of cells.
- StringGelem(String, Color) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem (1x1 cells using Monospaced font).
- StringGelem(String, Color, double) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem (1x1 cells using Monospaced font).
- StringGelem(String, Color, String) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem (1x1 cells).
- StringGelem(String, Color, int, int) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem (using Monospaced font).
- StringGelem(String, Color, int, int, double) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem (using Monospaced font).
- StringGelem(String, Color, int, int, String) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem.
- StringGelem(String, Color, int, int, double, String) - Constructor for class pt.ua.gboard.basic.StringGelem
-
Constructs a new StringGelem.
- StripedGelem - Class in pt.ua.gboard.basic
-
This gelem draws a vertical striped gelem.
- StripedGelem(Color, int, double, double, boolean) - Constructor for class pt.ua.gboard.basic.StripedGelem
-
Constructs a new StripedGelem (1x1 cells).
- StripedGelem(Color, int, int, int, double, double, boolean) - Constructor for class pt.ua.gboard.basic.StripedGelem
-
Constructs a new StripedGelem.
- suits - Variable in class pt.ua.gboard.games.Card
-
- Suits - Enum in pt.ua.gboard.games
-
- symbolPositions(char) - Method in class pt.ua.gboard.games.Labyrinth
-
Get all the symbol's positions at the maze (applies both to wall and road symbols including space).
- validArguments(Color[], double[][][]) - Static method in class pt.ua.gboard.basic.PolygonComposedGelem
-
- validArguments(Object[], int) - Method in class pt.ua.gboard.shapes.Shape
-
- validColumn(int) - Method in class pt.ua.gboard.GBoard
-
Checks if column is valid.
- validCoord(double) - Method in class pt.ua.gboard.shapes.Shape
-
- validEventType(int) - Method in class pt.ua.gboard.GBoardInputHandler
-
- validForm(int) - Static method in class pt.ua.gboard.games.LabyrinthGelem
-
- validInputMask(int) - Static method in class pt.ua.gboard.GBoardInputHandler
-
Checks if input mask is valid.
- validLayer(int) - Method in class pt.ua.gboard.GBoard
-
Checks if layer is valid.
- validLine(int) - Method in class pt.ua.gboard.GBoard
-
Checks if line is valid.
- validList(Gelem[]) - Static method in class pt.ua.gboard.basic.ComposedGelem
-
An array of gelems are considered valid iff it contains at least one gelem object, and if
all gelem have the same number of lines and number of columns.
- validList(Object[]) - Static method in class pt.ua.gboard.shapes.Shapes
-
- validMapFile(String) - Static method in class pt.ua.gboard.games.Labyrinth
-
Checks if a file path is valid
- validPosition(int, int) - Method in class pt.ua.gboard.games.ChessBoard
-
Is (line,column)
a valid board position?
- validPosition(String) - Method in class pt.ua.gboard.games.ChessBoard
-
Is pos
a valid board position?
- validPosition(int, int) - Method in class pt.ua.gboard.games.Labyrinth
-
Is (line,column)
a position inside the rectangle defined by the maze?
- validPosition(int, int) - Method in class pt.ua.gboard.GBoard
-
Checks if position is valid.
- valueOf(String) - Static method in enum pt.ua.gboard.games.ChessPieceType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum pt.ua.gboard.games.Rank
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum pt.ua.gboard.games.Suits
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum pt.ua.gboard.games.ChessPieceType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum pt.ua.gboard.games.Rank
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum pt.ua.gboard.games.Suits
-
Returns an array containing the constants of this enum type, in
the order they are declared.