Modifier and Type | Field and Description |
---|---|
protected TextCellFactory |
TextPanel.tcf |
protected TextCellFactory |
VisualInput.tcfLeft |
protected TextCellFactory |
VisualInput.tcfRight |
protected TextCellFactory |
SquidPanel.textFactory |
protected TextCellFactory |
SquidLayers.textFactory |
Modifier and Type | Method and Description |
---|---|
TextCellFactory |
TextCellFactory.addFit(String fit)
Adds the code points in the string to the list of characters that will be
guaranteed to fit.
|
TextCellFactory |
TextCellFactory.addSwap(char find,
char replace)
Adds a pair of chars as a replacement pair, so when the find char is requested to be drawn, the replace char is
used instead.
|
TextCellFactory |
TextCellFactory.addSwap(String find,
String replace)
Adds a pair of Strings (typically both with length 1) as a replacement pair, so when the find String is requested
to be drawn, the replace String is used instead.
|
TextCellFactory |
TextCellFactory.addSwaps(Map<String,String> swaps)
Appends to the mapping of replacement pairs, adding or replacing any entries in the current mapping with the
entries in a Map of String keys to String values.
|
TextCellFactory |
TextCellFactory.antialias(boolean antialias)
Deprecated.
AA is the wave of the future!
|
TextCellFactory |
TextCellFactory.bottomPadding(int padding)
Sets the amount of padding on the bottom side to the provided value.
|
TextCellFactory |
TextCellFactory.clearSwaps()
Clears all replacement pairs this has been told to swap.
|
TextCellFactory |
TextCellFactory.copy() |
TextCellFactory |
TextCellFactory.defaultDistanceFieldFont()
Sets the TextCellFactory to use a square distance field font that will resize to whatever size you request.
|
TextCellFactory |
TextCellFactory.defaultFont()
Sets this factory to use a default 12x24 font that supports Latin, Greek, Cyrillic, and many more, including
box-drawing characters, zodiac signs, playing-card suits, and chess piece symbols.
|
TextCellFactory |
TextCellFactory.defaultNarrowDistanceFieldFont()
Sets the TextCellFactory to use a half-square distance field font that will resize to whatever size you request.
|
TextCellFactory |
TextCellFactory.defaultNarrowFont()
Sets this factory to use a default 12x24 font that renders very accurately, with no gaps between box-drawing
characters and very geometric lines.
|
TextCellFactory |
TextCellFactory.defaultSquareFont()
Sets this factory to use a default 12x12 font, which...
|
TextCellFactory |
TextCellFactory.fit(String fit)
Sets the characters that will be guaranteed to fit to the provided ones.
|
TextCellFactory |
TextCellFactory.font(com.badlogic.gdx.graphics.g2d.BitmapFont bitmapFont)
Sets this factory to use the provided BitmapFont as its font without re-constructing anything.
|
TextCellFactory |
TextCellFactory.font(String fontpath)
Sets this factory to use the provided font.
|
TextCellFactory |
TextCellFactory.fontDistanceField(String fontPath,
String texturePath)
Sets the font to a distance field font with the given String path to a .fnt file and String path to a texture.
|
static TextCellFactory |
DefaultResources.getStretchableCleanFont()
Returns a TextCellFactory already configured to use a variable-width sans-serif font that currently looks
slightly jumbled without certain layout features.
|
static TextCellFactory |
DefaultResources.getStretchableFont()
Returns a TextCellFactory already configured to use a narrow font (twice as tall as it is wide) that should scale
cleanly to many sizes.
|
static TextCellFactory |
DefaultResources.getStretchablePrintFont()
Returns a TextCellFactory already configured to use a variable-width serif font that should look like the serif
fonts used in many novels' main texts, and that should scale cleanly to many sizes.
|
static TextCellFactory |
DefaultResources.getStretchableSquareFont()
Returns a TextCellFactory already configured to use a square font that should scale cleanly to many sizes.
|
static TextCellFactory |
DefaultResources.getStretchableTypewriterFont()
Returns a TextCellFactory already configured to use a narrow typewriter-style serif font that should scale
cleanly to many sizes.
|
TextCellFactory |
SquidPanel.getTextCellFactory() |
TextCellFactory |
SquidLayers.getTextFactory() |
TextCellFactory |
TextCellFactory.height(int height)
Sets the factory's cell height to the provided value.
|
TextCellFactory |
TextCellFactory.initByFont()
Initializes the factory to then be able to create text cells on demand.
|
TextCellFactory |
TextCellFactory.initBySize()
Initializes the factory to then be able to create text cells on demand.
|
TextCellFactory |
TextCellFactory.initVerbatim()
Initializes the factory to then be able to create text cells on demand.
|
TextCellFactory |
TextCellFactory.leftPadding(int padding)
Sets the amount of padding on the left side to the provided value.
|
TextCellFactory |
TextCellFactory.padding(int padding)
Sets the amount of padding on all sides to the provided value.
|
TextCellFactory |
TextCellFactory.removeSwap(char find)
Removes the replacement pair, if present, that searches for the given key, find.
|
TextCellFactory |
TextCellFactory.removeSwap(String find)
Removes the replacement pair, if present, that searches for the given key, find.
|
TextCellFactory |
TextCellFactory.rightPadding(int padding)
Sets the amount of padding on the right side to the provided value.
|
TextCellFactory |
TextCellFactory.setAllSwaps(Map<String,String> swaps)
Sets the mapping of replacement pairs to a different one as a Map of String keys to String values.
|
TextCellFactory |
TextCellFactory.setColorCenter(squidpony.IColorCenter<com.badlogic.gdx.graphics.Color> icc) |
TextCellFactory |
TextCellFactory.setSmoothingMultiplier(float smoothingMultiplier)
If this uses a distance field font, the smoothing multiplier affects how crisp or blurry lines are, with higher
numbers generally resulting in more crisp fonts, but numbers that are too high cause jagged aliasing.
|
TextCellFactory |
TextCellFactory.topPadding(int padding)
Sets the amount of padding on the top side to the provided value.
|
TextCellFactory |
TextCellFactory.tweakHeight(int height)
Sets the factory's height used for text to the provided value, but does not change the size of a cell.
|
TextCellFactory |
TextCellFactory.tweakWidth(int width)
Sets the factory's height used for text to the provided value, but does not change the size of a cell.
|
TextCellFactory |
TextCellFactory.width(int width)
Sets the factory's cell width to the provided value.
|
Modifier and Type | Method and Description |
---|---|
SquidPanel |
SquidPanelBuilder.buildByCells(int hCells,
int vCells,
int cellWidth,
int cellHeight,
TextCellFactory tcf_) |
SquidPanel |
IPanelBuilder.buildByCells(int hCells,
int vCells,
int cellWidth,
int cellHeight,
TextCellFactory tcf_)
Builds a panel by the number of requested cells.
|
SquidPanel |
SquidPanelBuilder.buildScreenWide(int screenWidth,
int screenHeight,
int desiredCellSize,
TextCellFactory tcf) |
SquidPanel |
IPanelBuilder.buildScreenWide(int screenWidth,
int screenHeight,
int desiredCellSize,
TextCellFactory tcf)
This method builds a panel whose number of cells is such that the cell
size is close to
desiredCellSize . |
Constructor and Description |
---|
SquidLayers(int gridWidth,
int gridHeight,
int cellWidth,
int cellHeight,
TextCellFactory tcf)
Create a new SquidLayers widget with the given path pre-constructed TextCellFactory, the given number of cells
for gridWidth and gridHeight, and the size in pixels for each cell given by cellWidth and cellHeight.
|
SquidLayers(int gridWidth,
int gridHeight,
int cellWidth,
int cellHeight,
TextCellFactory tcf,
SquidColorCenter bgColorCenter,
SquidColorCenter fgColorCenter)
Create a new SquidLayers widget with the given TextCellFactory, the given number of cells for gridWidth
and gridHeight, the size in pixels for each cell given by cellWidth and cellHeight, and the given
SquidColorCenters for background and foreground.
|
SquidMessageBox(int gridWidth,
int gridHeight,
TextCellFactory factory)
Builds a panel with the given grid size and all other parameters determined by the factory.
|
SquidMessageBox(int gridWidth,
int gridHeight,
TextCellFactory factory,
squidpony.IColorCenter<com.badlogic.gdx.graphics.Color> center)
Builds a panel with the given grid size and all other parameters determined by the factory.
|
SquidPanel(int gridWidth,
int gridHeight,
TextCellFactory factory)
Builds a panel with the given grid size and all other parameters determined by the factory.
|
SquidPanel(int gridWidth,
int gridHeight,
TextCellFactory factory,
squidpony.IColorCenter<com.badlogic.gdx.graphics.Color> center)
Builds a panel with the given grid size and all other parameters determined by the factory.
|
SquidPanel(int gridWidth,
int gridHeight,
TextCellFactory factory,
squidpony.IColorCenter<com.badlogic.gdx.graphics.Color> center,
float xOffset,
float yOffset)
Builds a panel with the given grid size and all other parameters determined by the factory.
|
TextPanel(squidpony.panel.IMarkup<T> markup,
TextCellFactory distanceFieldFont)
The text to display MUST be set later on with
TextPanel.init(float, float, Collection) . |
Copyright © 2012–2016. All rights reserved.