class Axes[A, B] extends Scale[(A, B), Vec] with Closed
primary means of construction is through rect.axes(xDomain,yDomain)
- Source
- scale.scala
- Alphabetic
- By Inheritance
- Axes
- Closed
- Shape
- Scale
- ScaleOneWay
- AnyRef
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def %(a: (A, B)): Vec
alias for apply which is a kind of evaluator
alias for apply which is a kind of evaluator
- Definition Classes
- ScaleOneWay
- def +(other: String): String
- def ->[B](y: B): (Axes[A, B], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(a: A, b: B): Vec
- def apply(pair: (A, B)): Vec
- Definition Classes
- Axes → ScaleOneWay
- def applyIf(t: Boolean, f: (Axes[A, B]) => Axes[A, B]): Axes[A, B]
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Axes[A, B]) => Boolean)(f: (Axes[A, B]) => Axes[A, B]): Axes[A, B]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val box: Rect
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contains(a: A, b: B): Boolean
- def contains(pair: (A, B)): Boolean
true if the argument can be applied to a domain
true if the argument can be applied to a domain
- Definition Classes
- Axes → ScaleOneWay
- def draw(implicit g: DrawContext): Unit
generic draw method
- def elementOf(xs: Set[Axes[A, B]]): Boolean
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Axes[A, B]) => Boolean, msg: => Any): Axes[A, B]
- def ensuring(cond: (Axes[A, B]) => Boolean): Axes[A, B]
- def ensuring(cond: Boolean, msg: => Any): Axes[A, B]
- def ensuring(cond: Boolean): Axes[A, B]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- def get(a: A, b: B): Option[Vec]
- def get(a: (A, B)): Option[Vec]
first check if the argument can be applied to a domain then apply the scale
first check if the argument can be applied to a domain then apply the scale
- Definition Classes
- ScaleOneWay
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inv(rv: Vec): (A, B)
- def invOption(b: Vec): Option[(A, B)]
invOption uses inv with exception handling (divide by zero is ugly).
invOption uses inv with exception handling (divide by zero is ugly). This method can be overridden for specific case speedup
- Definition Classes
- Scale
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Axes[A, B]) => Boolean): Option[Axes[A, B]]
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Axes[A, B]) => Boolean): Option[Axes[A, B]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def pad: Axes[A, B]
adjust explict bounds to include space for x and y axis with nice tick mark bounds
- def preApply[B](f: (Axes[A, B]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sideEffect(f: (Axes[A, B]) => Unit): Axes[A, B]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Axes[A, B]) => Boolean): Option[Axes[A, B]]
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Axes[A, B]
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: Axes[A, B]): Bound[Axes[A, B]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- val x: QuantitativeBound[A, Double]
- def xLine(v: A): Line
- def xTicks: Iterable[Text]
- def xTicks(count: Int): Iterable[Text]
- val y: QuantitativeBound[B, Double]
- def yLine(v: B): Line
- def yTicks: Iterable[Text]
- def yTicks(count: Int): Iterable[Text]
- def ~(color: Color): Styled
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
- def ~(property: Property): Styled
initialize shape with a style
initialize shape with a style
- Definition Classes
- Shape
- def ~(style: Style): Styled
Attach a style to a shape
Attach a style to a shape
- Definition Classes
- Shape
Deprecated Value Members
- def ?>(f: (Axes[A, B]) => Boolean): Option[Axes[A, B]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (Axes[A, B]) => B): B
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toDrxAny[Axes[A, B]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Axes[A, B], B)
- Implicit
- This member is added by an implicit conversion from Axes[A, B] toArrowAssoc[Axes[A, B]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.