@Test public void testLinearCategory() throws TransformException { for (int pass = 0; pass < 100; pass++) { final int lower = random.nextInt(64); final int upper = random.nextInt(128) + lower + 1; final Category category = new Category("Auto", null, lower, upper); assertValueEquals("lower", category.getRange().getMinValue().intValue(), lower); assertValueEquals("upper", category.getRange().getMaxValue().intValue(), upper); } }
public NumberRange<? extends Number> getRange() { assert range != null; return range; }
Category implements Serializable { public NumberRange<? extends Number> getRange() { assert range != null; return range; } }
Category implements Serializable { public NumberRange<? extends Number> getRange() { assert range != null; return range; } Category(final CharSequence name, final Color color, final boolean sample);  Category(final CharSequence name, final Color color, final int sample);  Category(
            final CharSequence name,
            final Color color,
            final int sample,
            final boolean isQuantitative);  Category(final CharSequence name, final Color color, final double sample); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final Number sample,
            final boolean isQuantitative);  Category(
            final CharSequence name, final Color color, final NumberRange<?> sampleValueRange);  Category(final CharSequence name, final Color[] colors, final int lower, final int upper);  Category(
            final CharSequence name, final Color[] colors, final NumberRange sampleValueRange);  Category(
            final CharSequence name,
            final Color[] colors,
            final NumberRange sampleValueRange,
            final boolean isQuantitative); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final NumberRange range,
            final boolean isQuantitative); }
Category implements Serializable { public NumberRange<? extends Number> getRange() { assert range != null; return range; } Category(final CharSequence name, final Color color, final boolean sample);  Category(final CharSequence name, final Color color, final int sample);  Category(
            final CharSequence name,
            final Color color,
            final int sample,
            final boolean isQuantitative);  Category(final CharSequence name, final Color color, final double sample); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final Number sample,
            final boolean isQuantitative);  Category(
            final CharSequence name, final Color color, final NumberRange<?> sampleValueRange);  Category(final CharSequence name, final Color[] colors, final int lower, final int upper);  Category(
            final CharSequence name, final Color[] colors, final NumberRange sampleValueRange);  Category(
            final CharSequence name,
            final Color[] colors,
            final NumberRange sampleValueRange,
            final boolean isQuantitative); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final NumberRange range,
            final boolean isQuantitative); InternationalString getName(); Color[] getColors(); NumberRange<? extends Number> getRange(); boolean isQuantitative(); Category recolor(final Color[] colors); @Override int hashCode(); @Override boolean equals(final Object object); @Override String toString(); }
Category implements Serializable { public NumberRange<? extends Number> getRange() { assert range != null; return range; } Category(final CharSequence name, final Color color, final boolean sample);  Category(final CharSequence name, final Color color, final int sample);  Category(
            final CharSequence name,
            final Color color,
            final int sample,
            final boolean isQuantitative);  Category(final CharSequence name, final Color color, final double sample); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final Number sample,
            final boolean isQuantitative);  Category(
            final CharSequence name, final Color color, final NumberRange<?> sampleValueRange);  Category(final CharSequence name, final Color[] colors, final int lower, final int upper);  Category(
            final CharSequence name, final Color[] colors, final NumberRange sampleValueRange);  Category(
            final CharSequence name,
            final Color[] colors,
            final NumberRange sampleValueRange,
            final boolean isQuantitative); private  Category(
            final CharSequence name,
            final int[] ARGB,
            final NumberRange range,
            final boolean isQuantitative); InternationalString getName(); Color[] getColors(); NumberRange<? extends Number> getRange(); boolean isQuantitative(); Category recolor(final Color[] colors); @Override int hashCode(); @Override boolean equals(final Object object); @Override String toString(); static final Category NODATA; static final Category FALSE; static final Category TRUE; }