public class MvComposite extends Object
| Constructor and Description |
|---|
MvComposite(IModel model,
ViewOptions view,
int width,
int height,
AffineTransform m2c,
AffineTransform c2m,
int taskIndex)
Construct an instance with the specified rendering elements.
|
MvComposite(MvComposite mvComposite,
ViewOptions view,
boolean preserveTins,
int taskIndex)
Construct a new composite transferring data products from the older
composite so that they may be reused without additional processing.
|
| Modifier and Type | Method and Description |
|---|---|
AffineTransform |
getComposite2ModelTransform()
Get the transform that maps the composite to the model
|
List<IConstraint> |
getConstraintsForRender() |
int |
getHeight()
Get the height of the composite
|
IModel |
getModel()
Get the model associated with composite.
|
AffineTransform |
getModel2CompositeTransform()
Get a transform that maps the model to the composite
|
String |
getModelAndRenderingReport() |
String |
getModelDataStringAtCoordinates(double x,
double y)
Map the specified composite coordinates to the model and get a string
indicating the data at that point.
|
int |
getTaskIndex()
Get the index of the task currently associated with the composite.
|
ViewOptions |
getView()
Get the view options associated with the composite.
|
int |
getWidth()
Get the width of the composite
|
boolean |
isModelReloadRequired(ViewOptions v)
Indicates whether a change in view options would require
reloading the existing model.
|
boolean |
isReady() |
MvQueryResult |
performQuery(double x,
double y)
Maps the specified composite coordinates to the model,
performs a data query, and gets an HTML-formatted string
indicating the data at that point.
|
BufferedImage |
renderLegend(ViewOptions vx,
IModel mx,
int width,
int height,
int margin,
Font font,
boolean frame)
Render a legend for the current model and view.
|
void |
setConstraintsForRender(List<IConstraint> constraintsForRender)
Sets the constraints for rendering.
|
void |
setWireframeTin(IIncrementalTin tin,
int reduction)
Sets the TIN to be used for wireframe rendering.
|
String |
toString() |
public MvComposite(IModel model, ViewOptions view, int width, int height, AffineTransform m2c, AffineTransform c2m, int taskIndex)
model - a valid instance giving a data sourceview - a valid specification giving instructions on how the
data is to be renderedwidth - the width of the panel rendering surfaceheight - the height of the panel rendering surfacem2c - the model to composite transformation; specify a null
for first time initializationc2m - the composite to model transformation; specify a null for
first time initializationtaskIndex - the index of the task used during the initialization
of this instancepublic MvComposite(MvComposite mvComposite, ViewOptions view, boolean preserveTins, int taskIndex)
mvComposite - the older compositeview - a valid set of view parameterspreserveTins - preserve TIN elements from previous compositetaskIndex - the index for the task associated with the compositepublic IModel getModel()
public ViewOptions getView()
public int getTaskIndex()
public int getWidth()
public int getHeight()
public void setWireframeTin(IIncrementalTin tin, int reduction)
tin - a valid TIN.reduction - the reduction factor applied when building the TINpublic AffineTransform getComposite2ModelTransform()
public AffineTransform getModel2CompositeTransform()
public String getModelDataStringAtCoordinates(double x, double y)
x - a coordinate in the composite coordinate systemy - a coordinate in the composite coordinate systempublic MvQueryResult performQuery(double x, double y)
x - a coordinate in the composite coordinate systemy - a coordinate in the composite coordinate systempublic boolean isModelReloadRequired(ViewOptions v)
v - a set of view options for comparisonpublic String getModelAndRenderingReport()
public boolean isReady()
public BufferedImage renderLegend(ViewOptions vx, IModel mx, int width, int height, int margin, Font font, boolean frame)
vx - a valid viewmx - a valid modelwidth - the width of the color barheight - the height of the color barmargin - the margin around the overall legendfont - the font to be used for labeling (if enabled)frame - indicates that a framing rectangle is to be drawn
around the legendpublic void setConstraintsForRender(List<IConstraint> constraintsForRender)
constraintsForRender - a potentially empty list of constraintspublic List<IConstraint> getConstraintsForRender()
Copyright © 2019. All rights reserved.