public class GridPattern extends TextGrid
1 2 3 *--*--* | | 8* *4 | | *--*--* 7 6 5We number the entry points for each cell as in the diagram above. If a cell is occupied by a character, we define as entry points the points of the above diagram that the character can touch with the end of its lines. For example - has entry points 8 and 4, | and : have entry points 2 and 6, / has 3 and 7, \ has 1 and 5, + has 2, 6, 8 and 4 etc.
TextGrid.Cell, TextGrid.CellColorPair, TextGrid.CellStringPair, TextGrid.CellTagPair
Constructor and Description |
---|
GridPattern() |
GridPattern(java.lang.String row1,
java.lang.String row2,
java.lang.String row3) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatchedBy(TextGrid grid) |
static void |
main(java.lang.String[] args) |
void |
setTo(java.lang.String row1,
java.lang.String row2,
java.lang.String row3) |
void |
setUsesStandardSyntax(boolean b) |
boolean |
usesStandardSyntax() |
add, addToMarkupTags, cellContainsDashedLineChar, clear, containsAtLeastOneDashedLine, copyCellsTo, equals, exactlyOneNeighbourIsBoundary, fillCellsWith, fillContinuousArea, fillContinuousArea, findArrowheads, findBoundariesExpandingFrom, findColorCodes, findMarkupTags, findStrings, followCell, followCell, followCorner, followCorner, followCorner1, followCorner1, followCorner2, followCorner2, followCorner3, followCorner3, followCorner4, followCorner4, followCrossOnLine, followIntersection, followIntersection, followLine, followLine, followLine, followStub, followStub, get, get, getAllBlanksBetweenCharacters, getAllBoundaries, getAllNonBlank, getCellTypeAsString, getDebugString, getEastOf, getEastOf, getHeight, getNorthOf, getNorthOf, getPointMarkersOnLine, getRow, getRows, getSouthOf, getSouthOf, getStringAt, getStringAt, getSubGrid, getTestingSubGrid, getWestOf, getWestOf, getWidth, hasBlankCells, hasEntryPoint, initialiseWithLines, initialiseWithText, isArrowhead, isBlank, isBlank, isBlankBetweenCharacters, isBoundary, isBoundary, isBoundary, isBullet, isBullet, isColumnBlank, isCorner, isCorner, isCorner1, isCorner2, isCorner3, isCorner4, isCross, isCrossOnLine, isEastArrowhead, isHorizontalCrossOnLine, isHorizontalLine, isHorizontalLine, isHorizontalLine, isHorizontalLinesEnd, isHorizontalStarOnLine, isIntersection, isIntersection, isInverseK, isInverseT, isK, isLine, isLinesEnd, isLinesEnd, isLoneDiagonal, isNormalCorner, isNormalCorner, isNorthArrowhead, isOnHorizontalLine, isOnVerticalLine, isOutOfBounds, isOutOfBounds, isPointCell, isRoundCorner, isRoundCorner, isSouthArrowhead, isStarOnLine, isStringsEnd, isStringsStart, isStub, isT, isVerticalCrossOnLine, isVerticalLine, isVerticalLine, isVerticalLine, isVerticalLinesEnd, isVerticalStarOnLine, isWestArrowhead, loadFrom, loadFrom, makeSameSizeAs, matches, matchesAll, matchesAny, matchesAny, otherStringsEndInTheSameColumn, otherStringsStartInTheSameColumn, printDebug, removeArrowheads, removeBoundaries, removeColorCodes, removeMarkupTags, removeNonText, replaceAll, replaceBullets, replaceHumanColorCodes, replacePointMarkersOnLine, replaceTypeOnLine, set, set, setRow, setRow, toString, writeStringTo, writeStringTo
public GridPattern()
public GridPattern(java.lang.String row1, java.lang.String row2, java.lang.String row3)
public boolean usesStandardSyntax()
public void setUsesStandardSyntax(boolean b)
public boolean isMatchedBy(TextGrid grid)
public void setTo(java.lang.String row1, java.lang.String row2, java.lang.String row3)
public static void main(java.lang.String[] args)
Copyright © 2020. All Rights Reserved.