public class RotationalModel extends ListenerManager implements OpacityInterface, FitInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADD_BLOCK_ANNOTATION |
static java.lang.String |
REFRESH_ANNOTATIONS |
static java.lang.String |
REMOVE_ALL_BLOCK_ANNOTATIONS |
static java.lang.String |
REMOVE_ANNOTATIONS |
static java.lang.String |
REMOVE_BLOCK_ANNOTATION |
| Constructor and Description |
|---|
RotationalModel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockAnnotation(RotationalTextAnnotation annotation)
Add a selection annotation to the plot.
|
void |
addFitRectangleSerie(XYSeriesFitBorder series)
Add a selection/rectangle fit series to the plot.
|
void |
addFitSeries(java.util.List<XYSeriesFitArea> fitSeries)
Add a
List of XYSeriesFitArea to the plot. |
void |
buildXYSeries(RotationalDiagramResult newResult)
Create and add the series for the rotational diagram result.
|
void |
cleanCurrentResult()
Reset the rotational.
|
void |
computeSelection()
Compute the global selection of the fit for the visible points.
|
void |
constructDataInfoModel(RotationalDiagramResult newResult)
Construct the infoModel with the data.
|
void |
createResultAndResultDiff(int tag,
int compNum,
java.lang.String keySerie1,
java.lang.String keySerie2,
java.lang.String realNameS1,
java.lang.String realNameS2,
RotationalTypeCurve rtcS1,
RotationalTypeCurve rtcS2,
java.util.List<PointInformation> result,
java.util.List<PointInformation> resultEupDiff,
java.awt.Color baseColor)
Create and add a result and result diff.
|
java.util.List<RotationalTextAnnotation> |
getBlockAnnotations()
Return all block annotations.
|
java.util.List<RotationalTextAnnotation> |
getBlockAnnotations(int blockNumber)
Return all block annotations with the given number.
|
java.awt.Color |
getColorDataSerie(int tag,
int compNum)
Return the
Color of the Data series with the given parameters. |
RotationalDiagramResult |
getCurrentResult()
Return the result of the Rotational Diagram.
|
org.jfree.chart.renderer.xy.XYDotRenderer |
getDataRenderer()
Return the data renderer.
|
XYRotationalIntervalSeries |
getDataSerie(int tag,
int compNum,
RotationalTypeCurve type)
Return the data serie with the given parameters or null if not found.
|
org.jfree.data.xy.XYIntervalSeriesCollection |
getDataSeries()
Return the data dataset
|
org.jfree.data.xy.XYSeriesCollection |
getDataStepPoint()
Return the DataStepPoint.
|
java.util.List<XYDataStepSeries> |
getDataStepSerie(int tag,
int compNum)
Return the list of
XYDataStepSeries serie with the given parameters. |
org.jfree.chart.renderer.xy.XYErrorRenderer |
getErrorDataRenderer()
Return the error data renderer.
|
org.jfree.data.xy.XYIntervalSeriesCollection |
getErrorDataSeries()
Return the error data series.
|
org.jfree.data.xy.XYSeriesCollection |
getFitDataset()
Return the fit dataset.
|
org.jfree.data.xy.XYSeriesCollection |
getFitRectangleDataset()
Return the FitRectangleDataset.
|
org.jfree.chart.renderer.xy.XYStepRenderer |
getFitRectangleRenderer()
Return the FitRectangleRenderer.
|
org.jfree.chart.renderer.xy.XYItemRenderer |
getFitRenderer()
Return the fit renderer.
|
java.util.List<XYRotationalIntervalSeries> |
getInfoToSave()
Return the informations needed to do an ascii save.
|
java.lang.String |
getNearestLineInfo(double xValue,
double yValue)
Return a String with the information of points at the position x/y.
|
OpacityCorrectionModel |
getOpacityCorrectionModel()
Return the
OpacityCorrectionModel. |
java.util.List<Point> |
getPointList()
Return the list of visible
Point. |
RotationalFitModel |
getRotationalFitModel()
Return the
RotationalFitModel. |
RotationalInfoModel |
getRotationalInfoModel()
Return the
RotationalInfoModel. |
org.jfree.chart.renderer.xy.XYStepRenderer |
getStepRenderer()
Return the step renderer.
|
void |
hideAllFitSeries()
Hide all fit "data" series (not the rectangle of the selection).
|
void |
removeAllFitRectangleSeries()
Removes all fit selections series.
|
void |
removeAllFitSeries()
Removes all fit series.
|
void |
removeBlockAnnotations()
Remove all selections annotations.
|
void |
removeBlockAnnotations(int blockNumber)
Remove the selections annotations with the given block number.
|
void |
removeFitRectangleSerie(XYSeriesFitBorder series)
Removes a specific selection series.
|
void |
removeOpacityCorrection()
Remove all opacity correction series.
|
void |
setFitSelectionVisible(boolean visible)
Change the fit selection visibility.
|
void |
setResult(RotationalDiagramResult newResult)
Clean old result then set the new result.
|
void |
updateInfoModelOpacityCorrection()
Update the InfoModel for the Opacity Correction.
|
addModelListener, clone, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String REFRESH_ANNOTATIONS
public static final java.lang.String REMOVE_ANNOTATIONS
public static final java.lang.String REMOVE_BLOCK_ANNOTATION
public static final java.lang.String REMOVE_ALL_BLOCK_ANNOTATIONS
public static final java.lang.String ADD_BLOCK_ANNOTATION
public org.jfree.chart.renderer.xy.XYStepRenderer getStepRenderer()
public org.jfree.data.xy.XYSeriesCollection getDataStepPoint()
public org.jfree.data.xy.XYSeriesCollection getFitRectangleDataset()
public org.jfree.chart.renderer.xy.XYStepRenderer getFitRectangleRenderer()
public org.jfree.data.xy.XYSeriesCollection getFitDataset()
public org.jfree.chart.renderer.xy.XYItemRenderer getFitRenderer()
public OpacityCorrectionModel getOpacityCorrectionModel()
OpacityCorrectionModel.OpacityCorrectionModel.public RotationalFitModel getRotationalFitModel()
RotationalFitModel.RotationalFitModel.public RotationalInfoModel getRotationalInfoModel()
RotationalInfoModel.RotationalInfoModel.public void cleanCurrentResult()
public void constructDataInfoModel(RotationalDiagramResult newResult)
newResult - The rotational diagram result.public void updateInfoModelOpacityCorrection()
OpacityInterfaceupdateInfoModelOpacityCorrection in interface OpacityInterfacepublic XYRotationalIntervalSeries getDataSerie(int tag, int compNum, RotationalTypeCurve type)
tag - The tag.compNum - The component number.type - The RotationalTypeCurve.public java.util.List<XYDataStepSeries> getDataStepSerie(int tag, int compNum)
XYDataStepSeries serie with the given parameters.tag - The tag.compNum - The component number.public void setResult(RotationalDiagramResult newResult)
newResult - The rotational diagram result.public void removeOpacityCorrection()
OpacityInterfaceremoveOpacityCorrection in interface OpacityInterfacepublic void buildXYSeries(RotationalDiagramResult newResult)
newResult - The result.public void createResultAndResultDiff(int tag,
int compNum,
java.lang.String keySerie1,
java.lang.String keySerie2,
java.lang.String realNameS1,
java.lang.String realNameS2,
RotationalTypeCurve rtcS1,
RotationalTypeCurve rtcS2,
java.util.List<PointInformation> result,
java.util.List<PointInformation> resultEupDiff,
java.awt.Color baseColor)
OpacityInterfacecreateResultAndResultDiff in interface OpacityInterfacetag - The tag.compNum - The component number.keySerie1 - The title of the first series.keySerie2 - The title of the second series.realNameS1 - The full name of the first series.realNameS2 - The full name of the second series.rtcS1 - The RotationalTypeCurve of the first series.rtcS2 - The RotationalTypeCurve of the second series.result - The List of PointInformation for the first series.resultEupDiff - The List of PointInformation for the second series.baseColor - The base color for the series.public java.util.List<Point> getPointList()
FitInterfacePoint.getPointList in interface FitInterfacePoint.public org.jfree.data.xy.XYIntervalSeriesCollection getDataSeries()
getDataSeries in interface FitInterfacepublic org.jfree.data.xy.XYIntervalSeriesCollection getErrorDataSeries()
public org.jfree.chart.renderer.xy.XYDotRenderer getDataRenderer()
public org.jfree.chart.renderer.xy.XYErrorRenderer getErrorDataRenderer()
public RotationalDiagramResult getCurrentResult()
OpacityInterfacegetCurrentResult in interface OpacityInterfacepublic java.awt.Color getColorDataSerie(int tag,
int compNum)
OpacityInterfaceColor of the Data series with the given parameters.getColorDataSerie in interface OpacityInterfacetag - The tag.compNum - The component number.public java.lang.String getNearestLineInfo(double xValue,
double yValue)
xValue - The x position value.yValue - The y position value.public void removeAllFitRectangleSeries()
FitInterfaceremoveAllFitRectangleSeries in interface FitInterfacepublic void removeFitRectangleSerie(XYSeriesFitBorder series)
FitInterfaceremoveFitRectangleSerie in interface FitInterfaceseries - The series to removes.public void addFitRectangleSerie(XYSeriesFitBorder series)
FitInterfaceaddFitRectangleSerie in interface FitInterfaceseries - The series to add.public void removeAllFitSeries()
FitInterfaceremoveAllFitSeries in interface FitInterfacepublic void addFitSeries(java.util.List<XYSeriesFitArea> fitSeries)
FitInterfaceList of XYSeriesFitArea to the plot.addFitSeries in interface FitInterfacefitSeries - The series to add.public void setFitSelectionVisible(boolean visible)
FitInterfacesetFitSelectionVisible in interface FitInterfacevisible - if the fit selection should be visible.public java.util.List<XYRotationalIntervalSeries> getInfoToSave()
public void hideAllFitSeries()
FitInterfacehideAllFitSeries in interface FitInterfacepublic void addBlockAnnotation(RotationalTextAnnotation annotation)
FitInterfaceaddBlockAnnotation in interface FitInterfaceannotation - The annotation to add.public void removeBlockAnnotations(int blockNumber)
FitInterfaceremoveBlockAnnotations in interface FitInterfaceblockNumber - The block number of annotation to remove.public void removeBlockAnnotations()
FitInterfaceremoveBlockAnnotations in interface FitInterfacepublic java.util.List<RotationalTextAnnotation> getBlockAnnotations(int blockNumber)
blockNumber - The number for which we want the annotations.public java.util.List<RotationalTextAnnotation> getBlockAnnotations()
public void computeSelection()
FitInterfacecomputeSelection in interface FitInterface