CategoricalPaintScale

case class CategoricalPaintScale[T](categories: T => Paint) extends PaintScale[T]

Maps items to colors using the given partial function. If no color is provided for the given item, then returns PaintScale.nanPaint.

trait Serializable
trait Product
trait Equals
trait PaintScale[T]
trait T => Paint
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: T): Paint

Inherited methods

@unspecialized
def andThen[A](g: Paint => A): T => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => T): A => Paint
Inherited from
Function1
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1