public enum PixelBase extends Enum<PixelBase> implements IDomainBase
Enum Constant and Description |
---|
px |
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN_LABEL |
STYLE_ALLOW_0_WITHOUT_UNITS, STYLE_AUTO_UNIT, STYLE_DEFAULT, STYLE_DELTA, STYLE_PREFFERED_UNIT, STYLE_REMOVE_TRAILING_ZEROS, UL0, UL1, UL2
Modifier and Type | Method and Description |
---|---|
static PixelBase |
bestFit(double diff) |
long |
convertTo(IDomainBase base,
long unit) |
long[] |
convertTo(IDomainBase base,
long[] units) |
String |
getDomainLabel() |
BigDecimal |
getQuantum() |
IDomainBase |
getReaderBase(IDomainBase samplesBase) |
boolean |
isCompatible(IDomainBase base) |
boolean |
isFinerThan(IDomainBase base) |
boolean |
isPreferred() |
static PixelBase |
parse(String text) |
long |
parseUnits(String value) |
void |
setPreferred(boolean preferred) |
double |
toCommonBase() |
double |
toCommonBase(long units) |
String |
toString()
Returns the name of this enum constant, as contained in the
declaration.
|
String |
toString(long units) |
String |
toString(long units,
int style) |
int |
userLevel() |
static PixelBase |
valueOf(int ordinal) |
static PixelBase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PixelBase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
ordinal
public static final PixelBase px
public static final String DOMAIN_LABEL
public static PixelBase[] values()
for (PixelBase c : PixelBase.values()) System.out.println(c);
public static PixelBase valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int userLevel()
userLevel
in interface IDomainBase
public void setPreferred(boolean preferred)
setPreferred
in interface IDomainBase
public boolean isPreferred()
isPreferred
in interface IDomainBase
public String toString()
Enum
public String toString(long units)
toString
in interface IDomainBase
public String toString(long units, int style)
toString
in interface IDomainBase
public BigDecimal getQuantum()
getQuantum
in interface IDomainBase
public double toCommonBase()
toCommonBase
in interface IDomainBase
public double toCommonBase(long units)
toCommonBase
in interface IDomainBase
public static PixelBase bestFit(double diff)
public static PixelBase valueOf(int ordinal)
public boolean isCompatible(IDomainBase base)
isCompatible
in interface IDomainBase
public long[] convertTo(IDomainBase base, long[] units)
convertTo
in interface IDomainBase
public long convertTo(IDomainBase base, long unit)
convertTo
in interface IDomainBase
public String getDomainLabel()
getDomainLabel
in interface IDomainBase
public long parseUnits(String value)
parseUnits
in interface IDomainBase
public boolean isFinerThan(IDomainBase base)
isFinerThan
in interface IDomainBase
public IDomainBase getReaderBase(IDomainBase samplesBase)
getReaderBase
in interface IReaderDomainBaseProvider