trait Grid extends Observable
Grid for the mono-spaced characters of a text. Can translate between cursor positions and visual pixel positions.
- Alphabetic
- By Inheritance
- Grid
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def ascent: Int
- abstract def cellHeight: Int
- abstract def cellWidth: Int
- abstract def insetBottom: Int
- abstract def insetLeft: Int
- abstract def insetRight: Int
- abstract def insetTop: Int
- abstract def toArea(rectangle: Rectangle): Area
Translates a visible (pixel) rectangle to a virtual text (grid) area.
Translates a visible (pixel) rectangle to a virtual text (grid) area. It does so by rounding down the top and left coordinate, and rounding up the right and bottom coordinate to the next grid element. In other words, the returned area is guaranteed to fully contain the
rectangleargument.Opposite of
toRectangle. - abstract def toLocation(point: Point): Location
Translates a visible (pixel) point to a virtual text (grid) location.
Translates a visible (pixel) point to a virtual text (grid) location. It does so by rounding down the coordinates to the next grid element.
Opposite of
toPoint. - abstract def toPoint(location: Location): Point
Translates a virtual text (grid) location to a visible (pixel) point.
Translates a virtual text (grid) location to a visible (pixel) point.
Opposite of
toLocation. - abstract def toRectangle(area: Area): Rectangle
Translates a virtual text (grid) area to a visible (pixel) rectangle.
Translates a virtual text (grid) area to a visible (pixel) rectangle.
Opposite of
toArea. - abstract def toSize(lines: Int, maximumIndent: Int): Dimension
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def notifyObservers(): Unit
- Definition Classes
- Observable
- def onChange(action: => Unit): Unit
- Definition Classes
- Observable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated