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 Object
implements ParallelCoordinatesComponent<Component,Color,Row,C>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.macrofocus.crossplatform.CPCanvasprotected final intprotected ParallelCoordinatesModel<Color, Row, C> protected final CPTimerprotected final ParallelCoordinatesView<Component, com.macrofocus.igraphics.CPColor, Row, C> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractParallelCoordinatesComponent(ParallelCoordinatesView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory, int level) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic doubledistance(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 intgetRows(com.macrofocus.geom.Rectangle2D r) protected com.macrofocus.geom.Shapeprotected 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, waitMethods inherited from interface com.macrofocus.crossplatform.CPComponent
setStyleClassMethods 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:
createOverplotsin interfaceParallelCoordinatesComponent<Component,Color, Row, C>
-
getShape
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceParallelCoordinatesComponent<Component,Color, Row, C>
-
getClosestRow
- Specified by:
getClosestRowin 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)
-