com.esri.core.internal.value
Class MultipartColorRamp
java.lang.Object
com.esri.core.internal.value.ColorRamp
com.esri.core.internal.value.MultipartColorRamp
- All Implemented Interfaces:
- Iterable<ColorRamp>, Collection<ColorRamp>, List<ColorRamp>
public class MultipartColorRamp
- extends ColorRamp
- implements List<ColorRamp>
This class contains a list of ColorRamp
instances and is
intended to be used to define non-contiguous color ramps.
Constructor Summary |
MultipartColorRamp()
Instantiates a new multipart color ramp. |
MultipartColorRamp(org.codehaus.jackson.JsonNode node)
Instantiates a new multipart color ramp from the given JSON node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipartColorRamp
public MultipartColorRamp()
- Instantiates a new multipart color ramp.
MultipartColorRamp
public MultipartColorRamp(org.codehaus.jackson.JsonNode node)
- Instantiates a new multipart color ramp from the given JSON node.
- Parameters:
node
- the node defining a multipart color ramp
add
public boolean add(ColorRamp colorRamp)
- Specified by:
add
in interface Collection<ColorRamp>
- Specified by:
add
in interface List<ColorRamp>
size
public int size()
- Specified by:
size
in interface Collection<ColorRamp>
- Specified by:
size
in interface List<ColorRamp>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<ColorRamp>
- Specified by:
isEmpty
in interface List<ColorRamp>
contains
public boolean contains(Object colorRamp)
- Specified by:
contains
in interface Collection<ColorRamp>
- Specified by:
contains
in interface List<ColorRamp>
iterator
public Iterator<ColorRamp> iterator()
- Specified by:
iterator
in interface Iterable<ColorRamp>
- Specified by:
iterator
in interface Collection<ColorRamp>
- Specified by:
iterator
in interface List<ColorRamp>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<ColorRamp>
- Specified by:
toArray
in interface List<ColorRamp>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface Collection<ColorRamp>
- Specified by:
toArray
in interface List<ColorRamp>
remove
public boolean remove(Object colorRamp)
- Specified by:
remove
in interface Collection<ColorRamp>
- Specified by:
remove
in interface List<ColorRamp>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<ColorRamp>
- Specified by:
containsAll
in interface List<ColorRamp>
addAll
public boolean addAll(Collection<? extends ColorRamp> c)
- Specified by:
addAll
in interface Collection<ColorRamp>
- Specified by:
addAll
in interface List<ColorRamp>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<ColorRamp>
- Specified by:
removeAll
in interface List<ColorRamp>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<ColorRamp>
- Specified by:
retainAll
in interface List<ColorRamp>
clear
public void clear()
- Specified by:
clear
in interface Collection<ColorRamp>
- Specified by:
clear
in interface List<ColorRamp>
addAll
public boolean addAll(int index,
Collection<? extends ColorRamp> c)
- Specified by:
addAll
in interface List<ColorRamp>
get
public ColorRamp get(int index)
- Specified by:
get
in interface List<ColorRamp>
set
public ColorRamp set(int index,
ColorRamp element)
- Specified by:
set
in interface List<ColorRamp>
add
public void add(int index,
ColorRamp element)
- Specified by:
add
in interface List<ColorRamp>
remove
public ColorRamp remove(int index)
- Specified by:
remove
in interface List<ColorRamp>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interface List<ColorRamp>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interface List<ColorRamp>
listIterator
public ListIterator<ColorRamp> listIterator()
- Specified by:
listIterator
in interface List<ColorRamp>
listIterator
public ListIterator<ColorRamp> listIterator(int index)
- Specified by:
listIterator
in interface List<ColorRamp>
subList
public List<ColorRamp> subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface List<ColorRamp>
toJson
protected void toJson(org.codehaus.jackson.JsonGenerator node)
throws IOException,
org.codehaus.jackson.JsonGenerationException,
Exception
- Description copied from class:
ColorRamp
- This method is used by
ColorRamp.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.
- Overrides:
toJson
in class ColorRamp
- Parameters:
node
- the node
- Throws:
IOException
- Signals that an I/O exception has occurred.
org.codehaus.jackson.JsonGenerationException
- the json generation exception
Exception
- the exception
Copyright © 2012. All Rights Reserved.