Uses of Class
com.googlecode.lanterna.TerminalPosition
Packages that use TerminalPosition
Package
Description
-
Uses of TerminalPosition in com.googlecode.lanterna
Fields in com.googlecode.lanterna declared as TerminalPositionModifier and TypeFieldDescriptionstatic final TerminalPosition
TerminalPosition.OFFSET_1x1
Constant for the 1x1 position (one offset in both directions from top-left)final TerminalPosition
TerminalRectangle.position
static final TerminalPosition
TerminalPosition.TOP_LEFT_CORNER
Constant for the top-left corner (0x0)Methods in com.googlecode.lanterna that return TerminalPositionModifier and TypeMethodDescriptionTerminalPosition.abs()
TerminalPosition.divide
(TerminalPosition denominator) TerminalPosition.max
(TerminalPosition position) TerminalPosition.min
(TerminalPosition position) TerminalPosition.minus
(TerminalPosition position) TerminalPosition.multiply
(TerminalPosition position) TerminalPosition.plus
(TerminalPosition position) TerminalPosition.with
(TerminalPosition position) Returns itself if it is equal to the supplied position, otherwise the supplied position.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.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.withRelative
(TerminalPosition translate) Creates a new TerminalPosition object that is 'translated' by an amount of rows and columns specified by another 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.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.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 TerminalPositionModifier and TypeMethodDescriptionint
TerminalPosition.compareTo
(TerminalPosition o) TerminalPosition.divide
(TerminalPosition denominator) TerminalPosition.max
(TerminalPosition position) TerminalPosition.min
(TerminalPosition position) TerminalPosition.minus
(TerminalPosition position) TerminalPosition.multiply
(TerminalPosition position) TerminalPosition.plus
(TerminalPosition position) boolean
TerminalRectangle.whenContains
(TerminalPosition p, Runnable op) TerminalPosition.with
(TerminalPosition position) Returns itself if it is equal to the supplied position, otherwise the supplied position.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 TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
TextGraphicsWriter.cursorPosition
private final TerminalPosition
SubTextGraphics.topLeft
Methods in com.googlecode.lanterna.graphics that return TerminalPositionModifier and TypeMethodDescriptionTextGraphicsWriter.getCursorPosition()
private TerminalPosition
SubTextGraphics.project
(int column, int row) Methods in com.googlecode.lanterna.graphics with parameters of type TerminalPositionModifier and TypeMethodDescriptionAbstractTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image) AbstractTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) NullTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image) NullTextGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) 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.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.AbstractTextGraphics.drawLine
(TerminalPosition fromPosition, TerminalPosition toPoint, char character) AbstractTextGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character) void
DefaultShapeRenderer.drawLine
(TerminalPosition p1, TerminalPosition p2, TextCharacter character) NullTextGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) NullTextGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character) void
ShapeRenderer.drawLine
(TerminalPosition p1, TerminalPosition p2, TextCharacter character) TextGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) Draws a line from a specified position to a specified position, using a supplied character.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) AbstractTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) AbstractTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
DefaultShapeRenderer.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) NullTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) NullTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
ShapeRenderer.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) 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.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.AbstractTextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) AbstractTextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) void
DefaultShapeRenderer.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) NullTextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) NullTextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) void
ShapeRenderer.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) Draws the outline of a triangle on the screen, using a supplied character.TextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) Draws the outline of a triangle on the screen, using a supplied character.AbstractTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) AbstractTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
DefaultShapeRenderer.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) NullTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) NullTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) void
ShapeRenderer.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) 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.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.AbstractTextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) AbstractTextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) void
DefaultShapeRenderer.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) NullTextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) NullTextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) void
ShapeRenderer.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) Draws a filled triangle, using a supplied character.TextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) Draws a filled triangle, using a supplied character.AbstractTextGraphics.getCharacter
(TerminalPosition position) NullTextGraphics.getCharacter
(TerminalPosition position) TextGraphics.getCharacter
(TerminalPosition position) Returns the character at the specific position in the terminal.BasicTextImage.getCharacterAt
(TerminalPosition position) TextImage.getCharacterAt
(TerminalPosition position) Returns the character stored at a particular position in this imageAbstractTextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) NullTextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) TextGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) Creates a new TextGraphics of the same type as this one, using the same underlying subsystem.AbstractTextGraphics.putCSIStyledString
(TerminalPosition position, String string) NullTextGraphics.putCSIStyledString
(TerminalPosition position, String string) TextGraphics.putCSIStyledString
(TerminalPosition position, String string) Puts a string on the screen at the specified position with the current colors and modifiers.AbstractTextGraphics.putString
(TerminalPosition position, String string) AbstractTextGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) NullTextGraphics.putString
(TerminalPosition position, String string) NullTextGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) TextGraphics.putString
(TerminalPosition position, String string) Shortcut to calling:TextGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) Shortcut to calling:AbstractTextGraphics.setCharacter
(TerminalPosition position, char character) AbstractTextGraphics.setCharacter
(TerminalPosition position, TextCharacter textCharacter) NullTextGraphics.setCharacter
(TerminalPosition position, char character) NullTextGraphics.setCharacter
(TerminalPosition position, TextCharacter character) TextGraphics.setCharacter
(TerminalPosition position, char character) Sets the character at the current position to the specified valueTextGraphics.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 TerminalPositionModifierConstructorDescription(package private)
SubTextGraphics
(TextGraphics underlyingTextGraphics, TerminalPosition topLeft, TerminalSize writableAreaSize) -
Uses of TerminalPosition in com.googlecode.lanterna.gui2
Fields in com.googlecode.lanterna.gui2 declared as TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
TextBox.caretPosition
private TerminalPosition
AbstractWindow.contentOffset
private static final TerminalPosition
CheckBox.DefaultCheckBoxRenderer.CURSOR_LOCATION
private TerminalPosition
MultiWindowTextGUI.dragStart
private TerminalPosition
AbstractWindow.lastKnownPosition
private static final TerminalPosition
DefaultWindowDecorationRenderer.OFFSET
private static final TerminalPosition
FatWindowDecorationRenderer.OFFSET_WITH_TITLE
private static final 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 TerminalPositionModifier and TypeMethodDescriptionAbstractWindow.fromGlobal
(TerminalPosition globalPosition) Deprecated.BasePane.fromGlobal
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.Window.fromGlobal
(TerminalPosition position) Deprecated.AbstractWindow.fromGlobalToContentRelative
(TerminalPosition globalPosition) Window.fromGlobalToContentRelative
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.AbstractWindow.fromGlobalToDecoratedRelative
(TerminalPosition globalPosition) Window.fromGlobalToDecoratedRelative
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.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.AbstractInteractableComponent.getCursorLocation()
AbstractListBox.DefaultListBoxRenderer.getCursorLocation
(T listBox) ActionListBox.getCursorLocation()
Button.BorderedButtonRenderer.getCursorLocation
(Button component) Button.DefaultButtonRenderer.getCursorLocation
(Button button) Button.FlatButtonRenderer.getCursorLocation
(Button component) Button.getCursorLocation()
CheckBox.DefaultCheckBoxRenderer.getCursorLocation
(CheckBox component) ComboBox.DefaultComboBoxRenderer.getCursorLocation
(ComboBox<V> comboBox) Interactable.getCursorLocation()
Returns, in local coordinates, where to put the cursor on the screen when this component has focus.InteractableRenderer.getCursorLocation
(T component) TextBox.DefaultTextBoxRenderer.getCursorLocation
(TextBox component) 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.BasePane.getCursorPosition()
Returns the position of where to put the terminal cursor according to this root container.MultiWindowTextGUI.getCursorPosition()
Window.getCursorPosition()
Returns the position of where to put the terminal cursor according to this window.AbstractComponent.getGlobalPosition()
Component.getGlobalPosition()
Returns the top-left corner of this component in global coordinates space usingTOP_LEFT_CORNER
withComponent.toGlobal(TerminalPosition)
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 windowAbstractComponent.getPosition()
final TerminalPosition
AbstractWindow.getPosition()
Component.getPosition()
Returns the top-left corner of this component, measured from its parent.Window.getPosition()
Returns the position of the window, as last specified by the window manager.TextBox.DefaultTextBoxRenderer.getViewTopLeft()
TextBox.TextBoxRenderer.getViewTopLeft()
private TerminalPosition
AbstractBorder.getWrappedComponentTopLeftOffset()
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?Borders.AbstractBorderRenderer.getWrappedComponentTopLeftOffset()
AbstractBasePane.ContentHolder.toBasePane
(TerminalPosition position) AbstractBorder.toBasePane
(TerminalPosition position) AbstractComponent.toBasePane
(TerminalPosition position) Component.toBasePane
(TerminalPosition position) Translates a position local to the container to the base pane's coordinate space.AbstractBasePane.ContentHolder.toGlobal
(TerminalPosition position) AbstractBorder.toGlobal
(TerminalPosition position) AbstractComponent.toGlobal
(TerminalPosition position) AbstractWindow.toGlobal
(TerminalPosition localPosition) Deprecated.BasePane.toGlobal
(TerminalPosition localPosition) Returns a position in a root container's local coordinate space to global coordinatesComponent.toGlobal
(TerminalPosition position) Translates a position local to the container to global coordinate space.Window.toGlobal
(TerminalPosition localPosition) Deprecated.This is deprecated in favor of calling either of:toGlobalFromContentRelative()
ortoGlobalFromDecoratedRelative()
.AbstractWindow.toGlobalFromContentRelative
(TerminalPosition contentLocalPosition) Window.toGlobalFromContentRelative
(TerminalPosition localPosition) Returns a position in the window content's local coordinate space to global coordinatesAbstractWindow.toGlobalFromDecoratedRelative
(TerminalPosition localPosition) Deprecated.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 TerminalPositionModifier and TypeMethodDescriptionDefaultTextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image) DefaultTextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) TextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image) TextGUIGraphics.drawImage
(TerminalPosition topLeft, TextImage image, TerminalPosition sourceImageTopLeft, TerminalSize sourceImageSize) DefaultTextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) DefaultTextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character) TextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) TextGUIGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, TextCharacter character) DefaultTextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) DefaultTextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) DefaultTextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) DefaultTextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TextGUIGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) DefaultTextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) DefaultTextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TextGUIGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, TextCharacter character) DefaultTextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) DefaultTextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) TextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TextGUIGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, TextCharacter character) AbstractWindow.fromGlobal
(TerminalPosition globalPosition) Deprecated.BasePane.fromGlobal
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.Window.fromGlobal
(TerminalPosition position) Deprecated.This is deprecated in favor of calling either of:fromGlobalToContentRelative()
orfromGlobalToDecoratedRelative()
AbstractWindow.fromGlobalToContentRelative
(TerminalPosition globalPosition) Window.fromGlobalToContentRelative
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.AbstractWindow.fromGlobalToDecoratedRelative
(TerminalPosition globalPosition) Window.fromGlobalToDecoratedRelative
(TerminalPosition position) Returns a position expressed in global coordinates, i.e.DefaultTextGUIGraphics.getCharacter
(TerminalPosition position) private Set
<Interactable> InteractableLookupMap.getDisqualifiedInteractables
(TerminalPosition startPosition, boolean scanHorizontally) InteractableLookupMap.getInteractableAt
(TerminalPosition position) Looks up what interactable component is as a particular location in the mapDefaultTextGUIGraphics.newTextGraphics
(TerminalPosition topLeftCorner, TerminalSize size) 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.putCSIStyledString
(TerminalPosition position, String string) TextGUIGraphics.putCSIStyledString
(TerminalPosition position, String string) DefaultTextGUIGraphics.putString
(TerminalPosition position, String string) DefaultTextGUIGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) TextGUIGraphics.putString
(TerminalPosition position, String string) TextGUIGraphics.putString
(TerminalPosition position, String string, SGR extraModifier, SGR... optionalExtraModifiers) DefaultTextGUIGraphics.setCharacter
(TerminalPosition position, char character) DefaultTextGUIGraphics.setCharacter
(TerminalPosition position, TextCharacter character) TextGUIGraphics.setCharacter
(TerminalPosition position, char character) 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.AbstractComponent.setPosition
(TerminalPosition position) final void
AbstractWindow.setPosition
(TerminalPosition topLeft) 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) AbstractBasePane.ContentHolder.toBasePane
(TerminalPosition position) AbstractBorder.toBasePane
(TerminalPosition position) AbstractComponent.toBasePane
(TerminalPosition position) Component.toBasePane
(TerminalPosition position) Translates a position local to the container to the base pane's coordinate space.AbstractBasePane.ContentHolder.toGlobal
(TerminalPosition position) AbstractBorder.toGlobal
(TerminalPosition position) AbstractComponent.toGlobal
(TerminalPosition position) AbstractWindow.toGlobal
(TerminalPosition localPosition) Deprecated.BasePane.toGlobal
(TerminalPosition localPosition) Returns a position in a root container's local coordinate space to global coordinatesComponent.toGlobal
(TerminalPosition position) Translates a position local to the container to global coordinate space.Window.toGlobal
(TerminalPosition localPosition) Deprecated.This is deprecated in favor of calling either of:toGlobalFromContentRelative()
ortoGlobalFromDecoratedRelative()
.AbstractWindow.toGlobalFromContentRelative
(TerminalPosition contentLocalPosition) Window.toGlobalFromContentRelative
(TerminalPosition localPosition) Returns a position in the window content's local coordinate space to global coordinatesAbstractWindow.toGlobalFromDecoratedRelative
(TerminalPosition localPosition) Deprecated.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.table
Methods in com.googlecode.lanterna.gui2.table that return TerminalPosition -
Uses of TerminalPosition in com.googlecode.lanterna.input
Fields in com.googlecode.lanterna.input declared as TerminalPositionModifier and TypeFieldDescriptionprivate final TerminalPosition
MouseAction.position
private final TerminalPosition
ScreenInfoAction.position
Methods in com.googlecode.lanterna.input that return TerminalPositionModifier and TypeMethodDescriptionMouseAction.getPosition()
The location of the mouse cursor when this event was generated.ScreenInfoAction.getPosition()
The location of the mouse cursor when this event was generated.Constructors in com.googlecode.lanterna.input with parameters of type TerminalPositionModifierConstructorDescriptionMouseAction
(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 TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
AbstractScreen.cursorPosition
private TerminalPosition
VirtualScreen.viewportTopLeft
Methods in com.googlecode.lanterna.screen that return TerminalPositionModifier and TypeMethodDescriptionAbstractScreen.getCursorPosition()
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.VirtualScreen.DefaultFrameRenderer.getViewportOffset()
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 TerminalPositionModifier and TypeMethodDescriptionint
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)AbstractScreen.getBackCharacter
(TerminalPosition position) Screen.getBackCharacter
(TerminalPosition position) Reads a character and its associated meta-data from the back-buffer and returns it encapsulated as a ScreenCharacter.ScreenBuffer.getCharacterAt
(TerminalPosition position) AbstractScreen.getFrontCharacter
(TerminalPosition position) Screen.getFrontCharacter
(TerminalPosition position) Reads a character and its associated meta-data from the front-buffer and returns it encapsulated as a ScreenCharacter.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 TerminalPositionFields in com.googlecode.lanterna.terminal with type parameters of type TerminalPositionModifier and TypeFieldDescriptionprivate final Map
<TerminalPosition, TextCharacter> TerminalTextGraphics.writeHistory
Methods in com.googlecode.lanterna.terminal that return TerminalPositionModifier and TypeMethodDescriptionIOSafeTerminal.getCursorPosition()
IOSafeTerminalAdapter.getCursorPosition()
Terminal.getCursorPosition()
Returns the position of the cursor, as reported by the terminal.Methods in com.googlecode.lanterna.terminal with parameters of type TerminalPositionModifier and TypeMethodDescriptionTerminalTextGraphics.drawLine
(TerminalPosition fromPoint, TerminalPosition toPoint, char character) TerminalTextGraphics.drawRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TerminalTextGraphics.drawTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TerminalTextGraphics.fillRectangle
(TerminalPosition topLeft, TerminalSize size, char character) TerminalTextGraphics.fillTriangle
(TerminalPosition p1, TerminalPosition p2, TerminalPosition p3, char character) TerminalTextGraphics.getCharacter
(TerminalPosition position) 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 TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
StreamBasedTerminal.lastReportedCursorPosition
Methods in com.googlecode.lanterna.terminal.ansi that return TerminalPositionModifier and TypeMethodDescriptionANSITerminal.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 -
Uses of TerminalPosition in com.googlecode.lanterna.terminal.swing
Fields in com.googlecode.lanterna.terminal.swing declared as TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
GraphicalTerminalImplementation.lastDrawnCursorPosition
Methods in com.googlecode.lanterna.terminal.swing that return TerminalPositionModifier and TypeMethodDescriptionAWTTerminal.getCursorPosition()
AWTTerminalFrame.getCursorPosition()
GraphicalTerminalImplementation.getCursorPosition()
ScrollingAWTTerminal.getCursorPosition()
ScrollingSwingTerminal.getCursorPosition()
SwingTerminal.getCursorPosition()
SwingTerminalFrame.getCursorPosition()
Methods in com.googlecode.lanterna.terminal.swing with parameters of type TerminalPositionModifier and TypeMethodDescriptionvoid
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 TerminalPositionModifier and TypeFieldDescriptionprivate TerminalPosition
DefaultVirtualTerminal.cursorPosition
private TerminalPosition
DefaultVirtualTerminal.savedCursorPosition
Fields in com.googlecode.lanterna.terminal.virtual with type parameters of type TerminalPositionModifier and TypeFieldDescriptionprivate final TreeSet
<TerminalPosition> DefaultVirtualTerminal.dirtyTerminalCells
Methods in com.googlecode.lanterna.terminal.virtual that return TerminalPositionModifier and TypeMethodDescriptionDefaultVirtualTerminal.getCursorBufferPosition()
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.DefaultVirtualTerminal.getCursorPosition()
Methods in com.googlecode.lanterna.terminal.virtual that return types with arguments of type TerminalPositionModifier and TypeMethodDescriptionDefaultVirtualTerminal.getAndResetDirtyCells()
DefaultVirtualTerminal.getDirtyCells()
Methods in com.googlecode.lanterna.terminal.virtual with parameters of type TerminalPositionModifier and TypeMethodDescriptionDefaultVirtualTerminal.getBufferCharacter
(TerminalPosition position) VirtualTerminal.getBufferCharacter
(TerminalPosition position) Returns a character from this virtual terminal, relative to the top-left position of the text buffer including any backlog.DefaultVirtualTerminal.getCharacter
(TerminalPosition position) VirtualTerminal.getCharacter
(TerminalPosition position) Returns a character from the viewport at the specified coordinates.VirtualTerminalTextGraphics.getCharacter
(TerminalPosition position) void
DefaultVirtualTerminal.setCursorPosition
(TerminalPosition cursorPosition)
fromGlobalToContentRelative()
orfromGlobalToDecoratedRelative()