public abstract class StyleVisitorCoverageProcessingNodeAdapter extends StyleVisitorAdapter implements StyleVisitor, CoverageProcessingNode
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 and Description |
---|
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
|
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
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
.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
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
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 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
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
.Copyright © 1996–2019 Geotools. All rights reserved.