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 class
AbstractParallelCoordinatesComponent.AbstractVisualLayerIDrawing
class
AbstractParallelCoordinatesComponent.Cache
-
Field Summary
Fields Modifier and Type Field Description protected com.macrofocus.crossplatform.CPCanvas
canvas
protected int
level
protected ParallelCoordinatesModel<Color,Row,C>
model
protected CPTimer
timer
protected ParallelCoordinatesView<Component,com.macrofocus.igraphics.CPColor,Row,C>
view
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractParallelCoordinatesComponent(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 void
clearCache()
void
createOverplots()
static double
distance(double x1, double y1, double x2, double y2)
Computes the euclidean distance between (x1,y1) and (x2,y2)Row
getClosestRow(int x, int y)
protected abstract int
getHeight()
java.util.List<Row>
getRows(com.macrofocus.igraphics.Rectangle2D r)
protected com.macrofocus.igraphics.Shape
getShape(int layer, java.lang.Object row, int level)
protected abstract int
getWidth()
protected abstract void
refresh()
protected abstract void
repaint()
void
setModel(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:
createOverplots
in interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getShape
protected com.macrofocus.igraphics.Shape getShape(int layer, java.lang.Object row, int level)
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getClosestRow
public Row getClosestRow(int x, int y)
- Specified by:
getClosestRow
in interfaceParallelCoordinatesComponent<Component,Color,Row,C>
-
getRows
public java.util.List<Row> getRows(com.macrofocus.igraphics.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)
-
-