public class BandScale<T>
Generic BandScale. The type is given by the domain. It can be a key built from the domain.
| Modifier and Type | Class and Description |
|---|---|
static class |
BandScale.Padding |
| Constructor and Description |
|---|
BandScale(java.util.Collection<? extends T> domain)
Generic BandScale. The type is given by the domain. It can be a key built from
the domain.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getBandwidth() |
java.util.Collection<T> |
getDomain() |
BandScale.Padding |
getPadding() |
boolean |
getRound() |
java.lang.Number |
getStart() |
double |
getStep() |
java.lang.Number |
getStop() |
java.lang.Number |
invoke(T key) |
BandScale.Padding |
padding(double inner,
double outer)
Simplifies the set of paddingInner and paddingOuter to the same value
|
void |
rescale() |
void |
setDomain(java.util.Collection<? extends T> p) |
void |
setPadding(BandScale.Padding value) |
void |
setRound(boolean p) |
void |
setStart(java.lang.Number value) |
void |
setStop(java.lang.Number value) |
public BandScale(java.util.Collection<? extends T> domain)
Generic BandScale. The type is given by the domain. It can be a key built from the domain.
public java.lang.Number getStart()
public void setStart(java.lang.Number value)
public java.lang.Number getStop()
public void setStop(java.lang.Number value)
public BandScale.Padding getPadding()
public void setPadding(BandScale.Padding value)
public BandScale.Padding padding(double inner, double outer)
Simplifies the set of paddingInner and paddingOuter to the same value
public boolean getRound()
public void setRound(boolean p)
public double getBandwidth()
public double getStep()
public void rescale()
public java.lang.Number invoke(T key)
public java.util.Collection<T> getDomain()
public void setDomain(java.util.Collection<? extends T> p)