Class AbstractScatterPlotView<Component,Color,Font,Row,Column>
- java.lang.Object
-
- com.macrofocus.high_d.scatterplot.AbstractScatterPlotView<Component,Color,Font,Row,Column>
-
- All Implemented Interfaces:
ScatterPlotView<Component,Color,Font,Row,Column>
- Direct Known Subclasses:
SwingScatterPlotView
public abstract class AbstractScatterPlotView<Component,Color,Font,Row,Column> extends java.lang.Object implements ScatterPlotView<Component,Color,Font,Row,Column>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractScatterPlotView.AbstractVisualLayerIDrawing-
Nested classes/interfaces inherited from interface com.macrofocus.high_d.scatterplot.ScatterPlotView
ScatterPlotView.PropertyType
-
-
Field Summary
Fields Modifier and Type Field Description protected com.macrofocus.crossplatform.CPCanvas<Component>canvasprotected ScatterPlotModel<Color,Row,Column>modelprotected MutableProperties<ScatterPlotView.PropertyType>propertiesprotected RangesScreenTransformCoordinatorrangesScreenTransformCoordinatorprotected com.macrofocus.transform.twod.MutableTwoDScreenTransformscreenTransformprotected CPTimertimerprotected com.macrofocus.plot.guide.Guide<Component,Color,Font>xGuideprotected com.macrofocus.plot.guide.Guide<Component,Color,Font>yGuide
-
Constructor Summary
Constructors Constructor Description AbstractScatterPlotView(com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddKeyListener(com.macrofocus.crossplatform.CPCanvas.KeyListener listener)voidaddMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)voidaddMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)voidaddMouseWheelListener(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l)voidcreateOverplots()MutableProperty<java.lang.Boolean>getAntialiasing()RowgetClosestRow(int x, int y)MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>>getColorTheme()Returns the color theme to use.MutableProperty<java.lang.Boolean>getDisplayLabels()MutableProperty<java.lang.Float>getGridThickness()protected abstract intgetHeight()MutableProperty<java.lang.Double>getMarkerSize()ScatterPlotModelgetModel()Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.MutableProperty<java.lang.Boolean>getRegression()MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering>getRendering()java.util.List<Row>getRows(com.macrofocus.geom.Rectangle2D rect)Returns the nodes overlapping the specified rectangle.com.macrofocus.rubberband.RubberBandgetRubberBand()com.macrofocus.transform.twod.MutableTwoDScreenTransformgetScreenTransform()MutableProperty<com.macrofocus.igraphics.CPColor<Color>>getShowColor()MutableProperty<java.lang.Boolean>getShowFiltered()MutableProperty<java.lang.Boolean>getShowGrid()MutableProperty<SizeProportion>getSizeProportion()protected abstract intgetWidth()com.macrofocus.plot.guide.Guide<Component,Color,Font>getXGuide()MutableBoundedIntervalgetXRangeModel()com.macrofocus.plot.guide.Guide<Component,Color,Font>getYGuide()MutableBoundedIntervalgetYRangeModel()booleanisSelectionMode()protected voidpopulateOverplots()protected abstract voidrefresh()protected abstract voidrepaint()voidresetXAxis()voidresetYAxis()protected abstract voidscheduleUpdate()voidsetAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)voidsetColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)Sets the color theme to use.voidsetModel(ScatterPlotModel 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)protected abstract voidupdateAxisType()protected voidupdateIntervals()voidzoom(boolean animate, double x1, double x2, double y1, double y2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.high_d.scatterplot.ScatterPlotView
getNativeComponent, getProperties, isMaintainAspectRatio, isShowTiming, setLicenseModel, setMaintainAspectRatio, setShowTiming
-
-
-
-
Field Detail
-
model
protected ScatterPlotModel<Color,Row,Column> model
-
properties
protected final MutableProperties<ScatterPlotView.PropertyType> properties
-
canvas
protected com.macrofocus.crossplatform.CPCanvas<Component> canvas
-
timer
protected final CPTimer timer
-
screenTransform
protected final com.macrofocus.transform.twod.MutableTwoDScreenTransform screenTransform
-
rangesScreenTransformCoordinator
protected RangesScreenTransformCoordinator rangesScreenTransformCoordinator
-
-
Constructor Detail
-
AbstractScatterPlotView
public AbstractScatterPlotView(com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory)
-
-
Method Detail
-
getWidth
protected abstract int getWidth()
-
getHeight
protected abstract int getHeight()
-
refresh
protected abstract void refresh()
-
repaint
protected abstract void repaint()
-
scheduleUpdate
protected abstract void scheduleUpdate()
-
addMouseListener
public void addMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
- Specified by:
addMouseListenerin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addMouseMotionListener
public void addMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
- Specified by:
addMouseMotionListenerin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addMouseWheelListener
public void addMouseWheelListener(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l)
- Specified by:
addMouseWheelListenerin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addKeyListener
public void addKeyListener(com.macrofocus.crossplatform.CPCanvas.KeyListener listener)
- Specified by:
addKeyListenerin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
createOverplots
public void createOverplots()
-
populateOverplots
protected void populateOverplots()
-
setModel
public void setModel(ScatterPlotModel model)
Sets the data model and registers with it for listener notifications from the new data model.- Specified by:
setModelin interfaceScatterPlotView<Component,Color,Font,Row,Column>- Parameters:
model- the new data model- See Also:
ScatterPlotView.getModel()
-
getModel
public ScatterPlotModel getModel()
Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.- Specified by:
getModelin interfaceScatterPlotView<Component,Color,Font,Row,Column>- Returns:
- the ScatterPlotModel that provides the data displayed by this ScatterPlotView
- See Also:
ScatterPlotView.setModel(com.macrofocus.high_d.scatterplot.ScatterPlotModel)
-
getXRangeModel
public MutableBoundedInterval getXRangeModel()
- Specified by:
getXRangeModelin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getYRangeModel
public MutableBoundedInterval getYRangeModel()
- Specified by:
getYRangeModelin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getScreenTransform
public com.macrofocus.transform.twod.MutableTwoDScreenTransform getScreenTransform()
- Specified by:
getScreenTransformin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRubberBand
public com.macrofocus.rubberband.RubberBand getRubberBand()
- Specified by:
getRubberBandin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
resetXAxis
public void resetXAxis()
-
resetYAxis
public void resetYAxis()
-
zoom
public void zoom(boolean animate, double x1, double x2, double y1, double y2)
-
updateIntervals
protected void updateIntervals()
-
updateAxisType
protected abstract void updateAxisType()
-
getClosestRow
public Row getClosestRow(int x, int y)
- Specified by:
getClosestRowin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRows
public java.util.List<Row> getRows(com.macrofocus.geom.Rectangle2D rect)
Description copied from interface:ScatterPlotViewReturns the nodes overlapping the specified rectangle.
-
getShowFiltered
public MutableProperty<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFilteredin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getShowGrid
public MutableProperty<java.lang.Boolean> getShowGrid()
- Specified by:
getShowGridin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getAntialiasing
public MutableProperty<java.lang.Boolean> getAntialiasing()
- Specified by:
getAntialiasingin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRendering
public MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> getRendering()
- Specified by:
getRenderingin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getGridThickness
public MutableProperty<java.lang.Float> getGridThickness()
- Specified by:
getGridThicknessin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getShowColor
public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getShowColor()
- Specified by:
getShowColorin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRegression
public MutableProperty<java.lang.Boolean> getRegression()
- Specified by:
getRegressionin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getMarkerSize
public MutableProperty<java.lang.Double> getMarkerSize()
- Specified by:
getMarkerSizein interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getColorTheme
public MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> getColorTheme()
Description copied from interface:ScatterPlotViewReturns the color theme to use.- Specified by:
getColorThemein interfaceScatterPlotView<Component,Color,Font,Row,Column>- Returns:
- the color theme
-
getDisplayLabels
public MutableProperty<java.lang.Boolean> getDisplayLabels()
- Specified by:
getDisplayLabelsin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getSizeProportion
public MutableProperty<SizeProportion> getSizeProportion()
- Specified by:
getSizeProportionin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
- Specified by:
setShowFilteredin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setRendering
public void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
- Specified by:
setRenderingin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setAntialiasing
public void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
- Specified by:
setAntialiasingin interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setColorTheme
public void setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Description copied from interface:ScatterPlotViewSets the color theme to use.- Specified by:
setColorThemein interfaceScatterPlotView<Component,Color,Font,Row,Column>- Parameters:
colorTheme- the color theme to use
-
isSelectionMode
public boolean isSelectionMode()
- Specified by:
isSelectionModein interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setSelectionMode
public void setSelectionMode(boolean value)
- Specified by:
setSelectionModein interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
-