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:
JavaFXParallelCoordinatesComponent
public abstract class AbstractParallelCoordinatesComponent<Component,Color,Row,C>
extends Object
implements ParallelCoordinatesComponent<Component,Color,Row,C>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.macrofocus.crossplatform.CPCanvas
protected final int
protected ParallelCoordinatesModel<Color,
Row, C> protected final CPTimer
protected final ParallelCoordinatesView<Component,
com.macrofocus.igraphics.CPColor, Row, C> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractParallelCoordinatesComponent
(ParallelCoordinatesView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory, int level) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
static double
distance
(double x1, double y1, double x2, double y2) Computes the euclidean distance between (x1,y1) and (x2,y2)getClosestRow
(int x, int y) protected abstract int
getRows
(com.macrofocus.geom.Rectangle2D r) protected com.macrofocus.geom.Shape
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.crossplatform.CPComponent
setStyleClass
Methods inherited from interface com.macrofocus.high_d.parallelcoordinates.ParallelCoordinatesComponent
getNativeComponent, reset, scheduleUpdate, waitUntilReady
-
Field Details
-
model
-
level
protected final int level -
canvas
protected final com.macrofocus.crossplatform.CPCanvas canvas -
view
-
timer
-
-
Constructor Details
-
AbstractParallelCoordinatesComponent
protected AbstractParallelCoordinatesComponent(ParallelCoordinatesView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory, int level)
-
-
Method Details
-
getWidth
protected abstract int getWidth() -
getHeight
protected abstract int getHeight() -
refresh
protected abstract void refresh() -
repaint
protected abstract void repaint() -
setModel
-
createOverplots
public void createOverplots()- Specified by:
createOverplots
in interfaceParallelCoordinatesComponent<Component,
Color, Row, C>
-
getShape
-
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceParallelCoordinatesComponent<Component,
Color, Row, C>
-
getClosestRow
- Specified by:
getClosestRow
in interfaceParallelCoordinatesComponent<Component,
Color, Row, C>
-
getRows
-
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)
-