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 RangesScreenTransformCoordinatorprotected final com.macrofocus.transform.twod.MutableTwoDScreenTransformprotected final CPTimer -
Constructor Summary
ConstructorsConstructorDescriptionAbstractScatterPlotView(com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyListener(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) voidgetClosestRow(int x, int y) MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> Returns the color theme to use.protected abstract intgetModel()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.RubberBandcom.macrofocus.transform.twod.MutableTwoDScreenTransformMutableProperty<com.macrofocus.igraphics.CPColor<Color>> protected abstract intgetWidth()booleanprotected voidprotected abstract voidrefresh()protected abstract voidrepaint()voidvoidprotected abstract voidvoidsetAntialiasing(MutableProperty<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<Boolean> showFiltered) protected abstract voidprotected voidvoidzoom(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, waitMethods 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:
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
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:
getXRangeModelin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
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
- Specified by:
getClosestRowin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getRows
Description copied from interface:ScatterPlotViewReturns the nodes overlapping the specified rectangle. -
getShowFiltered
- Specified by:
getShowFilteredin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getShowGrid
- Specified by:
getShowGridin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getAntialiasing
- Specified by:
getAntialiasingin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getRendering
- Specified by:
getRenderingin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getGridThickness
- Specified by:
getGridThicknessin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getShowColor
- Specified by:
getShowColorin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getRegression
- Specified by:
getRegressionin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getMarkerSize
- Specified by:
getMarkerSizein interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getMarkerExtraSizeHighlight
- Specified by:
getMarkerExtraSizeHighlightin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
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
- Specified by:
getDisplayLabelsin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
getSizeProportion
- Specified by:
getSizeProportionin interfaceScatterPlotView<Component,Color, Font, Row, Column>
-
setShowFiltered
- 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
- 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>
-