Class AbstractDistributionsComponent<Component,Color,Row,Column,Value,Bin>
java.lang.Object
com.macrofocus.high_d.distributions.AbstractDistributionsComponent<Component,Color,Row,Column,Value,Bin>
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<Component>
,DistributionsComponent<Component,
Color, Row, Column, Value, Bin>
- Direct Known Subclasses:
SwingDistributionsComponent
public abstract class AbstractDistributionsComponent<Component,Color,Row,Column,Value,Bin>
extends Object
implements DistributionsComponent<Component,Color,Row,Column,Value,Bin>
Created by luc on 12/06/16.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDistributionsComponent
(DistributionsView<? extends Component, Color, Row, Column, Value, Bin> view, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getBins
(com.macrofocus.geom.Rectangle2D rect) getClosestBin
(int x, int y) getClosestDistribution
(int x, int y) getClosestRow
(int x, int y) protected abstract int
protected AbstractDistributionsComponent.State
protected abstract int
getWidth()
protected void
refresh()
protected abstract void
repaint()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.macrofocus.crossplatform.CPComponent
setStyleClass
Methods inherited from interface com.macrofocus.high_d.distributions.DistributionsComponent
getNativeComponent, scheduleUpdate
-
Field Details
-
model
-
view
-
canvas
protected final com.macrofocus.crossplatform.CPCanvas canvas -
timer
-
-
Constructor Details
-
AbstractDistributionsComponent
-
-
Method Details
-
getWidth
protected abstract int getWidth() -
getHeight
protected abstract int getHeight() -
repaint
protected abstract void repaint() -
setModel
-
refresh
protected void refresh() -
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceDistributionsComponent<Component,
Color, Row, Column, Value, Bin>
-
getClosestDistribution
public com.macrofocus.molap.subset.DistributionDimension<Row,Value, getClosestDistributionBin> (int x, int y) - Specified by:
getClosestDistribution
in interfaceDistributionsComponent<Component,
Color, Row, Column, Value, Bin>
-
getClosestBin
- Specified by:
getClosestBin
in interfaceDistributionsComponent<Component,
Color, Row, Column, Value, Bin>
-
getBins
-
getClosestRow
- Specified by:
getClosestRow
in interfaceDistributionsComponent<Component,
Color, Row, Column, Value, Bin>
-
getState
protected AbstractDistributionsComponent.State getState(com.macrofocus.molap.subset.SingleBinningDimension<Row, Bin> dimension, Bin bin) -
createOverplots
public void createOverplots()- Specified by:
createOverplots
in interfaceDistributionsComponent<Component,
Color, Row, Column, Value, Bin>
-