public class FeatureLayerManipulationPreview extends BasicManipulationPreview
Constructor and Description |
---|
FeatureLayerManipulationPreview(NFEModel model, java.util.Collection<NFEFeatureElement> featElems, java.util.Map<java.lang.String,Manipulation<NFENetworkElement>> manNetElemsMap, double tolerance)
Allocates a new feature layer manipulation preview
|
Modifier and Type | Method and Description |
---|---|
void |
preview(java.awt.Graphics2D graphics, java.awt.geom.AffineTransform transform)
Renders the preview
|
addPreview
public FeatureLayerManipulationPreview(NFEModel model, java.util.Collection<NFEFeatureElement> featElems, java.util.Map<java.lang.String,Manipulation<NFENetworkElement>> manNetElemsMap, double tolerance)
model
- the current NFE modelfeatElems
- the feature elements that were affected by the manipulation of its underlying network elementsmanNetElemsMap
- the manipulations performed over the underlying network elementstolerance
- the tolerance used in model's coordinate systempublic void preview(java.awt.Graphics2D graphics, java.awt.geom.AffineTransform transform)
ManipulationPreview
preview
in interface ManipulationPreview
preview
in class BasicManipulationPreview
graphics
- a graphics objecttransform
- the transform used