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 class
ScatterplotFacet.Dimension
static class
ScatterplotFacet.Rotation
static class
ScatterplotFacet.ScatterplotFacetConfig
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_COLOR
static String
COLOR
protected int
columnIndex_x
protected int
columnIndex_y
protected ColumnModel
columnModel
static String
DIM_X
static String
DIM_Y
static String
DOT
static String
ERROR_X
static String
ERROR_Y
protected String
errorMessage_x
protected String
errorMessage_y
protected Evaluable
eval_x
protected Evaluable
eval_y
static String
FROM_X
static String
FROM_Y
static int
LIN
static int
LOG
static String
MAX_X
static String
MAX_Y
static String
MIN_X
static String
MIN_Y
static String
NAME
static int
NO_ROTATION
protected Map<String,OverlayModel>
overlayModels
protected long
projectId
static int
ROTATE_CCW
static int
ROTATE_CW
static String
ROTATION
static String
SIZE
static String
TO_X
static String
TO_Y
static String
X_COLUMN_NAME
static String
X_EXPRESSION
static String
Y_COLUMN_NAME
static String
Y_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 AffineTransform
createRotationMatrix(ScatterplotFacet.Rotation rotation, double l)
FacetAggregator<ScatterplotFacetState>
getAggregator()
An aggregator used to populate the facet state for this facet.FacetConfig
getConfig()
Returns the configuration of the facet.ScatterplotFacetResult
getFacetResult(FacetState state)
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).FacetState
getInitialFacetState()
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.Double
translateCoordinates(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:Facet
Returns the configuration of the facet.
-
getInitialFacetState
public FacetState getInitialFacetState()
Description copied from interface:Facet
An initial facet state for this facet, which can then be used to scan the table and ingest statistics about rows or records.- Specified by:
getInitialFacetState
in interfaceFacet
-
getAggregator
public FacetAggregator<ScatterplotFacetState> getAggregator()
Description copied from interface:Facet
An aggregator used to populate the facet state for this facet. It should accept the initial state returned byFacet.getInitialFacetState()
.- Specified by:
getAggregator
in interfaceFacet
-
getFacetResult
public ScatterplotFacetResult getFacetResult(FacetState state)
Description copied from interface:Facet
Returns all the information necessary to render the facet in the UI (aggregation statistics and configuration combined).- Specified by:
getFacetResult
in interfaceFacet
-
-