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 Object
implements ScatterPlotView<Component,Color,Font,Row,Column>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.macrofocus.high_d.scatterplot.ScatterPlotView
ScatterPlotView.PropertyType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.macrofocus.crossplatform.CPCanvas<Component>
protected ScatterPlotModel<Color,
Row, Column> protected final MutableProperties<ScatterPlotView.PropertyType>
protected RangesScreenTransformCoordinator
protected final com.macrofocus.transform.twod.MutableTwoDScreenTransform
protected final CPTimer
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractScatterPlotView
(com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
getClosestRow
(int x, int y) MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>>
Returns the color theme to use.protected abstract int
getModel()
Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView.MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering>
getRows
(com.macrofocus.geom.Rectangle2D rect) Returns the nodes overlapping the specified rectangle.com.macrofocus.rubberband.RubberBand
com.macrofocus.transform.twod.MutableTwoDScreenTransform
MutableProperty<com.macrofocus.igraphics.CPColor<Color>>
protected abstract int
getWidth()
boolean
protected void
protected abstract void
refresh()
protected abstract void
repaint()
void
void
protected abstract void
void
setAntialiasing
(MutableProperty<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<Boolean> showFiltered) protected abstract void
protected void
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 Details
-
model
-
properties
-
canvas
-
timer
-
screenTransform
protected final com.macrofocus.transform.twod.MutableTwoDScreenTransform screenTransform -
rangesScreenTransformCoordinator
-
xGuide
-
yGuide
-
-
Constructor Details
-
AbstractScatterPlotView
public AbstractScatterPlotView(com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory)
-
-
Method Details
-
getXGuide
-
getYGuide
-
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
Sets the data model and registers with it for listener notifications from the new data model. -
getModel
Returns the ScatterPlotModel that provides the data displayed by this ScatterPlotView. -
getXRangeModel
- Specified by:
getXRangeModel
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
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
- Specified by:
getClosestRow
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getRows
Description copied from interface:ScatterPlotView
Returns the nodes overlapping the specified rectangle. -
getShowFiltered
- Specified by:
getShowFiltered
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getShowGrid
- Specified by:
getShowGrid
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getAntialiasing
- Specified by:
getAntialiasing
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getRendering
- Specified by:
getRendering
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getGridThickness
- Specified by:
getGridThickness
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getShowColor
- Specified by:
getShowColor
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getRegression
- Specified by:
getRegression
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getMarkerSize
- Specified by:
getMarkerSize
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getMarkerExtraSizeHighlight
- Specified by:
getMarkerExtraSizeHighlight
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
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
- Specified by:
getDisplayLabels
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
getSizeProportion
- Specified by:
getSizeProportion
in interfaceScatterPlotView<Component,
Color, Font, Row, Column>
-
setShowFiltered
- 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
- 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>
-