Index

A B C D F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addNotify() - Method in class org.inspirenxe.strata.swing.StrataPanel
Sizes the screens and paints the first frame when the panel is shown.
advance(int, float) - Method in class org.inspirenxe.strata.swing.BitmapFont.Builder
Gives a character a fixed advance with nothing drawn, unless it already has a glyph or advance.
ascent(TextStyle) - Method in class org.inspirenxe.strata.swing.AwtFont
 
ascent(TextStyle) - Method in class org.inspirenxe.strata.swing.BitmapFont
 
ascent(TextStyle) - Method in interface org.inspirenxe.strata.swing.SwingFont
Returns how far the baseline sits below the top of a line.
ascent(TextStyle) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Returns the ascent of the font the style is drawn with, where the canvas puts the baseline.
AwtFont - Class in org.inspirenxe.strata.swing
A SwingFont that draws an AWT font.
AwtFont(Font) - Constructor for class org.inspirenxe.strata.swing.AwtFont
Creates a font.

B

backdrop(Rect, float, float, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
base(ThemeId) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
 
bases(ThemeId) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
 
begin(Graphics2D) - Method in class org.inspirenxe.strata.swing.SwingCanvas
Points the canvas at the graphics for a new frame, and forgets the last frame's clip, transform, opacity, smoothing and cursor stacks.
BitmapFont - Class in org.inspirenxe.strata.swing
A SwingFont that draws glyphs cut from images, for previewing engines whose fonts are bitmaps.
BitmapFont.Builder - Class in org.inspirenxe.strata.swing
Collects a font's sheets and advances.
build() - Method in class org.inspirenxe.strata.swing.BitmapFont.Builder
Builds the font.
builder(float, float) - Static method in class org.inspirenxe.strata.swing.BitmapFont
Starts a font.
button(MouseEvent) - Static method in class org.inspirenxe.strata.swing.SwingInput
Maps the button of an AWT mouse event.

C

capabilities() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
classPath(ClassLoader, SpriteResolver) - Static method in interface org.inspirenxe.strata.swing.SpriteSource
Returns a source that reads images from the class path, at the resource a resolver names.
clear() - Method in class org.inspirenxe.strata.swing.SwingSprites
Forgets every loaded image, so each is loaded from the source again when next drawn.
clipboard() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
clock() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
conventions() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 

D

DEFAULT - Static variable in interface org.inspirenxe.strata.swing.SpriteResolver
The default layout: assets/<namespace>/sprites/<path>.png.
DEFAULT - Static variable in interface org.inspirenxe.strata.swing.ThemePathResolver
The default layout: assets/<namespace>/themes/<path>.json.
defaults() - Static method in class org.inspirenxe.strata.swing.SwingTextMetrics
Returns metrics for the logical Dialog font at 9 units.
defaultSize() - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Returns the size text of size 0 measures and draws at: the normal font's own size.
defaultTheme() - Method in class org.inspirenxe.strata.swing.SwingThemeSource
 
densePath(String, float) - Static method in interface org.inspirenxe.strata.swing.SpriteSource
Returns the path of a denser image: @2x or @1.5x put before the file's extension, or after the name when it has none.
documents(ThemeId) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
 
draw(Graphics2D, TextSpan, float, float, int) - Method in class org.inspirenxe.strata.swing.AwtFont
 
draw(Graphics2D, TextSpan, float, float, int) - Method in class org.inspirenxe.strata.swing.BitmapFont
 
draw(Graphics2D, TextSpan, float, float, int) - Method in interface org.inspirenxe.strata.swing.SwingFont
Draws a span in one color.
drawRightToLeft(Graphics2D, TextSpan, float, float, int) - Method in class org.inspirenxe.strata.swing.AwtFont
Draws the run laid out right to left, so Java2D orders it, mirrors its brackets and joins its letters.
drawRightToLeft(Graphics2D, TextSpan, float, float, int) - Method in class org.inspirenxe.strata.swing.BitmapFont
Draws the run from the right: each stretch of glyphs with its characters reversed and its brackets mirrored, and each stretch the fallback draws through the fallback's own right-to-left drawing.
drawRightToLeft(Graphics2D, TextSpan, float, float, int) - Method in interface org.inspirenxe.strata.swing.SwingFont
Draws a run of right-to-left text in one color: the span holds the run in logical order, and the font draws its first character at the right, joining letters where the script does, with its left edge at x and as wide as SwingFont.width(TextSpan) measures it.

F

fallback(SwingFont) - Method in class org.inspirenxe.strata.swing.BitmapFont.Builder
Sets the font for characters with no glyph.
fileDialogs() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
fill(Rect, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
fillEllipse(Rect, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
fillGradient(Rect, int, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
fillGradient(Rect, Gradient) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
fillRoundRect(Rect, float, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
fillShape(Shape, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
font(TextStyle) - Method in class org.inspirenxe.strata.swing.AwtFont
Returns the AWT font for a style.
font(TextStyle) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Returns the font a style is measured and drawn with, at the font's own size.

G

get(SpriteId) - Method in class org.inspirenxe.strata.swing.SwingSprites
Returns a sprite's image.
get(SpriteId, float) - Method in class org.inspirenxe.strata.swing.SwingSprites
Returns the densest image of a sprite that a density can show: the one of density 2 from 2 device pixels per unit, of 1.5 from 1.5, and the plain image otherwise or when the denser one is missing.
getPreferredSize() - Method in class org.inspirenxe.strata.swing.StrataPanel
Returns what the top screen's content asks for, in pixels at the panel's scale plus the insets, or 960 by 600 pixels while no screen is open.

H

has(int) - Method in class org.inspirenxe.strata.swing.BitmapFont
Returns whether the font has a glyph or a fixed advance for a character, so the fallback is not used for it.

I

image(BufferedImage) - Static method in class org.inspirenxe.strata.swing.SwingVisuals
Returns a visual of an image whose natural size is the image's size in pixels, one UI unit per pixel.
image(BufferedImage, float, float) - Static method in class org.inspirenxe.strata.swing.SwingVisuals
Returns a visual of an image with a natural size of its own, for images drawn smaller or larger than their pixels.
isDefault() - Method in class org.inspirenxe.strata.swing.StrataPanel
Returns whether this panel is the default, the one Strata.screens() opens screens on.

K

key(KeyEvent) - Static method in class org.inspirenxe.strata.swing.SwingInput
Maps the key of an AWT key event, using its key code and location.

L

layout(TextSpan) - Method in class org.inspirenxe.strata.swing.AwtFont
Lays out a span for drawing: the glyphs and their positions in UI units, at the settings widths are measured with.
line(float, float, float, float, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
lineHeight(TextStyle) - Method in class org.inspirenxe.strata.swing.AwtFont
 
lineHeight(TextStyle) - Method in class org.inspirenxe.strata.swing.BitmapFont
 
lineHeight(TextStyle) - Method in interface org.inspirenxe.strata.swing.SwingFont
Returns the height of one line of text.
lineHeight(TextStyle) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
 
load(SpriteId) - Method in interface org.inspirenxe.strata.swing.SpriteSource
Loads a sprite's image.
loadDense(SpriteId, float) - Method in interface org.inspirenxe.strata.swing.SpriteSource
Loads a sprite's image drawn for a denser display, with density image pixels for each pixel of the plain image, so it shows the same sprite at the same size in UI units, only sharper.

M

manageWindow(Window) - Method in class org.inspirenxe.strata.swing.StrataPanel
Lets the panel run a window.
metrics(TextStyle) - Method in class org.inspirenxe.strata.swing.AwtFont
Returns the AWT metrics for a style.
MISSING_SPRITE_COLOR - Static variable in class org.inspirenxe.strata.swing.SwingCanvas
What a sprite that cannot be found draws as.
modifiers(InputEvent) - Static method in class org.inspirenxe.strata.swing.SwingInput
Reads the modifiers held during an AWT input event.

N

nextLayer() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
nineSlice(SpriteId, Rect, Insets, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 

O

org.inspirenxe.strata.swing - package org.inspirenxe.strata.swing
The Java2D/Swing adapter.

P

paintComponent(Graphics) - Method in class org.inspirenxe.strata.swing.StrataPanel
 
pixels(PixelBuffer, Rect, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pixelsPerUnit() - Method in class org.inspirenxe.strata.swing.StrataPanel
Returns how many device pixels one UI unit covers: the scale times the display's scale, which Java2D applies to everything the panel draws.
polyline(float[], int, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
popClip() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
popOpacity() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
popSampling() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
popSmoothing() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
popTransform() - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushClip(Rect) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushOpacity(float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushRoundClip(Rect, float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushSampling(Sampling) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushScale(float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushSmoothing(boolean) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
pushTranslation(float, float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 

R

register(FontId, Font) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Registers an AWT font under an id, as an AwtFont whose bold and italic are derived from it.
register(FontId, SwingFont) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Registers a family under an id, replacing any family registered under it before, so styles that name the id draw with it.
register(ThemeId, List) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
Registers base files under an id, replacing any base theme or base files registered under it before, and reloads.
register(ThemeId, Theme) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
Registers a theme built in code under an id, replacing any base theme or base files registered under it before, and reloads.
registered(FontId) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Returns the family registered under an id.
reload() - Method in class org.inspirenxe.strata.swing.SwingThemeSource
Drops the cached files and changes SwingThemeSource.version(), so open hosts read the files again on their next layout or render.
removeNotify() - Method in class org.inspirenxe.strata.swing.StrataPanel
Stops waiting for timed changes when the panel is removed from its window.
render(Screen, Theme, int, int, float) - Static method in class org.inspirenxe.strata.swing.SwingSnapshot
Opens a screen on a fresh screen stack, draws one frame, and closes it again.
render(Screen, Theme, int, int, float, Consumer) - Static method in class org.inspirenxe.strata.swing.SwingSnapshot
Opens a screen on a fresh screen stack, feeds it input, draws one frame, and closes it again.
render(Screen, Theme, int, int, float, SwingSprites, Consumer) - Static method in class org.inspirenxe.strata.swing.SwingSnapshot
Opens a screen on a fresh screen stack, feeds it input, draws one frame with the given sprites, and closes it again.
render(SwingPlatform, Screen, Theme, int, int, float, SwingSprites, Consumer) - Static method in class org.inspirenxe.strata.swing.SwingSnapshot
Opens a screen on a fresh screen stack of a given platform, feeds it input, draws one frame, and closes it again.
render(SwingPlatform, Screen, ThemeRef, int, int, float, SwingSprites, Consumer) - Static method in class org.inspirenxe.strata.swing.SwingSnapshot
Opens a screen on a fresh screen stack whose theme is resolved from the platform's theme source, feeds it input, draws one frame, and closes it again, so a snapshot shows what theme files make of a theme.
requestCursor(CursorKind) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
requestedCursor() - Method in class org.inspirenxe.strata.swing.SwingCanvas
Returns the cursor the host asked for during the frame.
resolve(ThemeRef) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
Resolves a ref against this source once, with the themes and overrides added in code, as a host does when it opens.
resourcePath(SpriteId) - Method in interface org.inspirenxe.strata.swing.SpriteResolver
Returns the resource path of a sprite's image.
resourcePath(ThemeId) - Method in interface org.inspirenxe.strata.swing.ThemePathResolver
Returns the resource path of a theme's files.

S

scale() - Method in class org.inspirenxe.strata.swing.StrataPanel
Returns the number of pixels per UI unit, before the display's own scale.
scheduler() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
screens() - Method in class org.inspirenxe.strata.swing.StrataPanel
Returns the screens this panel shows, which is also this panel's ScreenController.
setBackdrop(BufferedImage) - Method in class org.inspirenxe.strata.swing.StrataPanel
Gives the panel the image that frosted glass blurs: what the application shows behind the screens.
setBackdrop(BufferedImage, float, float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
Gives the canvas the image that backdrops blur, such as the scene an application draws behind its screens.
setBounds(int, int, int, int) - Method in class org.inspirenxe.strata.swing.StrataPanel
Sets the panel's size and the screens' size to match.
setDefault() - Method in class org.inspirenxe.strata.swing.StrataPanel
Marks this panel as the default, so that Strata.screens() returns its StrataPanel.screens() and screens opened through it show here.
setDefaultTheme(ThemeId) - Method in class org.inspirenxe.strata.swing.SwingThemeSource
Sets the platform's default theme for every panel whose platform reads this source, and reloads, so open screens in the default theme change to it on their next layout or render.
setScale(float) - Method in class org.inspirenxe.strata.swing.StrataPanel
Changes the number of pixels per UI unit, such as when the user zooms.
setSprites(SwingSprites) - Method in class org.inspirenxe.strata.swing.StrataPanel
Changes where sprite images come from, starting with the next frame, such as when a tool switches between sets of images.
shadow(Rect, float, float, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
sheet(BufferedImage, float, float, List) - Method in class org.inspirenxe.strata.swing.BitmapFont.Builder
Adds a sheet of glyphs.
showsCursor(CursorKind) - Method in class org.inspirenxe.strata.swing.SwingCanvas
Answers true for the arrow, text, hand, crosshair, the resize kinds, the diagonals included, and wait, which AWT has, and for not allowed, progress, grab, grabbing, copy, no drop and help where the toolkit makes custom cursors, which a headless one does not.
size() - Method in class org.inspirenxe.strata.swing.AwtFont
Returns the base font's point size, in UI units.
size() - Method in interface org.inspirenxe.strata.swing.SwingFont
Returns the size the font measures and draws at, in UI units: the height of its em square, as a point size is.
size(SpriteId) - Method in class org.inspirenxe.strata.swing.SwingSprites
Returns a sprite's size in UI units: its plain image's width and height in pixels, one pixel to a unit.
sprite(SpriteId, Rect, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
spriteRegion(SpriteId, Rect, float, float, float, float, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
Draws the part straight from the image, with the part's edges rounded to the nearest image pixel, so pieces drawn side by side show no pixels from beyond their part at any scale.
SpriteResolver - Interface in org.inspirenxe.strata.swing
Turns a sprite id into the class path resource that holds its image.
SpriteSource - Interface in org.inspirenxe.strata.swing
Loads the image for a sprite id, from wherever the images live: the class path, a folder, a zip file, or images made in code.
StrataPanel - Class in org.inspirenxe.strata.swing
A Swing component that shows a stack of Strata screens.
StrataPanel(SwingPlatform, Theme, float) - Constructor for class org.inspirenxe.strata.swing.StrataPanel
Creates a panel with an empty screen stack.
StrataPanel(SwingPlatform, Theme, float, SwingSprites) - Constructor for class org.inspirenxe.strata.swing.StrataPanel
Creates a panel with an empty screen stack.
strokeArc(Rect, float, float, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
strokeEllipse(Rect, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
strokeRect(Rect, float, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
strokeShape(Shape, Stroke, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
SwingCanvas - Class in org.inspirenxe.strata.swing
The Swing Canvas: draws straight onto a Graphics2D, in call order.
SwingCanvas(SwingTextMetrics, SwingSprites) - Constructor for class org.inspirenxe.strata.swing.SwingCanvas
Creates a canvas.
SwingFont - Interface in org.inspirenxe.strata.swing
A font the Swing adapter measures and draws text with.
SwingInput - Class in org.inspirenxe.strata.swing
Maps AWT key codes, mouse buttons and modifier masks to Strata's input types.
SwingPlatform - Class in org.inspirenxe.strata.swing
The Swing Platform.
SwingPlatform(SwingTextMetrics) - Constructor for class org.inspirenxe.strata.swing.SwingPlatform
Creates the platform with a SwingThemeSource on this class's class loader.
SwingPlatform(SwingTextMetrics, ThemeSource) - Constructor for class org.inspirenxe.strata.swing.SwingPlatform
Creates the platform.
SwingSnapshot - Class in org.inspirenxe.strata.swing
Renders one frame of a screen to an image, with no window or display.
SwingSprites - Class in org.inspirenxe.strata.swing
Loads sprites for the Swing canvas from a SpriteSource: by default the class path, at the resource a SpriteResolver names (SpriteResolver.DEFAULT unless one is given).
SwingSprites(ClassLoader) - Constructor for class org.inspirenxe.strata.swing.SwingSprites
Creates a loader that reads the class path with SpriteResolver.DEFAULT.
SwingSprites(ClassLoader, SpriteResolver) - Constructor for class org.inspirenxe.strata.swing.SwingSprites
Creates a loader that reads the class path.
SwingSprites(SpriteSource) - Constructor for class org.inspirenxe.strata.swing.SwingSprites
Creates a loader that reads from any source.
SwingTextMetrics - Class in org.inspirenxe.strata.swing
The Swing TextMetrics: picks a SwingFont for each text style and measures with it.
SwingTextMetrics(Font) - Constructor for class org.inspirenxe.strata.swing.SwingTextMetrics
Creates metrics for an AWT base font and the logical Monospaced font at the same size.
SwingTextMetrics(Font, Font) - Constructor for class org.inspirenxe.strata.swing.SwingTextMetrics
Creates metrics for an AWT base font and an AWT monospaced font.
SwingTextMetrics(SwingFont, SwingFont) - Constructor for class org.inspirenxe.strata.swing.SwingTextMetrics
Creates metrics for any two fonts, such as a BitmapFont for normal text.
SwingThemeSource - Class in org.inspirenxe.strata.swing
Finds theme files on the class path at assets/<namespace>/themes/<path>.json, next to where SpriteResolver.DEFAULT looks for sprites, or wherever a ThemePathResolver says.
SwingThemeSource(ClassLoader) - Constructor for class org.inspirenxe.strata.swing.SwingThemeSource
Creates a source.
SwingThemeSource(ClassLoader, ThemePathResolver) - Constructor for class org.inspirenxe.strata.swing.SwingThemeSource
Creates a source that finds theme files where a resolver says.
SwingTranslations - Class in org.inspirenxe.strata.swing
Sets where translated text comes from in a Swing application.
SwingVisuals - Class in org.inspirenxe.strata.swing
Makes Visuals that SwingCanvas draws, so Swing code can show its own images through the API.

T

text(TextSpan, float, float) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 
text(TextSpan, float, float, boolean) - Method in class org.inspirenxe.strata.swing.SwingCanvas
Draws a right-to-left run with SwingFont.drawRightToLeft(Graphics2D, TextSpan, float, float, int), which orders and shapes it; a left-to-right one as SwingCanvas.text(TextSpan, float, float) does.
textInput() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
textMetrics() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
ThemePathResolver - Interface in org.inspirenxe.strata.swing
Turns a theme id into the class path resource that holds its theme files, for SwingThemeSource.
themes() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
TINT_CACHE - Static variable in class org.inspirenxe.strata.swing.BitmapFont
How many tinted copies of each sheet are kept, most recently used first.

U

uiExecutor() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
uiThreadCheck() - Method in class org.inspirenxe.strata.swing.SwingPlatform
 
unregister(FontId) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
Removes the family registered under an id, so styles that name it draw with the normal font again.
use(ResourceBundle) - Static method in class org.inspirenxe.strata.swing.SwingTranslations
Translates with a resource bundle.
use(Translator) - Static method in class org.inspirenxe.strata.swing.SwingTranslations
Translates with any translator, such as one that reads a different file format.

V

version() - Method in class org.inspirenxe.strata.swing.SwingSprites
Returns a number that changes on every SwingSprites.clear(), so a canvas knows when its tinted copies are stale.
version() - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
 
version() - Method in class org.inspirenxe.strata.swing.SwingThemeSource
 
visual(Visual, Rect, int) - Method in class org.inspirenxe.strata.swing.SwingCanvas
 

W

width(TextSpan) - Method in class org.inspirenxe.strata.swing.AwtFont
 
width(TextSpan) - Method in class org.inspirenxe.strata.swing.BitmapFont
 
width(TextSpan) - Method in interface org.inspirenxe.strata.swing.SwingFont
Returns how far drawing a span advances at the font's own size.
width(TextSpan) - Method in class org.inspirenxe.strata.swing.SwingTextMetrics
 
A B C D F G H I K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form