|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyleVisitorAdapter
StyleVisitorCoverageProcessingNodeAdapter
public abstract class StyleVisitorCoverageProcessingNodeAdapter
This class implements an adapter to allow a CoverageProcessingNode
to feed itself by visiting an SLD Style
.
This class can be used to tie together CoverageProcessingNode
s built from a chains as specified by the RasterSymbolizer
SLd element.
Constructor Summary | |
---|---|
StyleVisitorCoverageProcessingNodeAdapter(CoverageProcessingNode adaptee)
|
|
StyleVisitorCoverageProcessingNodeAdapter(InternationalString name,
InternationalString description)
Default constructor for StyleVisitorCoverageProcessingNodeAdapter |
|
StyleVisitorCoverageProcessingNodeAdapter(int maxSources,
Hints hints,
InternationalString name,
InternationalString description)
Default constructor that gives users the possibility |
|
StyleVisitorCoverageProcessingNodeAdapter(int maxSources,
InternationalString name,
InternationalString description)
Default constructor that gives users the possibility |
Method Summary | |
---|---|
void |
addSink(CoverageProcessingNode sink)
Adds a sink CoverageProcessingNode to the list of sinks for this
CoverageProcessingNode . |
boolean |
addSource(CoverageProcessingNode source)
Adds a source CoverageProcessingNode to the list of sources for
this CoverageProcessingNode . |
void |
dispose(boolean force)
Disposes all the resources used by this CoverageProcessingNode . |
protected static void |
ensureNotNull(Object source,
String name)
Checks whether the provided object is null or not. |
protected static void |
ensureSourceNotNull(Object source,
String name)
Checks whether the provided source object is null or not. |
protected abstract GridCoverage |
execute()
|
protected CoverageProcessingNode |
getAdaptee()
Allows subclasses to access the CoverageProcessingNode we are adapting. |
GridCoverageFactory |
getCoverageFactory()
The GridCoverageFactory we will internally use for build
intermediate and output GridCoverage2D . |
InternationalString |
getDescription()
Retrieves the description for this CoverageProcessingNode |
Hints |
getHints()
Getter for Hints . |
InternationalString |
getName()
Retrieves the name for this CoverageProcessingNode |
int |
getNumberOfSinks()
Returns the number of sinks for this CoverageProcessingNode . |
int |
getNumberOfSources()
Returns the number of sources for this CoverageProcessingNode . |
GridCoverage |
getOutput()
Forces this node to create the output coverage for the operation represented by this node. |
CoverageProcessingNode |
getSink(int index)
Retrieves the sink located at index index in the
List of sinks for this CoverageProcessingNode . |
List<CoverageProcessingNode> |
getSinks()
Retrieves the List of sinks for this
CoverageProcessingNode . |
CoverageProcessingNode |
getSource(int index)
Retrieves the source located at index index in the
List of sources for this CoverageProcessingNode . |
List<CoverageProcessingNode> |
getSources()
Retrieves the List of source for this
CoverageProcessingNode . |
boolean |
removeSink(CoverageProcessingNode sink)
Removes a sink CoverageProcessingNode from the list of sinks for
this CoverageProcessingNode . |
CoverageProcessingNode |
removeSink(int index)
Removes a sink CoverageProcessingNode from the list of sinks for
this CoverageProcessingNode . |
boolean |
removeSource(CoverageProcessingNode source)
Removes a source CoverageProcessingNode to the list of sources
for this CoverageProcessingNode . |
CoverageProcessingNode |
removeSource(int index)
Removes a source CoverageProcessingNode to the list of sources
for this CoverageProcessingNode . |
String |
toString()
Provides a descriptive description for this CoverageProcessingNode . |
Methods inherited from class StyleVisitorAdapter |
---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface StyleVisitor |
---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Constructor Detail |
---|
public StyleVisitorCoverageProcessingNodeAdapter(CoverageProcessingNode adaptee)
adaptee
- public StyleVisitorCoverageProcessingNodeAdapter(InternationalString name, InternationalString description)
StyleVisitorCoverageProcessingNodeAdapter
public StyleVisitorCoverageProcessingNodeAdapter(int maxSources, InternationalString name, InternationalString description)
maxSources
- maximum number of sources allowed for this node.public StyleVisitorCoverageProcessingNodeAdapter(int maxSources, Hints hints, InternationalString name, InternationalString description)
maxSources
- maximum number of sources allowed for this node.hints
- instance of Hints
class to control creation of
internal factories. It can be null
.Method Detail |
---|
protected static void ensureSourceNotNull(Object source, String name)
IllegalArgumentException
exception.
source
- the object to check.node
- the operation we are trying to run.protected static void ensureNotNull(Object source, String name)
IllegalArgumentException
exception.
source
- the object to check.node
- the operation we are trying to run.protected CoverageProcessingNode getAdaptee()
CoverageProcessingNode
we are adapting.
protected abstract GridCoverage execute()
BaseCoverageProcessingNode.execute()
public void addSink(CoverageProcessingNode sink)
CoverageProcessingNode
CoverageProcessingNode
to the list of sinks for this
CoverageProcessingNode
.
addSink
in interface CoverageProcessingNode
public boolean addSource(CoverageProcessingNode source)
CoverageProcessingNode
CoverageProcessingNode
to the list of sources for
this CoverageProcessingNode
.
addSource
in interface CoverageProcessingNode
source
- the CoverageProcessingNode
to add to the List
of sources for this CoverageProcessingNode
.
true
if everything goes fine, false
otherwise.public GridCoverage getOutput()
CoverageProcessingNode
getOutput
in interface CoverageProcessingNode
Coverage
which represents the output for this
CoverageProcessingNode
.public CoverageProcessingNode getSink(int index)
CoverageProcessingNode
index
in the
List
of sinks for this CoverageProcessingNode
.
getSink
in interface CoverageProcessingNode
index
- is the zero-based index for the source we want to access.
CoverageProcessingNode
which represents the source at
index index
for this
CoverageProcessingNode
.public List<CoverageProcessingNode> getSinks()
CoverageProcessingNode
List
of sinks for this
CoverageProcessingNode
. Each sink MUST be a
CoverageProcessingNode
.
getSinks
in interface CoverageProcessingNode
List
of CoverageProcessingNode
which represents
the sinks for this CoverageProcessingNode
.public CoverageProcessingNode getSource(int index)
CoverageProcessingNode
index
in the
List
of sources for this CoverageProcessingNode
.
getSource
in interface CoverageProcessingNode
index
- is the zero-based index for the sink we want to get.
CoverageProcessingNode
which represents the sink at
index index
for this
CoverageProcessingNode
.public List<CoverageProcessingNode> getSources()
CoverageProcessingNode
List
of source for this
CoverageProcessingNode
. Each source MUST be a
CoverageProcessingNode
.
getSources
in interface CoverageProcessingNode
List
of CoverageProcessingNode
which represents
the sources for this CoverageProcessingNode
.public boolean removeSink(CoverageProcessingNode sink)
CoverageProcessingNode
CoverageProcessingNode
from the list of sinks for
this CoverageProcessingNode
.
removeSink
in interface CoverageProcessingNode
sink
- the CoverageProcessingNode
to remove from the
List
of sinks for this CoverageProcessingNode
.
true
in case we remove something,
false
otherwise.public CoverageProcessingNode removeSink(int index)
CoverageProcessingNode
CoverageProcessingNode
from the list of sinks for
this CoverageProcessingNode
.
removeSink
in interface CoverageProcessingNode
index
- the index at which we want to remove a sink from the
List
of sinks for this CoverageProcessingNode
.
CoverageProcessingNode
we actually remove from the
sinks list.public boolean removeSource(CoverageProcessingNode source)
CoverageProcessingNode
CoverageProcessingNode
to the list of sources
for this CoverageProcessingNode
.
removeSource
in interface CoverageProcessingNode
true
in case we remove something,
false
otherwise.public CoverageProcessingNode removeSource(int index)
CoverageProcessingNode
CoverageProcessingNode
to the list of sources
for this CoverageProcessingNode
.
removeSource
in interface CoverageProcessingNode
index
- the index at which we want to remove a source from the
List
of sources for this
CoverageProcessingNode
.
CoverageProcessingNode
we actually remove from the
sources list.public void dispose(boolean force)
CoverageProcessingNode
CoverageProcessingNode
.
dispose
in interface CoverageProcessingNode
force
- true
to force disposal, false
to
suggest disposal.public Hints getHints()
CoverageProcessingNode
Hints
.
getHints
in interface CoverageProcessingNode
Hints
provided at construction time to control
GridCoverageFactory
creation.public GridCoverageFactory getCoverageFactory()
CoverageProcessingNode
GridCoverageFactory
we will internally use for build
intermediate and output GridCoverage2D
.
getCoverageFactory
in interface CoverageProcessingNode
GridCoverageFactory
we will internally use for build
intermediate and output GridCoverage2D
.public int getNumberOfSinks()
CoverageProcessingNode
CoverageProcessingNode
.
getNumberOfSinks
in interface CoverageProcessingNode
CoverageProcessingNode
.public int getNumberOfSources()
CoverageProcessingNode
CoverageProcessingNode
.
getNumberOfSources
in interface CoverageProcessingNode
CoverageProcessingNode
.public InternationalString getDescription()
CoverageProcessingNode
CoverageProcessingNode
getDescription
in interface CoverageProcessingNode
CoverageProcessingNode
public InternationalString getName()
CoverageProcessingNode
CoverageProcessingNode
getName
in interface CoverageProcessingNode
CoverageProcessingNode
public String toString()
CoverageProcessingNode
CoverageProcessingNode
.
toString
in interface CoverageProcessingNode
toString
in class Object
CoverageProcessingNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |