Class AbstractParallelCoordinatesComponent<Component,Color,Row,C>
- java.lang.Object
-
- com.macrofocus.high_d.parallelcoordinates.AbstractParallelCoordinatesComponent<Component,Color,Row,C>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<Component>,ParallelCoordinatesComponent<Component,Color,Row,C>
- Direct Known Subclasses:
SwingParallelCoordinatesComponent
public abstract class AbstractParallelCoordinatesComponent<Component,Color,Row,C> extends java.lang.Object implements ParallelCoordinatesComponent<Component,Color,Row,C>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractParallelCoordinatesComponent.AbstractVisualLayerIDrawingclassAbstractParallelCoordinatesComponent.Cache
-
Field Summary
Fields Modifier and Type Field Description protected com.macrofocus.crossplatform.CPCanvascanvasprotected intlevelprotected ParallelCoordinatesModel<Color,Row,C>modelprotected CPTimertimerprotected ParallelCoordinatesView<Component,com.macrofocus.igraphics.CPColor,Row,C>view
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractParallelCoordinatesComponent(ParallelCoordinatesView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, int level)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclearCache()voidcreateOverplots()static doubledistance(double x1, double y1, double x2, double y2)Computes the euclidean distance between (x1,y1) and (x2,y2)RowgetClosestRow(int x, int y)protected abstract intgetHeight()java.util.List<Row>getRows(com.macrofocus.geom.Rectangle2D r)protected com.macrofocus.geom.ShapegetShape(int layer, java.lang.Object row, int level)protected abstract intgetWidth()protected abstract voidrefresh()protected abstract voidrepaint()voidsetModel(ParallelCoordinatesModel<Color,Row,C> model)-
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.parallelcoordinates.ParallelCoordinatesComponent
getNativeComponent, reset, scheduleUpdate, waitUntilReady
-
-
-
-
Field Detail
-
model
protected ParallelCoordinatesModel<Color,Row,C> model
-
level
protected final int level
-
canvas
protected final com.macrofocus.crossplatform.CPCanvas canvas
-
view
protected final ParallelCoordinatesView<Component,com.macrofocus.igraphics.CPColor,Row,C> view
-
timer
protected final CPTimer timer
-
-
Constructor Detail
-
AbstractParallelCoordinatesComponent
protected AbstractParallelCoordinatesComponent(ParallelCoordinatesView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?,?,?,Color> factory, int level)
-
-
Method Detail
-
getWidth
protected abstract int getWidth()
-
getHeight
protected abstract int getHeight()
-
refresh
protected abstract void refresh()
-
repaint
protected abstract void repaint()
-
setModel
public void setModel(ParallelCoordinatesModel<Color,Row,C> model)
-
createOverplots
public void createOverplots()
- Specified by:
createOverplotsin interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getShape
protected com.macrofocus.geom.Shape getShape(int layer, java.lang.Object row, int level)
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getClosestRow
public Row getClosestRow(int x, int y)
- Specified by:
getClosestRowin interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getRows
public java.util.List<Row> getRows(com.macrofocus.geom.Rectangle2D r)
-
distance
public static double distance(double x1, double y1, double x2, double y2)Computes the euclidean distance between (x1,y1) and (x2,y2)- Parameters:
x1-y1-x2-y2-- Returns:
- euclidean distance between (x1,y1) and (x2,y2)
-
-