Package org.openrefine.browsing.facets
Class ScatterplotFacet
- java.lang.Object
-
- org.openrefine.browsing.facets.ScatterplotFacet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScatterplotFacet.Dimensionstatic classScatterplotFacet.Rotationstatic classScatterplotFacet.ScatterplotFacetConfig
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_COLORstatic StringCOLORprotected intcolumnIndex_xprotected intcolumnIndex_yprotected ColumnModelcolumnModelstatic StringDIM_Xstatic StringDIM_Ystatic StringDOTstatic StringERROR_Xstatic StringERROR_Yprotected StringerrorMessage_xprotected StringerrorMessage_yprotected Evaluableeval_xprotected Evaluableeval_ystatic StringFROM_Xstatic StringFROM_Ystatic intLINstatic intLOGstatic StringMAX_Xstatic StringMAX_Ystatic StringMIN_Xstatic StringMIN_Ystatic StringNAMEstatic intNO_ROTATIONprotected Map<String,OverlayModel>overlayModelsprotected longprojectIdstatic intROTATE_CCWstatic intROTATE_CWstatic StringROTATIONstatic StringSIZEstatic StringTO_Xstatic StringTO_Ystatic StringX_COLUMN_NAMEstatic StringX_EXPRESSIONstatic StringY_COLUMN_NAMEstatic StringY_EXPRESSION
-
Constructor Summary
Constructors Constructor Description ScatterplotFacet(ScatterplotFacet.ScatterplotFacetConfig config, int cellIndexX, int cellIndexY, ColumnModel columnModel, Map<String,OverlayModel> overlayModels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AffineTransformcreateRotationMatrix(ScatterplotFacet.Rotation rotation, double l)FacetAggregator<ScatterplotFacetState>getAggregator()An aggregator used to populate the facet state for this facet.FacetConfiggetConfig()Returns the configuration of the facet.ScatterplotFacetResultgetFacetResult(FacetState state)Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).FacetStategetInitialFacetState()An initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.static Point2D.DoubletranslateCoordinates(Point2D.Double p, double minX, double maxX, double minY, double maxY, ScatterplotFacet.Dimension dimX, ScatterplotFacet.Dimension dimY, double l, AffineTransform t)
-
-
-
Field Detail
-
LIN
public static final int LIN
- See Also:
- Constant Field Values
-
LOG
public static final int LOG
- See Also:
- Constant Field Values
-
NO_ROTATION
public static final int NO_ROTATION
- See Also:
- Constant Field Values
-
ROTATE_CW
public static final int ROTATE_CW
- See Also:
- Constant Field Values
-
ROTATE_CCW
public static final int ROTATE_CCW
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
COLOR
public static final String COLOR
- See Also:
- Constant Field Values
-
BASE_COLOR
public static final String BASE_COLOR
- See Also:
- Constant Field Values
-
SIZE
public static final String SIZE
- See Also:
- Constant Field Values
-
ROTATION
public static final String ROTATION
- See Also:
- Constant Field Values
-
DOT
public static final String DOT
- See Also:
- Constant Field Values
-
DIM_X
public static final String DIM_X
- See Also:
- Constant Field Values
-
DIM_Y
public static final String DIM_Y
- See Also:
- Constant Field Values
-
X_COLUMN_NAME
public static final String X_COLUMN_NAME
- See Also:
- Constant Field Values
-
X_EXPRESSION
public static final String X_EXPRESSION
- See Also:
- Constant Field Values
-
MIN_X
public static final String MIN_X
- See Also:
- Constant Field Values
-
MAX_X
public static final String MAX_X
- See Also:
- Constant Field Values
-
TO_X
public static final String TO_X
- See Also:
- Constant Field Values
-
FROM_X
public static final String FROM_X
- See Also:
- Constant Field Values
-
ERROR_X
public static final String ERROR_X
- See Also:
- Constant Field Values
-
Y_COLUMN_NAME
public static final String Y_COLUMN_NAME
- See Also:
- Constant Field Values
-
Y_EXPRESSION
public static final String Y_EXPRESSION
- See Also:
- Constant Field Values
-
MIN_Y
public static final String MIN_Y
- See Also:
- Constant Field Values
-
MAX_Y
public static final String MAX_Y
- See Also:
- Constant Field Values
-
TO_Y
public static final String TO_Y
- See Also:
- Constant Field Values
-
FROM_Y
public static final String FROM_Y
- See Also:
- Constant Field Values
-
ERROR_Y
public static final String ERROR_Y
- See Also:
- Constant Field Values
-
columnIndex_x
protected int columnIndex_x
-
columnIndex_y
protected int columnIndex_y
-
eval_x
protected Evaluable eval_x
-
eval_y
protected Evaluable eval_y
-
errorMessage_x
protected String errorMessage_x
-
errorMessage_y
protected String errorMessage_y
-
columnModel
protected ColumnModel columnModel
-
overlayModels
protected Map<String,OverlayModel> overlayModels
-
projectId
protected long projectId
-
-
Constructor Detail
-
ScatterplotFacet
public ScatterplotFacet(ScatterplotFacet.ScatterplotFacetConfig config, int cellIndexX, int cellIndexY, ColumnModel columnModel, Map<String,OverlayModel> overlayModels)
-
-
Method Detail
-
createRotationMatrix
public static AffineTransform createRotationMatrix(ScatterplotFacet.Rotation rotation, double l)
-
translateCoordinates
public static Point2D.Double translateCoordinates(Point2D.Double p, double minX, double maxX, double minY, double maxY, ScatterplotFacet.Dimension dimX, ScatterplotFacet.Dimension dimY, double l, AffineTransform t)
-
getConfig
public FacetConfig getConfig()
Description copied from interface:FacetReturns the configuration of the facet.
-
getInitialFacetState
public FacetState getInitialFacetState()
Description copied from interface:FacetAn initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.- Specified by:
getInitialFacetStatein interfaceFacet
-
getAggregator
public FacetAggregator<ScatterplotFacetState> getAggregator()
Description copied from interface:FacetAn aggregator used to populate the facet state for this facet. It should accept the initial state returned byFacet.getInitialFacetState().- Specified by:
getAggregatorin interfaceFacet
-
getFacetResult
public ScatterplotFacetResult getFacetResult(FacetState state)
Description copied from interface:FacetReturns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).- Specified by:
getFacetResultin interfaceFacet
-
-