Zoom

final class Zoom(value: String)

A Mutable wrapper of the string helping to track lookup operations results.

A Mutable wrapper of the string helping to track lookup operations results.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def contour: (Int, Int)
def contourLength: Int
def copy: Zoom

Exact copy of this Zoom.

Exact copy of this Zoom.

Copy frame and reset contour.

Copy frame and reset contour.

def end(): Int
def flipFrame(other: Zoom, leftSide: Boolean): Boolean

Move this frame on the left or the right side of the other Zoom's contour.

Move this frame on the left or the right side of the other Zoom's contour.

def frame: (Int, Int)
def frameWidth: Int
def hasContour: Boolean
def intersectContour(other: Zoom): Boolean

Intersect contours.

Intersect contours.

def isEmpty: Boolean
def left: Int
def lookupFor(string: String): Boolean

Lookup for the given string from both sides.

Lookup for the given string from both sides.

def lookupLeftFor(string: String, maxDistance: Int): Boolean

Lookup for the given string from the right side.

Lookup for the given string from the right side.

def lookupLeftUntil(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean

Lookup from right until check succeeds.

Lookup from right until check succeeds.

def lookupLeftWhile(check: Char => Boolean, maxSteps: Int): Boolean

Lookup from the right side while check succeeds.

Lookup from the right side while check succeeds.

def lookupRightFor(string: String, maxDistance: Int): Boolean

Lookup for the given string from the left side.

Lookup for the given string from the left side.

def lookupRightUntil(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean

Lookup from the left side until check succeeds.

Lookup from the left side until check succeeds.

def lookupRightWhile(check: Char => Boolean, maxSteps: Int): Boolean

Lookup from the left side while check succeeds.

Lookup from the left side while check succeeds.

def lookupWhile(check: Char => Boolean, maxSteps: Int): Boolean
def lookupWhileNot(check: Char => Boolean, minSteps: Int, maxSteps: Int): Boolean
def maxElseBottom: Int
def maxElseTop: Int
def merge(other: Zoom): Boolean

Merge contours and frames.

Merge contours and frames.

def minElseBottom: Int
def minElseTop: Int
def noGapBetweenContours(other: Zoom): Boolean
def noOverlapBetweenContours(other: Zoom): Boolean
def nonEmpty: Boolean
final def prettyPrint: String
def resizeFrame(distance: Int, leftSide: Boolean): Unit

Change frame boundary on the left or the right side.

Change frame boundary on the left or the right side.

def right: Int
def setFrame(from: Int, to: Int): Zoom
def squeezeRightOrLeft(offset: Int, minWidth: Int, maxTo: Int): Boolean
def start(): Int
def takeAll(): Boolean
def takeAllFromLeft(): Boolean

Expand contour from the left side.

Expand contour from the left side.

def takeAllFromRight(): Boolean

Expand contour from the right side.

Expand contour from the right side.

override def toString(): String
Definition Classes
Any
def unionContour(other: Zoom): Boolean

Union contours.

Union contours.