Modifier and Type | Field and Description |
---|---|
static TerminalPosition |
TerminalPosition.OFFSET_1x1
Constant for the 1x1 position (one offset in both directions from top-left)
|
static TerminalPosition |
TerminalPosition.TOP_LEFT_CORNER
Constant for the top-left corner (0x0)
|
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
TerminalPosition.withColumn(int column)
Creates a new TerminalPosition object representing a position with the same row index as this but with a
supplied column index.
|
TerminalPosition |
TerminalPosition.withRelative(int deltaColumn,
int deltaRow)
Creates a new TerminalPosition object that is 'translated' by an amount of rows and columns specified by the two
parameters.
|
TerminalPosition |
TerminalPosition.withRelative(TerminalPosition translate)
Creates a new TerminalPosition object that is 'translated' by an amount of rows and columns specified by another
TerminalPosition.
|
TerminalPosition |
TerminalPosition.withRelativeColumn(int delta)
Creates a new TerminalPosition object representing a position on the same row, but with a column offset by a
supplied value.
|
TerminalPosition |
TerminalPosition.withRelativeRow(int delta)
Creates a new TerminalPosition object representing a position on the same column, but with a row offset by a
supplied value.
|
TerminalPosition |
TerminalPosition.withRow(int row)
Creates a new TerminalPosition object representing a position with the same column index as this but with a
supplied row index.
|
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
TerminalPosition.withRelative(TerminalPosition translate)
Creates a new TerminalPosition object that is 'translated' by an amount of rows and columns specified by another
TerminalPosition.
|
Modifier and Type | Method and Description |
---|---|
TextGraphics |
TextGraphics.drawImage(TerminalPosition topLeft,
TextImage image)
Takes a TextImage and draws it on the surface this TextGraphics is targeting, given the coordinates on the target
that is specifying where the top-left corner of the image should be drawn.
|
TextGraphics |
ImmutableThemedTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image) |
TextGraphics |
AbstractTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image) |
TextGraphics |
TextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize)
Takes a TextImage and draws it on the surface this TextGraphics is targeting, given the coordinates on the target
that is specifying where the top-left corner of the image should be drawn.
|
TextGraphics |
ImmutableThemedTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
AbstractTextGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
TextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
char character)
Draws a line from a specified position to a specified position, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
char character) |
TextGraphics |
AbstractTextGraphics.drawLine(TerminalPosition fromPosition,
TerminalPosition toPoint,
char character) |
TextGraphics |
TextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character)
Draws a line from a specified position to a specified position, using a supplied TextCharacter.
|
TextGraphics |
ImmutableThemedTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
TextGraphics |
TextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character)
Draws the outline of a rectangle with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character)
Draws the outline of a rectangle with a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
ImmutableThemedTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character)
Draws the outline of a triangle on the screen, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
AbstractTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
TextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character)
Draws the outline of a triangle on the screen, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character)
Takes a rectangle and fills it with a particular character (and the currently active colors and
modifiers).
|
TextGraphics |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character)
Takes a rectangle and fills it using a particular TextCharacter, ignoring the current colors and modifiers of
this TextGraphics.
|
TextGraphics |
ImmutableThemedTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character)
Draws a filled triangle, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
AbstractTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
TextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character)
Draws a filled triangle, using a supplied character.
|
TextGraphics |
ImmutableThemedTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextCharacter |
TextGraphics.getCharacter(TerminalPosition position)
Returns the character at the specific position in the terminal.
|
TextCharacter |
ImmutableThemedTextGraphics.getCharacter(TerminalPosition position) |
TextCharacter |
AbstractTextGraphics.getCharacter(TerminalPosition position) |
TextCharacter |
TextImage.getCharacterAt(TerminalPosition position)
Returns the character stored at a particular position in this image
|
TextCharacter |
BasicTextImage.getCharacterAt(TerminalPosition position) |
TextGraphics |
TextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size)
Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
TextGraphics |
AbstractTextGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
TextGraphics |
TextGraphics.putString(TerminalPosition position,
String string)
Shortcut to calling:
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.putString(TerminalPosition position,
String string) |
TextGraphics |
AbstractTextGraphics.putString(TerminalPosition position,
String string) |
TextGraphics |
TextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers)
Shortcut to calling:
|
ImmutableThemedTextGraphics |
ImmutableThemedTextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
TextGraphics |
AbstractTextGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
TextGraphics |
TextGraphics.setCharacter(TerminalPosition position,
char character)
Sets the character at the current position to the specified value
|
TextGraphics |
ImmutableThemedTextGraphics.setCharacter(TerminalPosition position,
char character) |
TextGraphics |
AbstractTextGraphics.setCharacter(TerminalPosition position,
char character) |
TextGraphics |
TextGraphics.setCharacter(TerminalPosition position,
TextCharacter character)
Sets the character at the current position to the specified value, without using the current colors and modifiers
of this TextGraphics.
|
TextGraphics |
ImmutableThemedTextGraphics.setCharacter(TerminalPosition position,
TextCharacter character) |
TextGraphics |
AbstractTextGraphics.setCharacter(TerminalPosition position,
TextCharacter textCharacter) |
void |
TextImage.setCharacterAt(TerminalPosition position,
TextCharacter character)
Sets the character at a specific position in the image to a particular TextCharacter.
|
void |
BasicTextImage.setCharacterAt(TerminalPosition position,
TextCharacter character) |
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
Window.fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.
|
TerminalPosition |
BasePane.fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.
|
TerminalPosition |
AbstractWindow.fromGlobal(TerminalPosition globalPosition) |
TerminalPosition |
TextBox.getCaretPosition()
Returns the position of the caret, as a
TerminalPosition where the row and columns equals the coordinates
in a multi-line TextBox and for single-line TextBox you can ignore the row component. |
TerminalPosition |
Interactable.getCursorLocation()
Returns, in local coordinates, where to put the cursor on the screen when this component has focus.
|
TerminalPosition |
Button.getCursorLocation() |
TerminalPosition |
ActionListBox.getCursorLocation() |
TerminalPosition |
AbstractInteractableComponent.getCursorLocation() |
TerminalPosition |
Button.DefaultButtonRenderer.getCursorLocation(Button button) |
TerminalPosition |
Button.FlatButtonRenderer.getCursorLocation(Button component) |
TerminalPosition |
CheckBox.DefaultCheckBoxRenderer.getCursorLocation(CheckBox component) |
TerminalPosition |
ComboBox.DefaultComboBoxRenderer.getCursorLocation(ComboBox<V> comboBox) |
TerminalPosition |
InteractableRenderer.getCursorLocation(T component) |
TerminalPosition |
AbstractListBox.DefaultListBoxRenderer.getCursorLocation(T listBox) |
TerminalPosition |
TextBox.DefaultTextBoxRenderer.getCursorLocation(TextBox component) |
TerminalPosition |
Window.getCursorPosition()
Returns the position of where to put the terminal cursor according to this window.
|
TerminalPosition |
MultiWindowTextGUI.getCursorPosition() |
TerminalPosition |
BasePane.getCursorPosition()
Returns the position of where to put the terminal cursor according to this root container.
|
protected abstract TerminalPosition |
AbstractTextGUI.getCursorPosition()
Top-level method for drilling in to the GUI and figuring out, in global coordinates, where to place the text
cursor on the screen at this time.
|
TerminalPosition |
AbstractBasePane.getCursorPosition() |
TerminalPosition |
WindowDecorationRenderer.getOffset(Window window)
Returns how much to step right and down from the top left position of the window decorations to the top left
position of the actual window
|
TerminalPosition |
EmptyWindowDecorationRenderer.getOffset(Window window) |
TerminalPosition |
DefaultWindowDecorationRenderer.getOffset(Window window) |
TerminalPosition |
Window.getPosition()
Returns the position of the window, as last specified by the window manager.
|
TerminalPosition |
Component.getPosition()
Returns the top-left corner of this component, measured from its parent.
|
TerminalPosition |
AbstractWindow.getPosition() |
TerminalPosition |
AbstractComponent.getPosition() |
TerminalPosition |
TextBox.TextBoxRenderer.getViewTopLeft() |
TerminalPosition |
TextBox.DefaultTextBoxRenderer.getViewTopLeft() |
TerminalPosition |
Border.BorderRenderer.getWrappedComponentTopLeftOffset()
How large is the offset from the top left corner of the border to the top left corner of the wrapped component?
|
TerminalPosition |
Component.toBasePane(TerminalPosition position)
Translates a position local to the container to the base pane's coordinate space.
|
TerminalPosition |
AbstractComponent.toBasePane(TerminalPosition position) |
TerminalPosition |
AbstractBorder.toBasePane(TerminalPosition position) |
TerminalPosition |
AbstractBasePane.ContentHolder.toBasePane(TerminalPosition position) |
TerminalPosition |
Window.toGlobal(TerminalPosition localPosition)
Returns a position in the window's local coordinate space to global coordinates
|
TerminalPosition |
Component.toGlobal(TerminalPosition position)
Translates a position local to the container to global coordinate space.
|
TerminalPosition |
BasePane.toGlobal(TerminalPosition localPosition)
Returns a position in a root container's local coordinate space to global coordinates
|
TerminalPosition |
AbstractWindow.toGlobal(TerminalPosition localPosition) |
TerminalPosition |
AbstractComponent.toGlobal(TerminalPosition position) |
TerminalPosition |
AbstractBorder.toGlobal(TerminalPosition position) |
TerminalPosition |
AbstractBasePane.ContentHolder.toGlobal(TerminalPosition position) |
Modifier and Type | Method and Description |
---|---|
TextGraphics |
TextGUIGraphics.drawImage(TerminalPosition topLeft,
TextImage image) |
TextGraphics |
TextGUIGraphics.drawImage(TerminalPosition topLeft,
TextImage image,
TerminalPosition sourceImageTopLeft,
TerminalSize sourceImageSize) |
TextGraphics |
TextGUIGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
char character) |
TextGraphics |
TextGUIGraphics.drawLine(TerminalPosition fromPoint,
TerminalPosition toPoint,
TextCharacter character) |
TextGraphics |
TextGUIGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGUIGraphics.drawRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGUIGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
TextGUIGraphics.drawTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TextGraphics |
TextGUIGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
char character) |
TextGraphics |
TextGUIGraphics.fillRectangle(TerminalPosition topLeft,
TerminalSize size,
TextCharacter character) |
TextGraphics |
TextGUIGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
char character) |
TextGraphics |
TextGUIGraphics.fillTriangle(TerminalPosition p1,
TerminalPosition p2,
TerminalPosition p3,
TextCharacter character) |
TerminalPosition |
Window.fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.
|
TerminalPosition |
BasePane.fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.
|
TerminalPosition |
AbstractWindow.fromGlobal(TerminalPosition globalPosition) |
TextCharacter |
TextGUIGraphics.getCharacter(TerminalPosition position) |
Interactable |
InteractableLookupMap.getInteractableAt(TerminalPosition position)
Looks up what interactable component is as a particular location in the map
|
TextGUIGraphics |
TextGUIGraphics.newTextGraphics(TerminalPosition topLeftCorner,
TerminalSize size) |
TextGUIGraphics |
TextGUIGraphics.putString(TerminalPosition position,
String string) |
TextGUIGraphics |
TextGUIGraphics.putString(TerminalPosition position,
String string,
SGR extraModifier,
SGR... optionalExtraModifiers) |
TextGraphics |
TextGUIGraphics.setCharacter(TerminalPosition position,
char character) |
TextGraphics |
TextGUIGraphics.setCharacter(TerminalPosition position,
TextCharacter character) |
void |
Window.setContentOffset(TerminalPosition offset)
This method is called by the GUI system to update the window on, as of the last drawing operation, the distance
from the top-left position of the window including decorations to the top-left position of the actual content
area.
|
void |
AbstractWindow.setContentOffset(TerminalPosition offset) |
void |
Window.setPosition(TerminalPosition topLeft)
This method is called by the GUI system to update the window on where the window manager placed it.
|
Component |
Component.setPosition(TerminalPosition position)
This method will be called by the layout manager when it has decided where the component is to be located.
|
void |
AbstractWindow.setPosition(TerminalPosition topLeft) |
T |
AbstractComponent.setPosition(TerminalPosition position) |
void |
TextBox.TextBoxRenderer.setViewTopLeft(TerminalPosition position) |
void |
TextBox.DefaultTextBoxRenderer.setViewTopLeft(TerminalPosition position) |
TerminalPosition |
Component.toBasePane(TerminalPosition position)
Translates a position local to the container to the base pane's coordinate space.
|
TerminalPosition |
AbstractComponent.toBasePane(TerminalPosition position) |
TerminalPosition |
AbstractBorder.toBasePane(TerminalPosition position) |
TerminalPosition |
AbstractBasePane.ContentHolder.toBasePane(TerminalPosition position) |
TerminalPosition |
Window.toGlobal(TerminalPosition localPosition)
Returns a position in the window's local coordinate space to global coordinates
|
TerminalPosition |
Component.toGlobal(TerminalPosition position)
Translates a position local to the container to global coordinate space.
|
TerminalPosition |
BasePane.toGlobal(TerminalPosition localPosition)
Returns a position in a root container's local coordinate space to global coordinates
|
TerminalPosition |
AbstractWindow.toGlobal(TerminalPosition localPosition) |
TerminalPosition |
AbstractComponent.toGlobal(TerminalPosition position) |
TerminalPosition |
AbstractBorder.toGlobal(TerminalPosition position) |
TerminalPosition |
AbstractBasePane.ContentHolder.toGlobal(TerminalPosition position) |
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
DefaultTableRenderer.getCursorLocation(Table<V> component) |
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
ScreenInfoAction.getPosition()
The location of the mouse cursor when this event was generated.
|
TerminalPosition |
MouseAction.getPosition()
The location of the mouse cursor when this event was generated.
|
Constructor and Description |
---|
MouseAction(MouseActionType actionType,
int button,
TerminalPosition position)
Constructs a MouseAction based on an action type, a button and a location on the screen
|
ScreenInfoAction(TerminalPosition position)
Constructs a ScreenInfoAction based on a location on the screen
|
Modifier and Type | Method and Description |
---|---|
TerminalPosition |
Screen.getCursorPosition()
A screen implementation typically keeps a location on the screen where the cursor will be placed after drawing
and refreshing the buffers, this method returns that location.
|
TerminalPosition |
AbstractScreen.getCursorPosition() |
TerminalPosition |
VirtualScreen.FrameRenderer.getViewportOffset()
Where in the virtual screen should the top-left position of the viewport be? To draw the viewport from the
top-left position of the screen, return 0x0 (or TerminalPosition.TOP_LEFT_CORNER) here.
|
Modifier and Type | Method and Description |
---|---|
void |
VirtualScreen.FrameRenderer.drawFrame(TextGraphics graphics,
TerminalSize realSize,
TerminalSize virtualSize,
TerminalPosition virtualScrollPosition)
Drawn the 'frame', meaning anything that is outside the viewport (title, scrollbar, etc)
|
TextCharacter |
Screen.getBackCharacter(TerminalPosition position)
Reads a character and its associated meta-data from the back-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
AbstractScreen.getBackCharacter(TerminalPosition position) |
TextCharacter |
ScreenBuffer.getCharacterAt(TerminalPosition position) |
TextCharacter |
VirtualScreen.getFrontCharacter(TerminalPosition position) |
TextCharacter |
Screen.getFrontCharacter(TerminalPosition position)
Reads a character and its associated meta-data from the front-buffer and returns it encapsulated as a
ScreenCharacter.
|
TextCharacter |
AbstractScreen.getFrontCharacter(TerminalPosition position) |
void |
Screen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter)
Sets a character in the back-buffer to a specified value with specified colors and modifiers.
|
void |
AbstractScreen.setCharacter(TerminalPosition position,
TextCharacter screenCharacter) |
void |
ScreenBuffer.setCharacterAt(TerminalPosition position,
TextCharacter character) |
void |
VirtualScreen.setCursorPosition(TerminalPosition position) |
void |
Screen.setCursorPosition(TerminalPosition position)
A screen implementation typically keeps a location on the screen where the cursor will be placed after drawing
and refreshing the buffers, this method controls that location.
|
void |
AbstractScreen.setCursorPosition(TerminalPosition position)
Moves the current cursor position or hides it.
|
Copyright © 2016. All rights reserved.