public class

MultipartColorRamp

extends ColorRamp
implements List<ColorRamp>
java.lang.Object
   ↳ com.esri.core.renderer.ColorRamp
     ↳ com.esri.core.renderer.MultipartColorRamp

Class Overview

This class contains a list of ColorRamp instances and is intended to be used to define non-contiguous color ramps.

Summary

Public Constructors
MultipartColorRamp()
Instantiates a new multipart color ramp.
MultipartColorRamp(JsonNode node)
Instantiates a new multipart color ramp from the given JSON node.
Public Methods
boolean add(ColorRamp colorRamp)
void add(int index, ColorRamp element)
boolean addAll(int index, Collection<? extends ColorRamp> c)
boolean addAll(Collection<? extends ColorRamp> c)
void clear()
boolean contains(Object colorRamp)
boolean containsAll(Collection<?> c)
ColorRamp get(int index)
int indexOf(Object o)
boolean isEmpty()
Iterator<ColorRamp> iterator()
int lastIndexOf(Object o)
ListIterator<ColorRamp> listIterator(int index)
ListIterator<ColorRamp> listIterator()
ColorRamp remove(int index)
boolean remove(Object colorRamp)
boolean removeAll(Collection<?> c)
boolean retainAll(Collection<?> c)
ColorRamp set(int index, ColorRamp element)
int size()
List<ColorRamp> subList(int fromIndex, int toIndex)
Object[] toArray()
<T> T[] toArray(T[] a)
String toString()
Protected Methods
void toJson(JsonGenerator node)
This method is used by toJson() to turn this instance into a JSON string.
[Expand]
Inherited Methods
From class com.esri.core.renderer.ColorRamp
From class java.lang.Object
From interface java.util.List
From interface java.util.Collection
From interface java.lang.Iterable

Public Constructors

public MultipartColorRamp ()

Instantiates a new multipart color ramp.

public MultipartColorRamp (JsonNode node)

Instantiates a new multipart color ramp from the given JSON node.

Parameters
node JsonNode: the node defining a multipart color ramp

Public Methods

public boolean add (ColorRamp colorRamp)

Parameters
colorRamp ColorRamp
Returns
boolean

public void add (int index, ColorRamp element)

Parameters
index int
element ColorRamp

public boolean addAll (int index, Collection<? extends ColorRamp> c)

Parameters
index int
c Collection
Returns
boolean

public boolean addAll (Collection<? extends ColorRamp> c)

Parameters
c Collection
Returns
boolean

public void clear ()

public boolean contains (Object colorRamp)

Parameters
colorRamp Object
Returns
boolean

public boolean containsAll (Collection<?> c)

Parameters
c Collection
Returns
boolean

public ColorRamp get (int index)

Parameters
index int
Returns
ColorRamp

public int indexOf (Object o)

Parameters
o Object
Returns
int

public boolean isEmpty ()

Returns
boolean

public Iterator<ColorRamp> iterator ()

Returns
Iterator<ColorRamp>

public int lastIndexOf (Object o)

Parameters
o Object
Returns
int

public ListIterator<ColorRamp> listIterator (int index)

Parameters
index int
Returns
ListIterator<ColorRamp>

public ListIterator<ColorRamp> listIterator ()

Returns
ListIterator<ColorRamp>

public ColorRamp remove (int index)

Parameters
index int
Returns
ColorRamp

public boolean remove (Object colorRamp)

Parameters
colorRamp Object
Returns
boolean

public boolean removeAll (Collection<?> c)

Parameters
c Collection
Returns
boolean

public boolean retainAll (Collection<?> c)

Parameters
c Collection
Returns
boolean

public ColorRamp set (int index, ColorRamp element)

Parameters
index int
element ColorRamp
Returns
ColorRamp

public int size ()

Returns
int

public List<ColorRamp> subList (int fromIndex, int toIndex)

Parameters
fromIndex int
toIndex int
Returns
List<ColorRamp>

public Object[] toArray ()

Returns
Object[]

public T[] toArray (T[] a)

Parameters
a T
Returns
T[]

public String toString ()

Returns
String

Protected Methods

protected void toJson (JsonGenerator node)

This method is used by toJson() to turn this instance into a JSON string.

This method should be overridden in subclasses to add their class data to the given JSON node. Note that this base class method should be called by the override.

Parameters
node JsonGenerator: the node
Throws
IOException
JsonGenerationException
Exception