Class AbstractDistributionsView<Component,Color,Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.high_d.distributions.AbstractDistributionsView<Component,Color,Row,Column,Value,Bin>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<Component>,com.macrofocus.crossplatform.CPInteractiveComponent<Component>,DistributionsView<Component,Color,Row,Column,Value,Bin>
- Direct Known Subclasses:
SwingDistributionsView
public abstract class AbstractDistributionsView<Component,Color,Row,Column,Value,Bin> extends java.lang.Object implements DistributionsView<Component,Color,Row,Column,Value,Bin>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.high_d.distributions.DistributionsView
DistributionsView.Orientation, DistributionsView.PropertyType
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableProperties<DistributionsView.PropertyType>properties
-
Constructor Summary
Constructors Constructor Description AbstractDistributionsView(com.macrofocus.igraphics.CPColorFactory<Color> factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MutableProperty<java.lang.Boolean>getAntialiasing()MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>>getColorTheme()Returns the color theme to use.com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin>getDistributionDimension(com.macrofocus.high_d.axis.AxisModel<Row,Column> axisModel)protected abstract DistributionsComponentgetDistributionsComponent()MutableProperty<com.macrofocus.high_d.interaction.InteractionMode>getInteractionMode()DistributionsModelgetModel()Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.Property<DistributionsView.Orientation>getOrientation()MutableSingleSelection<java.util.AbstractMap.SimpleImmutableEntry<com.macrofocus.molap.subset.SingleBinningDimension<Row,Bin>,Bin>>getProbing()MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering>getRendering()com.macrofocus.rubberband.RubberBandgetRubberBand()Property<java.lang.Boolean>getShowFiltered()MutableProperty<java.lang.Boolean>getShowTiming()Returns whether information about refresh rate should be displayed.booleanisSelectionMode()protected abstract voidrefresh()protected voidremoveBinnedDimension(Column column)voidsetAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)voidsetColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)Sets the color theme to use.voidsetInteractionMode(MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> interactionMode)voidsetModel(DistributionsModel<Color,Row,Column,Value,Bin> model)Sets the data model and registers with it for listener notifications from the new data model.voidsetRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)voidsetSelectionMode(boolean value)voidsetShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)voidsetShowTiming(MutableProperty<java.lang.Boolean> showTiming)Sets whether information about refresh rate should be displayed.-
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
getNativeComponent, setStyleClass
-
Methods inherited from interface com.macrofocus.crossplatform.CPInteractiveComponent
addMouseListener, addMouseMotionListener, removeMouseListener, removeMouseMotionListener
-
Methods inherited from interface com.macrofocus.high_d.distributions.DistributionsView
getBins, getClosestBin, getClosestDistribution, getClosestRow, setLicenseModel
-
-
-
-
Field Detail
-
properties
protected final MutableProperties<DistributionsView.PropertyType> properties
-
-
Constructor Detail
-
AbstractDistributionsView
public AbstractDistributionsView(com.macrofocus.igraphics.CPColorFactory<Color> factory)
-
-
Method Detail
-
isSelectionMode
public boolean isSelectionMode()
- Specified by:
isSelectionModein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setModel
public void setModel(DistributionsModel<Color,Row,Column,Value,Bin> model)
Description copied from interface:DistributionsViewSets the data model and registers with it for listener notifications from the new data model.- Specified by:
setModelin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Parameters:
model- the new data model- See Also:
DistributionsView.getModel()
-
setSelectionMode
public void setSelectionMode(boolean value)
- Specified by:
setSelectionModein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getProbing
public MutableSingleSelection<java.util.AbstractMap.SimpleImmutableEntry<com.macrofocus.molap.subset.SingleBinningDimension<Row,Bin>,Bin>> getProbing()
- Specified by:
getProbingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getModel
public DistributionsModel getModel()
Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.- Specified by:
getModelin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Returns:
- the ScatterPlotModel that provides the data displayed by this ScatterPlotView
- See Also:
DistributionsView.setModel(com.macrofocus.high_d.distributions.DistributionsModel)
-
refresh
protected abstract void refresh()
-
getDistributionsComponent
protected abstract DistributionsComponent getDistributionsComponent()
-
getOrientation
public Property<DistributionsView.Orientation> getOrientation()
- Specified by:
getOrientationin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getAntialiasing
public MutableProperty<java.lang.Boolean> getAntialiasing()
- Specified by:
getAntialiasingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getShowFiltered
public Property<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFilteredin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getShowTiming
public MutableProperty<java.lang.Boolean> getShowTiming()
Description copied from interface:DistributionsViewReturns whether information about refresh rate should be displayed.- Specified by:
getShowTimingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Returns:
- true to display refresh rate information, false otherwise
-
getColorTheme
public MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> getColorTheme()
Description copied from interface:DistributionsViewReturns the color theme to use.- Specified by:
getColorThemein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Returns:
- the color theme
-
getInteractionMode
public MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> getInteractionMode()
- Specified by:
getInteractionModein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setInteractionMode
public void setInteractionMode(MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> interactionMode)
- Specified by:
setInteractionModein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setColorTheme
public void setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Description copied from interface:DistributionsViewSets the color theme to use.- Specified by:
setColorThemein interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Parameters:
colorTheme- the color theme to use
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
- Specified by:
setShowFilteredin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setAntialiasing
public void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
- Specified by:
setAntialiasingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setShowTiming
public void setShowTiming(MutableProperty<java.lang.Boolean> showTiming)
Description copied from interface:DistributionsViewSets whether information about refresh rate should be displayed.- Specified by:
setShowTimingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>- Parameters:
showTiming- true to display refresh rate information, false otherwise
-
getRendering
public MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> getRendering()
- Specified by:
getRenderingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setRendering
public void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
- Specified by:
setRenderingin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getDistributionDimension
public com.macrofocus.molap.subset.DistributionDimension<Row,Value,Bin> getDistributionDimension(com.macrofocus.high_d.axis.AxisModel<Row,Column> axisModel)
- Specified by:
getDistributionDimensionin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
removeBinnedDimension
protected void removeBinnedDimension(Column column)
-
getRubberBand
public com.macrofocus.rubberband.RubberBand getRubberBand()
- Specified by:
getRubberBandin interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
-