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 DistributionsComponent
getDistributionsComponent()
MutableProperty<com.macrofocus.high_d.interaction.InteractionMode>
getInteractionMode()
DistributionsModel
getModel()
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.RubberBand
getRubberBand()
Property<java.lang.Boolean>
getShowFiltered()
MutableProperty<java.lang.Boolean>
getShowTiming()
Returns whether information about refresh rate should be displayed.boolean
isSelectionMode()
protected abstract void
refresh()
protected void
removeBinnedDimension(Column column)
void
setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
void
setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Sets the color theme to use.void
setInteractionMode(MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> interactionMode)
void
setModel(DistributionsModel<Color,Row,Column,Value,Bin> model)
Sets the data model and registers with it for listener notifications from the new data model.void
setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
void
setSelectionMode(boolean value)
void
setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
void
setShowTiming(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:
isSelectionMode
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setModel
public void setModel(DistributionsModel<Color,Row,Column,Value,Bin> model)
Description copied from interface:DistributionsView
Sets the data model and registers with it for listener notifications from the new data model.- Specified by:
setModel
in 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:
setSelectionMode
in 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:
getProbing
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getModel
public DistributionsModel getModel()
Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.- Specified by:
getModel
in 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:
getOrientation
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getAntialiasing
public MutableProperty<java.lang.Boolean> getAntialiasing()
- Specified by:
getAntialiasing
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getShowFiltered
public Property<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFiltered
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
getShowTiming
public MutableProperty<java.lang.Boolean> getShowTiming()
Description copied from interface:DistributionsView
Returns whether information about refresh rate should be displayed.- Specified by:
getShowTiming
in 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:DistributionsView
Returns the color theme to use.- Specified by:
getColorTheme
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
- Returns:
- the color theme
-
getInteractionMode
public MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> getInteractionMode()
- Specified by:
getInteractionMode
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setInteractionMode
public void setInteractionMode(MutableProperty<com.macrofocus.high_d.interaction.InteractionMode> interactionMode)
- Specified by:
setInteractionMode
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setColorTheme
public void setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Description copied from interface:DistributionsView
Sets the color theme to use.- Specified by:
setColorTheme
in 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:
setShowFiltered
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setAntialiasing
public void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
- Specified by:
setAntialiasing
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setShowTiming
public void setShowTiming(MutableProperty<java.lang.Boolean> showTiming)
Description copied from interface:DistributionsView
Sets whether information about refresh rate should be displayed.- Specified by:
setShowTiming
in 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:
getRendering
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
setRendering
public void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
- Specified by:
setRendering
in 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:
getDistributionDimension
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
removeBinnedDimension
protected void removeBinnedDimension(Column column)
-
getRubberBand
public com.macrofocus.rubberband.RubberBand getRubberBand()
- Specified by:
getRubberBand
in interfaceDistributionsView<Component,Color,Row,Column,Value,Bin>
-
-