public final class HeatmapBuilder extends Object
Constructor and Description |
---|
HeatmapBuilder(int targetCount,
int queryCount,
HeatmapRenderingParameters renderingParameters)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areQueryIdsShown() |
boolean |
areTargetIdsShown() |
int |
getCellCount()
Total cell count.
|
int |
getImageSize()
Underlying image size in pixels.
|
void |
set(int target,
int query,
double dissimilarity) |
void |
setQueryId(int queryIndex,
String queryId) |
void |
setTargetId(int targetIndex,
String targetId) |
boolean |
write(OutputStream outputStream)
Write image.
|
public HeatmapBuilder(int targetCount, int queryCount, HeatmapRenderingParameters renderingParameters)
targetCount
- Target countqueryCount
- Query countrenderingParameters
- Rendering parameters. State must not be modified during interacting with this builderpublic boolean areQueryIdsShown()
public boolean areTargetIdsShown()
public void setQueryId(int queryIndex, String queryId)
public void setTargetId(int targetIndex, String targetId)
public void set(int target, int query, double dissimilarity)
public int getImageSize()
public int getCellCount()
public boolean write(OutputStream outputStream) throws IOException
outputStream
- See ImageIO.write(java.awt.image.RenderedImage, java.lang.String, java.io.OutputStream)
ImageIO.write(java.awt.image.RenderedImage, java.lang.String, java.io.OutputStream)
IOException
- propagated from See ImageIO.write(java.awt.image.RenderedImage, java.lang.String, java.io.OutputStream)