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 class
AbstractScatterPlotView.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>
canvas
protected ScatterPlotModel<Color,Row,Column>
model
protected MutableProperties<ScatterPlotView.PropertyType>
properties
protected RangesScreenTransformCoordinator
rangesScreenTransformCoordinator
protected com.macrofocus.transform.twod.MutableTwoDScreenTransform
screenTransform
protected CPTimer
timer
protected com.macrofocus.plot.guide.Guide<Component,Color,Font>
xGuide
protected 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 void
addKeyListener(com.macrofocus.crossplatform.CPCanvas.KeyListener listener)
void
addMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
void
addMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
void
addMouseWheelListener(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l)
void
createOverplots()
MutableProperty<java.lang.Boolean>
getAntialiasing()
Row
getClosestRow(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 int
getHeight()
MutableProperty<java.lang.Double>
getMarkerSize()
ScatterPlotModel
getModel()
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.igraphics.Rectangle2D rect)
Returns the nodes overlapping the specified rectangle.com.macrofocus.rubberband.RubberBand
getRubberBand()
com.macrofocus.transform.twod.MutableTwoDScreenTransform
getScreenTransform()
MutableProperty<com.macrofocus.igraphics.CPColor<Color>>
getShowColor()
MutableProperty<java.lang.Boolean>
getShowFiltered()
MutableProperty<java.lang.Boolean>
getShowGrid()
protected abstract int
getWidth()
com.macrofocus.plot.guide.Guide<Component,Color,Font>
getXGuide()
MutableBoundedInterval
getXRangeModel()
com.macrofocus.plot.guide.Guide<Component,Color,Font>
getYGuide()
MutableBoundedInterval
getYRangeModel()
boolean
isSelectionMode()
protected void
populateOverplots()
protected abstract void
refresh()
protected abstract void
repaint()
void
resetXAxis()
void
resetYAxis()
protected abstract void
scheduleUpdate()
void
setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
void
setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Sets the color theme to use.void
setModel(ScatterPlotModel 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)
protected abstract void
updateAxisType()
protected void
updateIntervals()
void
zoom(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:
addMouseListener
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addMouseMotionListener
public void addMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
- Specified by:
addMouseMotionListener
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addMouseWheelListener
public void addMouseWheelListener(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l)
- Specified by:
addMouseWheelListener
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
addKeyListener
public void addKeyListener(com.macrofocus.crossplatform.CPCanvas.KeyListener listener)
- Specified by:
addKeyListener
in 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:
setModel
in 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:
getModel
in 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:
getXRangeModel
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getYRangeModel
public MutableBoundedInterval getYRangeModel()
- Specified by:
getYRangeModel
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getScreenTransform
public com.macrofocus.transform.twod.MutableTwoDScreenTransform getScreenTransform()
- Specified by:
getScreenTransform
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRubberBand
public com.macrofocus.rubberband.RubberBand getRubberBand()
- Specified by:
getRubberBand
in 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:
getClosestRow
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRows
public java.util.List<Row> getRows(com.macrofocus.igraphics.Rectangle2D rect)
Description copied from interface:ScatterPlotView
Returns the nodes overlapping the specified rectangle.
-
getShowFiltered
public MutableProperty<java.lang.Boolean> getShowFiltered()
- Specified by:
getShowFiltered
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getShowGrid
public MutableProperty<java.lang.Boolean> getShowGrid()
- Specified by:
getShowGrid
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getAntialiasing
public MutableProperty<java.lang.Boolean> getAntialiasing()
- Specified by:
getAntialiasing
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRendering
public MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> getRendering()
- Specified by:
getRendering
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getGridThickness
public MutableProperty<java.lang.Float> getGridThickness()
- Specified by:
getGridThickness
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getShowColor
public MutableProperty<com.macrofocus.igraphics.CPColor<Color>> getShowColor()
- Specified by:
getShowColor
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getRegression
public MutableProperty<java.lang.Boolean> getRegression()
- Specified by:
getRegression
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getMarkerSize
public MutableProperty<java.lang.Double> getMarkerSize()
- Specified by:
getMarkerSize
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
getColorTheme
public MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> getColorTheme()
Description copied from interface:ScatterPlotView
Returns the color theme to use.- Specified by:
getColorTheme
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
- Returns:
- the color theme
-
getDisplayLabels
public MutableProperty<java.lang.Boolean> getDisplayLabels()
- Specified by:
getDisplayLabels
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
- Specified by:
setShowFiltered
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setRendering
public void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
- Specified by:
setRendering
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setAntialiasing
public void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
- Specified by:
setAntialiasing
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setColorTheme
public void setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Description copied from interface:ScatterPlotView
Sets the color theme to use.- Specified by:
setColorTheme
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
- Parameters:
colorTheme
- the color theme to use
-
isSelectionMode
public boolean isSelectionMode()
- Specified by:
isSelectionMode
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
setSelectionMode
public void setSelectionMode(boolean value)
- Specified by:
setSelectionMode
in interfaceScatterPlotView<Component,Color,Font,Row,Column>
-
-