Uses of Class
com.googlecode.lanterna.TerminalPosition
-
-
Uses of TerminalPosition in com.googlecode.lanterna
Fields in com.googlecode.lanterna declared as TerminalPosition Modifier and Type Field Description static TerminalPosition
TerminalPosition. OFFSET_1x1
Constant for the 1x1 position (one offset in both directions from top-left)TerminalPosition
TerminalRectangle. position
static TerminalPosition
TerminalPosition. TOP_LEFT_CORNER
Constant for the top-left corner (0x0)Methods in com.googlecode.lanterna that return TerminalPosition Modifier and Type Method Description TerminalPosition
TerminalPosition. abs()
TerminalPosition
TerminalPosition. divide(TerminalPosition denominator)
TerminalPosition
TerminalPosition. max(TerminalPosition position)
TerminalPosition
TerminalPosition. min(TerminalPosition position)
TerminalPosition
TerminalPosition. minus(TerminalPosition position)
TerminalPosition
TerminalPosition. multiply(TerminalPosition position)
TerminalPosition
TerminalPosition. plus(TerminalPosition position)
TerminalPosition
TerminalPosition. with(TerminalPosition position)
Returns itself if it is equal to the supplied position, otherwise the supplied position.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.Methods in com.googlecode.lanterna with parameters of type TerminalPosition Modifier and Type Method Description int
TerminalPosition. compareTo(TerminalPosition o)
TerminalPosition
TerminalPosition. divide(TerminalPosition denominator)
TerminalPosition
TerminalPosition. max(TerminalPosition position)
TerminalPosition
TerminalPosition. min(TerminalPosition position)
TerminalPosition
TerminalPosition. minus(TerminalPosition position)
TerminalPosition
TerminalPosition. multiply(TerminalPosition position)
TerminalPosition
TerminalPosition. plus(TerminalPosition position)
boolean
TerminalRectangle. whenContains(TerminalPosition p, java.lang.Runnable op)
TerminalPosition
TerminalPosition. with(TerminalPosition position)
Returns itself if it is equal to the supplied position, otherwise the supplied position.TerminalPosition
TerminalPosition. withRelative(TerminalPosition translate)
Creates a new TerminalPosition object that is 'translated' by an amount of rows and columns specified by another TerminalPosition. -
Uses of TerminalPosition in com.googlecode.lanterna.graphics
Fields in com.googlecode.lanterna.graphics declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
TextGraphicsWriter. cursorPosition
private TerminalPosition
SubTextGraphics. topLeft
Methods in com.googlecode.lanterna.graphics that return TerminalPosition Modifier and Type Method Description TerminalPosition
TextGraphicsWriter. getCursorPosition()
private TerminalPosition
SubTextGraphics. project(int column, int row)
Methods in com.googlecode.lanterna.graphics with parameters of type TerminalPosition Modifier and Type Method Description TextGraphics
AbstractTextGraphics. drawImage(TerminalPosition topLeft, TextImage image)
TextGraphics
AbstractTextGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
TextGraphics
NullTextGraphics. drawImage(TerminalPosition topLeft, TextImage image)
TextGraphics
NullTextGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
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
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
AbstractTextGraphics. drawLine(TerminalPosition fromPosition, TerminalPosition toPoint, char character)
TextGraphics
AbstractTextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
void
DefaultShapeRenderer. drawLine(TerminalPosition p1, TerminalPosition p2, TextCharacter character)
TextGraphics
NullTextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, char character)
TextGraphics
NullTextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
void
ShapeRenderer. drawLine(TerminalPosition p1, TerminalPosition p2, TextCharacter character)
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
TextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
Draws a line from a specified position to a specified position, using a supplied TextCharacter.private void
DefaultShapeRenderer. drawLine0(TerminalPosition start, int deltaX, int deltaY, boolean leftToRight, TextCharacter character)
private void
DefaultShapeRenderer. drawLine1(TerminalPosition start, int deltaX, int deltaY, boolean leftToRight, TextCharacter character)
TextGraphics
AbstractTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
AbstractTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
DefaultShapeRenderer. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGraphics
NullTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
NullTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
ShapeRenderer. drawRectangle(TerminalPosition topLeft, TerminalSize size, 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
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
AbstractTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGraphics
AbstractTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
DefaultShapeRenderer. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGraphics
NullTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGraphics
NullTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
ShapeRenderer. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, 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
TextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
Draws the outline of a triangle on the screen, using a supplied character.TextGraphics
AbstractTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
AbstractTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
DefaultShapeRenderer. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGraphics
NullTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
NullTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
void
ShapeRenderer. fillRectangle(TerminalPosition topLeft, TerminalSize size, 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
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
AbstractTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGraphics
AbstractTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
DefaultShapeRenderer. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGraphics
NullTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGraphics
NullTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
void
ShapeRenderer. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGraphics
TextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
Draws a filled triangle, using a supplied character.TextGraphics
TextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
Draws a filled triangle, using a supplied character.TextCharacter
AbstractTextGraphics. getCharacter(TerminalPosition position)
TextCharacter
NullTextGraphics. getCharacter(TerminalPosition position)
TextCharacter
TextGraphics. getCharacter(TerminalPosition position)
Returns the character at the specific position in the terminal.TextCharacter
BasicTextImage. getCharacterAt(TerminalPosition position)
TextCharacter
TextImage. getCharacterAt(TerminalPosition position)
Returns the character stored at a particular position in this imageTextGraphics
AbstractTextGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGraphics
NullTextGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGraphics
TextGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.TextGraphics
AbstractTextGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
TextGraphics
NullTextGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
TextGraphics
TextGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
Puts a string on the screen at the specified position with the current colors and modifiers.TextGraphics
AbstractTextGraphics. putString(TerminalPosition position, java.lang.String string)
TextGraphics
AbstractTextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
NullTextGraphics. putString(TerminalPosition position, java.lang.String string)
TextGraphics
NullTextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGraphics
TextGraphics. putString(TerminalPosition position, java.lang.String string)
Shortcut to calling:TextGraphics
TextGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
Shortcut to calling:TextGraphics
AbstractTextGraphics. setCharacter(TerminalPosition position, char character)
TextGraphics
AbstractTextGraphics. setCharacter(TerminalPosition position, TextCharacter textCharacter)
TextGraphics
NullTextGraphics. setCharacter(TerminalPosition position, char character)
TextGraphics
NullTextGraphics. setCharacter(TerminalPosition position, TextCharacter character)
TextGraphics
TextGraphics. setCharacter(TerminalPosition position, char character)
Sets the character at the current position to the specified valueTextGraphics
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.void
BasicTextImage. setCharacterAt(TerminalPosition position, TextCharacter character)
void
TextImage. setCharacterAt(TerminalPosition position, TextCharacter character)
Sets the character at a specific position in the image to a particular TextCharacter.void
TextGraphicsWriter. setCursorPosition(TerminalPosition cursorPosition)
Constructors in com.googlecode.lanterna.graphics with parameters of type TerminalPosition Constructor Description SubTextGraphics(TextGraphics underlyingTextGraphics, TerminalPosition topLeft, TerminalSize writableAreaSize)
-
Uses of TerminalPosition in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
TextBox. caretPosition
private TerminalPosition
AbstractWindow. contentOffset
private static TerminalPosition
CheckBox.DefaultCheckBoxRenderer. CURSOR_LOCATION
private TerminalPosition
MultiWindowTextGUI. dragStart
private TerminalPosition
AbstractWindow. lastKnownPosition
private static TerminalPosition
DefaultWindowDecorationRenderer. OFFSET
private static TerminalPosition
FatWindowDecorationRenderer. OFFSET_WITH_TITLE
private static TerminalPosition
FatWindowDecorationRenderer. OFFSET_WITHOUT_TITLE
private TerminalPosition
MultiWindowTextGUI. originWindowPosition
private TerminalPosition
AbstractComponent. position
protected TerminalPosition
AbstractListBox. scrollOffset
private TerminalPosition
TextBox.DefaultTextBoxRenderer. viewTopLeft
Methods in com.googlecode.lanterna.gui2 that return TerminalPosition Modifier and Type Method Description TerminalPosition
AbstractWindow. fromGlobal(TerminalPosition globalPosition)
Deprecated.TerminalPosition
BasePane. fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TerminalPosition
Window. fromGlobal(TerminalPosition position)
Deprecated.This is deprecated in favor of calling either of:fromGlobalToContentRelative()
orfromGlobalToDecoratedRelative()
TerminalPosition
AbstractWindow. fromGlobalToContentRelative(TerminalPosition globalPosition)
TerminalPosition
Window. fromGlobalToContentRelative(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TerminalPosition
AbstractWindow. fromGlobalToDecoratedRelative(TerminalPosition globalPosition)
TerminalPosition
Window. fromGlobalToDecoratedRelative(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TerminalPosition
TextBox. getCaretPosition()
Returns the position of the caret, as aTerminalPosition
where the row and columns equals the coordinates in a multi-lineTextBox
and for single-lineTextBox
you can ignore therow
component.TerminalPosition
AbstractInteractableComponent. getCursorLocation()
TerminalPosition
AbstractListBox.DefaultListBoxRenderer. getCursorLocation(T listBox)
TerminalPosition
ActionListBox. getCursorLocation()
TerminalPosition
Button.BorderedButtonRenderer. getCursorLocation(Button component)
TerminalPosition
Button.DefaultButtonRenderer. getCursorLocation(Button button)
TerminalPosition
Button.FlatButtonRenderer. getCursorLocation(Button component)
TerminalPosition
Button. getCursorLocation()
TerminalPosition
CheckBox.DefaultCheckBoxRenderer. getCursorLocation(CheckBox component)
TerminalPosition
ComboBox.DefaultComboBoxRenderer. getCursorLocation(ComboBox<V> comboBox)
TerminalPosition
Interactable. getCursorLocation()
Returns, in local coordinates, where to put the cursor on the screen when this component has focus.TerminalPosition
InteractableRenderer. getCursorLocation(T component)
TerminalPosition
TextBox.DefaultTextBoxRenderer. getCursorLocation(TextBox component)
TerminalPosition
AbstractBasePane. getCursorPosition()
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
BasePane. getCursorPosition()
Returns the position of where to put the terminal cursor according to this root container.TerminalPosition
MultiWindowTextGUI. getCursorPosition()
TerminalPosition
Window. getCursorPosition()
Returns the position of where to put the terminal cursor according to this window.TerminalPosition
AbstractComponent. getGlobalPosition()
TerminalPosition
Component. getGlobalPosition()
Returns the top-left corner of this component in global coordinates space usingTOP_LEFT_CORNER
withComponent.toGlobal(TerminalPosition)
TerminalPosition
DefaultWindowDecorationRenderer. getOffset(Window window)
TerminalPosition
EmptyWindowDecorationRenderer. getOffset(Window window)
TerminalPosition
FatWindowDecorationRenderer. getOffset(Window window)
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 windowTerminalPosition
AbstractComponent. getPosition()
TerminalPosition
AbstractWindow. getPosition()
TerminalPosition
Component. getPosition()
Returns the top-left corner of this component, measured from its parent.TerminalPosition
Window. getPosition()
Returns the position of the window, as last specified by the window manager.TerminalPosition
TextBox.DefaultTextBoxRenderer. getViewTopLeft()
TerminalPosition
TextBox.TextBoxRenderer. getViewTopLeft()
private TerminalPosition
AbstractBorder. getWrappedComponentTopLeftOffset()
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
Borders.AbstractBorderRenderer. getWrappedComponentTopLeftOffset()
TerminalPosition
AbstractBasePane.ContentHolder. toBasePane(TerminalPosition position)
TerminalPosition
AbstractBorder. toBasePane(TerminalPosition position)
TerminalPosition
AbstractComponent. toBasePane(TerminalPosition position)
TerminalPosition
Component. toBasePane(TerminalPosition position)
Translates a position local to the container to the base pane's coordinate space.TerminalPosition
AbstractBasePane.ContentHolder. toGlobal(TerminalPosition position)
TerminalPosition
AbstractBorder. toGlobal(TerminalPosition position)
TerminalPosition
AbstractComponent. toGlobal(TerminalPosition position)
TerminalPosition
AbstractWindow. toGlobal(TerminalPosition localPosition)
Deprecated.TerminalPosition
BasePane. toGlobal(TerminalPosition localPosition)
Returns a position in a root container's local coordinate space to global coordinatesTerminalPosition
Component. toGlobal(TerminalPosition position)
Translates a position local to the container to global coordinate space.TerminalPosition
Window. toGlobal(TerminalPosition localPosition)
Deprecated.This is deprecated in favor of calling either of:toGlobalFromContentRelative()
ortoGlobalFromDecoratedRelative()
.TerminalPosition
AbstractWindow. toGlobalFromContentRelative(TerminalPosition contentLocalPosition)
TerminalPosition
Window. toGlobalFromContentRelative(TerminalPosition localPosition)
Returns a position in the window content's local coordinate space to global coordinatesTerminalPosition
AbstractWindow. toGlobalFromDecoratedRelative(TerminalPosition localPosition)
Deprecated.TerminalPosition
Window. toGlobalFromDecoratedRelative(TerminalPosition decoratedPosition)
Returns a position in the decorated window local coordinate space to global coordinatesMethods in com.googlecode.lanterna.gui2 with parameters of type TerminalPosition Modifier and Type Method Description DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
TextGUIGraphics
TextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image)
TextGUIGraphics
TextGUIGraphics. drawImage(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, char character)
TextGUIGraphics
TextGUIGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGUIGraphics
TextGUIGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGUIGraphics
TextGUIGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, TextCharacter character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGUIGraphics
TextGUIGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character)
TerminalPosition
AbstractWindow. fromGlobal(TerminalPosition globalPosition)
Deprecated.TerminalPosition
BasePane. fromGlobal(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TerminalPosition
Window. fromGlobal(TerminalPosition position)
Deprecated.This is deprecated in favor of calling either of:fromGlobalToContentRelative()
orfromGlobalToDecoratedRelative()
TerminalPosition
AbstractWindow. fromGlobalToContentRelative(TerminalPosition globalPosition)
TerminalPosition
Window. fromGlobalToContentRelative(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TerminalPosition
AbstractWindow. fromGlobalToDecoratedRelative(TerminalPosition globalPosition)
TerminalPosition
Window. fromGlobalToDecoratedRelative(TerminalPosition position)
Returns a position expressed in global coordinates, i.e.TextCharacter
DefaultTextGUIGraphics. getCharacter(TerminalPosition position)
private java.util.Set<Interactable>
InteractableLookupMap. getDisqualifiedInteractables(TerminalPosition startPosition, boolean scanHorizontally)
Interactable
InteractableLookupMap. getInteractableAt(TerminalPosition position)
Looks up what interactable component is as a particular location in the mapDefaultTextGUIGraphics
DefaultTextGUIGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
TextGUIGraphics
TextGUIGraphics. newTextGraphics(TerminalPosition topLeftCorner, TerminalSize size)
void
WindowListener. onMoved(Window window, TerminalPosition oldPosition, TerminalPosition newPosition)
Called whenever the window's position has changed, no matter if it was done by the window manager or the uservoid
WindowListenerAdapter. onMoved(Window window, TerminalPosition oldPosition, TerminalPosition newPosition)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putCSIStyledString(TerminalPosition position, java.lang.String string)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. putString(TerminalPosition position, java.lang.String string)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
TextGUIGraphics
TextGUIGraphics. putString(TerminalPosition position, java.lang.String string)
TextGUIGraphics
TextGUIGraphics. putString(TerminalPosition position, java.lang.String string, SGR extraModifier, SGR... optionalExtraModifiers)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. setCharacter(TerminalPosition position, char character)
DefaultTextGUIGraphics
DefaultTextGUIGraphics. setCharacter(TerminalPosition position, TextCharacter character)
TextGUIGraphics
TextGUIGraphics. setCharacter(TerminalPosition position, char character)
TextGUIGraphics
TextGUIGraphics. setCharacter(TerminalPosition position, TextCharacter character)
void
AbstractWindow. setContentOffset(TerminalPosition offset)
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.T
AbstractComponent. setPosition(TerminalPosition position)
void
AbstractWindow. setPosition(TerminalPosition topLeft)
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
Window. setPosition(TerminalPosition topLeft)
This method is called by the GUI system to update the window on where the window manager placed it.void
TextBox.DefaultTextBoxRenderer. setViewTopLeft(TerminalPosition position)
void
TextBox.TextBoxRenderer. setViewTopLeft(TerminalPosition position)
TerminalPosition
AbstractBasePane.ContentHolder. toBasePane(TerminalPosition position)
TerminalPosition
AbstractBorder. toBasePane(TerminalPosition position)
TerminalPosition
AbstractComponent. toBasePane(TerminalPosition position)
TerminalPosition
Component. toBasePane(TerminalPosition position)
Translates a position local to the container to the base pane's coordinate space.TerminalPosition
AbstractBasePane.ContentHolder. toGlobal(TerminalPosition position)
TerminalPosition
AbstractBorder. toGlobal(TerminalPosition position)
TerminalPosition
AbstractComponent. toGlobal(TerminalPosition position)
TerminalPosition
AbstractWindow. toGlobal(TerminalPosition localPosition)
Deprecated.TerminalPosition
BasePane. toGlobal(TerminalPosition localPosition)
Returns a position in a root container's local coordinate space to global coordinatesTerminalPosition
Component. toGlobal(TerminalPosition position)
Translates a position local to the container to global coordinate space.TerminalPosition
Window. toGlobal(TerminalPosition localPosition)
Deprecated.This is deprecated in favor of calling either of:toGlobalFromContentRelative()
ortoGlobalFromDecoratedRelative()
.TerminalPosition
AbstractWindow. toGlobalFromContentRelative(TerminalPosition contentLocalPosition)
TerminalPosition
Window. toGlobalFromContentRelative(TerminalPosition localPosition)
Returns a position in the window content's local coordinate space to global coordinatesTerminalPosition
AbstractWindow. toGlobalFromDecoratedRelative(TerminalPosition localPosition)
Deprecated.TerminalPosition
Window. toGlobalFromDecoratedRelative(TerminalPosition decoratedPosition)
Returns a position in the decorated window local coordinate space to global coordinates -
Uses of TerminalPosition in com.googlecode.lanterna.gui2.menu
Methods in com.googlecode.lanterna.gui2.menu that return TerminalPosition Modifier and Type Method Description TerminalPosition
MenuItem.DefaultMenuItemRenderer. getCursorLocation(MenuItem component)
TerminalPosition
MenuBar. toBasePane(TerminalPosition position)
Methods in com.googlecode.lanterna.gui2.menu with parameters of type TerminalPosition Modifier and Type Method Description TerminalPosition
MenuBar. toBasePane(TerminalPosition position)
-
Uses of TerminalPosition in com.googlecode.lanterna.gui2.table
Methods in com.googlecode.lanterna.gui2.table that return TerminalPosition Modifier and Type Method Description TerminalPosition
DefaultTableRenderer. getCursorLocation(Table<V> component)
-
Uses of TerminalPosition in com.googlecode.lanterna.input
Fields in com.googlecode.lanterna.input declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
MouseAction. position
private TerminalPosition
ScreenInfoAction. position
Methods in com.googlecode.lanterna.input that return TerminalPosition Modifier and Type Method Description TerminalPosition
MouseAction. getPosition()
The location of the mouse cursor when this event was generated.TerminalPosition
ScreenInfoAction. getPosition()
The location of the mouse cursor when this event was generated.Constructors in com.googlecode.lanterna.input with parameters of type TerminalPosition Constructor Description MouseAction(MouseActionType actionType, int button, TerminalPosition position)
Constructs a MouseAction based on an action type, a button and a location on the screenScreenInfoAction(TerminalPosition position)
Constructs a ScreenInfoAction based on a location on the screen -
Uses of TerminalPosition in com.googlecode.lanterna.screen
Fields in com.googlecode.lanterna.screen declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
AbstractScreen. cursorPosition
private TerminalPosition
VirtualScreen. viewportTopLeft
Methods in com.googlecode.lanterna.screen that return TerminalPosition Modifier and Type Method Description TerminalPosition
AbstractScreen. getCursorPosition()
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
VirtualScreen.DefaultFrameRenderer. getViewportOffset()
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.Methods in com.googlecode.lanterna.screen with parameters of type TerminalPosition Modifier and Type Method Description int
TerminalScreen.ScreenPointComparator. compare(TerminalPosition o1, TerminalPosition o2)
void
VirtualScreen.DefaultFrameRenderer. drawFrame(TextGraphics graphics, TerminalSize realSize, TerminalSize virtualSize, TerminalPosition virtualScrollPosition)
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
AbstractScreen. getBackCharacter(TerminalPosition position)
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
ScreenBuffer. getCharacterAt(TerminalPosition position)
TextCharacter
AbstractScreen. 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
VirtualScreen. getFrontCharacter(TerminalPosition position)
void
AbstractScreen. setCharacter(TerminalPosition position, TextCharacter screenCharacter)
void
Screen. setCharacter(TerminalPosition position, TextCharacter screenCharacter)
Sets a character in the back-buffer to a specified value with specified colors and modifiers.void
ScreenBuffer. setCharacterAt(TerminalPosition position, TextCharacter character)
void
AbstractScreen. setCursorPosition(TerminalPosition position)
Moves the current cursor position or hides it.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
VirtualScreen. setCursorPosition(TerminalPosition position)
void
VirtualScreen. setViewportTopLeft(TerminalPosition position)
-
Uses of TerminalPosition in com.googlecode.lanterna.terminal
Fields in com.googlecode.lanterna.terminal declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
TerminalTextGraphics. lastPosition
Fields in com.googlecode.lanterna.terminal with type parameters of type TerminalPosition Modifier and Type Field Description private java.util.Map<TerminalPosition,TextCharacter>
TerminalTextGraphics. writeHistory
Methods in com.googlecode.lanterna.terminal that return TerminalPosition Modifier and Type Method Description TerminalPosition
IOSafeTerminal. getCursorPosition()
TerminalPosition
IOSafeTerminalAdapter. getCursorPosition()
TerminalPosition
Terminal. getCursorPosition()
Returns the position of the cursor, as reported by the terminal.Methods in com.googlecode.lanterna.terminal with parameters of type TerminalPosition Modifier and Type Method Description TextGraphics
TerminalTextGraphics. drawLine(TerminalPosition fromPoint, TerminalPosition toPoint, char character)
TextGraphics
TerminalTextGraphics. drawRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
TerminalTextGraphics. drawTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextGraphics
TerminalTextGraphics. fillRectangle(TerminalPosition topLeft, TerminalSize size, char character)
TextGraphics
TerminalTextGraphics. fillTriangle(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character)
TextCharacter
TerminalTextGraphics. getCharacter(TerminalPosition position)
TextGraphics
TerminalTextGraphics. setCharacter(TerminalPosition position, TextCharacter textCharacter)
void
IOSafeTerminal. setCursorPosition(TerminalPosition position)
void
IOSafeTerminalAdapter. setCursorPosition(TerminalPosition position)
void
Terminal. setCursorPosition(TerminalPosition position)
Same as callingsetCursorPosition(position.getColumn(), position.getRow())
-
Uses of TerminalPosition in com.googlecode.lanterna.terminal.ansi
Fields in com.googlecode.lanterna.terminal.ansi declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
StreamBasedTerminal. lastReportedCursorPosition
Methods in com.googlecode.lanterna.terminal.ansi that return TerminalPosition Modifier and Type Method Description TerminalPosition
ANSITerminal. getCursorPosition()
(package private) TerminalPosition
StreamBasedTerminal. waitForCursorPositionReport()
Waits for up to 5 seconds for a terminal cursor position report to appear in the input stream.Methods in com.googlecode.lanterna.terminal.ansi with parameters of type TerminalPosition Modifier and Type Method Description void
ANSITerminal. setCursorPosition(TerminalPosition position)
-
Uses of TerminalPosition in com.googlecode.lanterna.terminal.swing
Fields in com.googlecode.lanterna.terminal.swing declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
GraphicalTerminalImplementation. lastDrawnCursorPosition
Methods in com.googlecode.lanterna.terminal.swing that return TerminalPosition Modifier and Type Method Description TerminalPosition
AWTTerminal. getCursorPosition()
TerminalPosition
AWTTerminalFrame. getCursorPosition()
TerminalPosition
GraphicalTerminalImplementation. getCursorPosition()
TerminalPosition
ScrollingAWTTerminal. getCursorPosition()
TerminalPosition
ScrollingSwingTerminal. getCursorPosition()
TerminalPosition
SwingTerminal. getCursorPosition()
TerminalPosition
SwingTerminalFrame. getCursorPosition()
Methods in com.googlecode.lanterna.terminal.swing with parameters of type TerminalPosition Modifier and Type Method Description void
AWTTerminal. setCursorPosition(TerminalPosition position)
void
AWTTerminalFrame. setCursorPosition(TerminalPosition position)
void
GraphicalTerminalImplementation. setCursorPosition(TerminalPosition position)
void
ScrollingAWTTerminal. setCursorPosition(TerminalPosition position)
void
ScrollingSwingTerminal. setCursorPosition(TerminalPosition position)
void
SwingTerminal. setCursorPosition(TerminalPosition position)
void
SwingTerminalFrame. setCursorPosition(TerminalPosition position)
(package private) void
GraphicalTerminalImplementation.DirtyCellsLookupTable. setDirty(TerminalPosition position)
-
Uses of TerminalPosition in com.googlecode.lanterna.terminal.virtual
Fields in com.googlecode.lanterna.terminal.virtual declared as TerminalPosition Modifier and Type Field Description private TerminalPosition
DefaultVirtualTerminal. cursorPosition
private TerminalPosition
DefaultVirtualTerminal. savedCursorPosition
Fields in com.googlecode.lanterna.terminal.virtual with type parameters of type TerminalPosition Modifier and Type Field Description private java.util.TreeSet<TerminalPosition>
DefaultVirtualTerminal. dirtyTerminalCells
Methods in com.googlecode.lanterna.terminal.virtual that return TerminalPosition Modifier and Type Method Description TerminalPosition
DefaultVirtualTerminal. getCursorBufferPosition()
TerminalPosition
VirtualTerminal. getCursorBufferPosition()
Returns the position of the terminal cursor where the row index is counted from the top of the text buffer, including all backlog.TerminalPosition
DefaultVirtualTerminal. getCursorPosition()
Methods in com.googlecode.lanterna.terminal.virtual that return types with arguments of type TerminalPosition Modifier and Type Method Description java.util.TreeSet<TerminalPosition>
DefaultVirtualTerminal. getAndResetDirtyCells()
java.util.TreeSet<TerminalPosition>
DefaultVirtualTerminal. getDirtyCells()
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TerminalPosition Modifier and Type Method Description TextCharacter
DefaultVirtualTerminal. getBufferCharacter(TerminalPosition position)
TextCharacter
VirtualTerminal. getBufferCharacter(TerminalPosition position)
Returns a character from this virtual terminal, relative to the top-left position of the text buffer including any backlog.TextCharacter
DefaultVirtualTerminal. getCharacter(TerminalPosition position)
TextCharacter
VirtualTerminal. getCharacter(TerminalPosition position)
Returns a character from the viewport at the specified coordinates.TextCharacter
VirtualTerminalTextGraphics. getCharacter(TerminalPosition position)
void
DefaultVirtualTerminal. setCursorPosition(TerminalPosition cursorPosition)
-