public class DefaultRender extends Object implements Render, PropertyListener, FilterListChangeListener, Persistent, TileListener
| Constructor and Description |
|---|
DefaultRender()
Constructor
|
DefaultRender(RasterDataStore ds)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionValueChanged(PropertyEvent e)
Evento activado cuando cambia una propiedad de transparencia.
|
void |
addVisualPropertyListener(VisualPropertyListener listener)
Asigna un listener a la lista que será informado cuando cambie una
propiedad visual en la renderización.
|
void |
buildFiltersFromPersistencyFilterParam(Statistics stats)
Builds the filters from the list of classes
PersistencyFilterParam recovered from a project |
void |
dispose()
Sets buffers to null
|
Buffer |
draw(Graphics2D g,
ViewPortData vp,
ICoordTrans coordTrans,
TaskStatus taskStatus)
Dibuja la extensión del viewport sobre el graphics aplicando la
transformación que recibe como parámetro.
|
Buffer |
draw(Graphics2D g,
ViewPortData vp,
TaskStatus taskStatus)
Dibuja el raster sobre el Graphics.
|
void |
drawThread(Graphics2D g,
ViewPortData vp)
This method throws the draw call in a Thread.
|
void |
drawTiledService(Graphics2D g,
ViewPortData vp,
Dimension2D viewDimension,
ICoordTrans coordTrans,
TaskStatus taskStatus)
Dibuja la extensión del viewport de forma teselada sobre el graphics
aplicando la
transformación que recibe como parámetro.
|
void |
drawTiledService(Graphics2D g,
ViewPortData vp,
Dimension2D viewDimension,
TaskStatus status)
Este método dibuja sobre el Graphics a partir de un Viewport sin ajustar.
|
void |
endReading()
The last tile is received
|
boolean |
existColorTable()
Informa de si el raster tiene tabla de color asociada o no.
|
void |
filterListChanged(FilterListChangeEvent e)
Evento activado cuando cambia la lista de filtros.
|
protected void |
finalize() |
int[] |
formatArrayRenderBand(int[] b)
Dado que la notación de bandas para renderizado admite posiciones con -1 y la notación del
buffer no ya que no tendria sentido.
|
ColorTable |
getColorTable()
Gets the color table
|
RasterDataStore |
getDataStore()
Gets a data store
|
RasterFilterList |
getFilterList()
Obtiene las lista de filtros aplicados en la renderización
|
int |
getLastAlphaBandNumber()
Gets the last alpha band number
|
Buffer |
getLastRenderBuffer()
Draws the image with the parameters used in the last drawn.
|
ColorInterpretation |
getRenderColorInterpretation()
Gets the color interpretation to renderize this layer
|
Transparency |
getRenderingTransparency()
Obtiene el último objeto transparencia aplicado en la renderización
|
boolean |
isReading()
Returns true if the endReading wasn't be called yet
|
boolean |
isRenderingAsGray()
Devuelve si la asignacion de las bandas a renderizar representa una capa
en escala de grises
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
run()
Thread de dibujado
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDataSource(RasterDataStore ds)
Asigna la factoria de buffer del renderizador
|
void |
setDataStore(RasterDataStore dataStore)
Sets a data store
|
void |
setFilterList(RasterFilterList filterList)
Asigna la lista de filtros que se usará en el renderizado
|
void |
setGraphicInfo(Graphics2D g,
ViewPortData vp)
Sets the view structures to draw
|
void |
setLastTransparency(Transparency lastTransparency)
Asigna el último estado de transparencia de la renderización.
|
void |
setReading(boolean reading) |
void |
setRenderColorInterpretation(ColorInterpretation ci)
Sets the color interpretation to renderize this layer
|
void |
tileReady(Tile loadedTile)
A new tile is received
|
public DefaultRender()
grid - public DefaultRender(RasterDataStore ds)
ds - public RasterDataStore getDataStore()
RendergetDataStore in interface Renderpublic void setDataStore(RasterDataStore dataStore)
RendersetDataStore in interface Renderpublic void addVisualPropertyListener(VisualPropertyListener listener)
addVisualPropertyListener in interface Renderlistener - VisualPropertyListenerpublic void setGraphicInfo(Graphics2D g, ViewPortData vp)
RendersetGraphicInfo in interface Renderpublic void drawThread(Graphics2D g, ViewPortData vp)
RenderThis method throws the draw call in a Thread. This is useful to draw tiles.
Strategy:
drawThread in interface Renderdrawpublic Buffer getLastRenderBuffer() throws QueryException, ProcessInterruptedException
RendergetLastRenderBuffer in interface RenderQueryExceptionProcessInterruptedExceptionpublic void drawTiledService(Graphics2D g, ViewPortData vp, Dimension2D viewDimension, ICoordTrans coordTrans, TaskStatus taskStatus) throws QueryException, ProcessInterruptedException
RenderdrawTiledService in interface Renderg - Graphics sobre el que se pintavp - ViewPort de la extensión a dibujarviewDimension - Dimensión de la vistacoordTrans - Transformación a aplicar sobre el buffer antes de ser
dibujado. La transformación será valida si tiene como
proyección fuente la proyección de la extensión del ViewPort y
como proyección destino la proyección de la fuente de datos.taskStatus - Objeto compartido para indicar el estado de la tareaQueryExceptionProcessInterruptedExceptionpublic void tileReady(Tile loadedTile) throws TileGettingException
TileListenertileReady in interface TileListenerTileGettingExceptionpublic Buffer draw(Graphics2D g, ViewPortData vp, ICoordTrans coordTrans, TaskStatus taskStatus) throws QueryException, ProcessInterruptedException
Renderdraw in interface Renderg - Graphics sobre el que se pintavp - ViewPort de la extensión a dibujarcoordTrans - Transformación a aplicar sobre el buffer antes de ser
dibujado. La transformación será valida si tiene como
proyección fuente la proyección de la extensión del ViewPort y
como proyección destino la proyección de la fuente de datos.taskStatus - Objeto compartido para indicar el estado de la tareaQueryExceptionProcessInterruptedExceptionpublic void endReading()
TileListenerendReading in interface TileListenerpublic boolean isReading()
TileListenerisReading in interface TileListenerpublic void setReading(boolean reading)
setReading in interface Renderpublic boolean isRenderingAsGray()
RenderisRenderingAsGray in interface Renderpublic void setRenderColorInterpretation(ColorInterpretation ci)
RendersetRenderColorInterpretation in interface Renderpublic ColorInterpretation getRenderColorInterpretation()
RendergetRenderColorInterpretation in interface Renderpublic int[] formatArrayRenderBand(int[] b)
b - Array que indica la posición de bandas para el renderizadopublic Transparency getRenderingTransparency()
RendergetRenderingTransparency in interface Renderpublic int getLastAlphaBandNumber()
RendergetLastAlphaBandNumber in interface Renderpublic void setLastTransparency(Transparency lastTransparency)
RendersetLastTransparency in interface Renderpublic RasterFilterList getFilterList()
RendergetFilterList in interface Renderpublic void setFilterList(RasterFilterList filterList)
RendersetFilterList in interface Renderpublic boolean existColorTable()
RenderexistColorTable in interface Renderpublic ColorTable getColorTable()
RendergetColorTable in interface Renderpublic void setDataSource(RasterDataStore ds)
ds - public void actionValueChanged(PropertyEvent e)
actionValueChanged in interface PropertyListenerpublic void filterListChanged(FilterListChangeEvent e)
filterListChanged in interface FilterListChangeListenerpublic void dispose()
dispose in interface Disposableprotected void finalize()
throws Throwable
public static void registerPersistence()
public void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void buildFiltersFromPersistencyFilterParam(Statistics stats) throws PersistenceException
PersistencyFilterParam recovered from a projectstats - PersistenceExceptionpublic Buffer draw(Graphics2D g, ViewPortData vp, TaskStatus taskStatus) throws QueryException, ProcessInterruptedException
Renderdraw in interface Renderg - Graphics sobre el que se pintavp - ViewPort de la extensión a dibujarQueryExceptionProcessInterruptedExceptionpublic void drawTiledService(Graphics2D g, ViewPortData vp, Dimension2D viewDimension, TaskStatus status) throws QueryException, ProcessInterruptedException
RenderdrawTiledService in interface RenderProcessInterruptedExceptionQueryException