Packages

object Scale

Source
scale.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scale
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Discrete[A](step: A)(implicit d: Discretable[A]) extends Scale[A, A] with Product with Serializable

    Discrete scale offers a simple way to map [A] to a discrete set of [A's] separated by a step size //TODO deprecate?? this has been used more with Bound.take or Bound.step??

    Discrete scale offers a simple way to map [A] to a discrete set of [A's] separated by a step size //TODO deprecate?? this has been used more with Bound.take or Bound.step??

    step

    the step size of the discretization

  2. class Ordinal[A, B] extends Scale[A, B]

    An Ordinal scale

  3. class OrdinalBoundedDomain[A, B] extends Scale[A, B]
  4. class OrdinalBoundedRange[A, B] extends Scale[A, B]

    An Ordinal scale based on an outoutBound

  5. class Quantitative[A, B] extends ScaleOneWay[A, B]

    The most common 1d Scale with a continuous domain and range

  6. class QuantitativeBound[A, B] extends QuantitativeInv[A, B] with Scale[A, B]
  7. class QuantitativeInv[A, B] extends Quantitative[A, B] with Scale[A, B]
  8. class QuantitativeRegions[A, B] extends ScaleOneWay[A, B]

    A Scale with multiple scales regions (a poly scale)

  9. type ScaleBounds[A, B] = QuantitativeRegions[A, B]
  10. class ScaleGrid[Ad, Bd, R] extends ScaleOneWay[(Ad, Bd), R]

    scale x,y domains to to m-n matrix values

  11. type ScaleIndexed[A, B] = Ordinal[A, B]
  12. class ScaleTuple2[Ad, Ar, Bd, Br] extends Scale[(Ad, Bd), (Ar, Br)]
  13. class ScaleVec[Ad, Bd] extends Scale[(Ad, Bd), Vec]
  14. class SingularException extends scala.Exception

    An simple class to throw a more specific error for Bounds that can not be inverted

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[A](step: A)(implicit d: Discretable[A]): Discrete[A]
  5. def apply[A, B](domain: Bound[A], range: IndexedSeq[B]): OrdinalBoundedDomain[A, B]

    indexed map ex: Scale(0 to 10, Color.viridis) and Scale(1 to 10, Vector(1,2,3))

  6. def apply[A, B](initDomain: Iterable[A], range: Bound[B]): OrdinalBoundedRange[A, B]

    Construct an ordinal scale from a domain where range bands are automatically created from the size of the domain

  7. def apply[A, B](initDomain: Iterable[A], range: Iterable[B]): Ordinal[A, B]

    Construct an ordinal scales with predefined domain (better for deterministic results and thread safety)

  8. def apply[A, B](range: Iterable[B]): Ordinal[A, B]

    Construct an ordinal scales

    Construct an ordinal scales

    range

    the modulus output values Example:

    val truth = Scale[Int,String](Seq["Black","White"])
    truth(0) //"Black"
    truth(1) //"White"
    truth(2) //"Black"
    truth(10)//"White"
    truth(1) //"White"
    truth.domain //IndexedSeq(0,1,2,10)
  9. def apply[Ad, Bd, R](xDomain: Bound[Ad], yDomain: Bound[Bd], grid: Grid[R]): ScaleGrid[Ad, Bd, R]
  10. def apply[Ad, Bd](aDomain: Bound[Ad], bDomain: Bound[Bd], range: Rect): ScaleVec[Ad, Bd]
  11. def apply[Ad, Bd](aScale: Scale[Ad, Double], bScale: Scale[Bd, Double]): ScaleVec[Ad, Bd]
  12. def apply[Ad, Ar, Bd, Br](aScale: Scale[Ad, Ar], bScale: Scale[Bd, Br]): ScaleTuple2[Ad, Ar, Bd, Br]
  13. def apply[A, B](boundaries: (A, B)*)(implicit bDomain: Boundable[A], bRange: Boundable[B]): QuantitativeRegions[A, B]

    Construct scales with multiple regions

    Construct scales with multiple regions

    boundaries

    boundary point mappings of Boundable types Example:

    val ageColor = Scale(0 -> Red, 2 -> Orange, 10 -> Green)
    ageColor(1) //Redish-orange)
  14. def apply[A, B](domain: LerpInv[A], range: Lerp[B]): Quantitative[A, B]
  15. def apply[A, B](domain: LerpInv[A], range: LerpInv[B]): QuantitativeInv[A, B]
  16. def apply[A, B](domain: Bound[A], range: Bound[B]): QuantitativeBound[A, B]
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def cat10[A](domain: Iterable[A] = Seq[A]()): Ordinal[A, Color]

    Convenience function for d3.scale.category10 ordinal scale

  19. def cat20[A](domain: Iterable[A] = Seq[A]()): Ordinal[A, Color]

    Convenience function for d3.scale.category20 ordinal scale

  20. def cat20b[A](domain: Iterable[A] = Seq[A]()): Ordinal[A, Color]

    Convenience function for d3.scale.category20b ordinal scale

  21. def cat20c[A](domain: Iterable[A] = Seq[A]()): Ordinal[A, Color]

    Convenience function for d3.scale.category20c ordinal scale

  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. object Discrete extends Serializable

Deprecated Value Members

  1. def apply(): Quantitative[Double, Double]

    Convenience constructor to the most common Scale type of 0~1 to 0~1

    Convenience constructor to the most common Scale type of 0~1 to 0~1

    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) too much default and why this default useful

Inherited from AnyRef

Inherited from Any

Ungrouped