Interface ParallelCoordinatesView<Component,Color,Row,Column>
-
- All Superinterfaces:
com.macrofocus.crossplatform.CPComponent<Component>,com.macrofocus.crossplatform.CPInteractiveComponent<Component>
- All Known Implementing Classes:
AbstractParallelCoordinatesView,SwingParallelCoordinatesView
public interface ParallelCoordinatesView<Component,Color,Row,Column> extends com.macrofocus.crossplatform.CPInteractiveComponent<Component>Main class for the view part of ParallelCoordinates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceParallelCoordinatesView.DragListenerstatic interfaceParallelCoordinatesView.HeaderListenerstatic classParallelCoordinatesView.PropertyType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDragListener(ParallelCoordinatesView.DragListener listener)voidaddHeaderListener(ParallelCoordinatesView.HeaderListener listener)voiddragAxisTo(com.macrofocus.high_d.axis.AxisView view, int shift)Drag an axis with the specified offset.MutableProperty<com.macrofocus.high_d.axis.Alignment>getAlignment()MutableProperty<java.lang.Boolean>getAllowScrolling()MutableProperty<java.lang.Boolean>getAntialiasing()com.macrofocus.high_d.axis.group.AxisGroupViewgetAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)MutableProperty<java.lang.Boolean>getAxisLine()com.macrofocus.high_d.axis.AxisViewgetAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)Gets the view associated with a given axis.intgetAxisX(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup, com.macrofocus.high_d.axis.AxisModel axisModel)Gets the position along the X axis of an axis.RowgetClosestRow(int x, int y)MutableProperty<java.lang.Float>getColoredTransparency()MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>>getColorTheme()Returns the color theme to use.MutableProperty<java.lang.Integer>getColumnSize()MutableProperty<Geometry>getGeometry()intgetHeaderAxisGroupMaximumHeight()intgetHeaderAxisMaximumHeight()intgetHeight()ParallelCoordinatesModel<Color,Row,Column>getModel()Returns the ParallelCoordinatesModel that provides the data displayed by this ParallelCoordinatesView.ComponentgetNativeComponent()ParallelCoordinatesLayoutgetParallelCoordinatesLayout()Returns the class responsible for laying out the components of the parallel coordinates plot.MutableProperty<java.lang.Boolean>getProbeFiltered()MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering>getRendering()java.util.Collection<Row>getRows(com.macrofocus.geom.Rectangle2D rect)Returns the nodes overlapping the specified rectangle.com.macrofocus.rubberband.RubberBandgetRubberBand()MutableProperty<java.lang.Boolean>getShowFiltered()MutableProperty<java.lang.Boolean>getShowProbedValues()MutableProperty<java.lang.Boolean>getShowVisible()MutableProperty<java.lang.Boolean>getTooltip()intgetWidth()voidheaderSelected(com.macrofocus.high_d.axis.AxisView view, int clickCount)booleanisSelectionMode()booleanisShowTiming()Returns whether information about refresh rate should be displayed.voidremoveDragListener(ParallelCoordinatesView.DragListener listener)voidremoveHeaderListener(ParallelCoordinatesView.HeaderListener listener)voidsetAllowScrolling(MutableProperty<java.lang.Boolean> allowScrolling)voidsetAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)voidsetColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)Sets the color theme to use.voidsetGeometry(MutableProperty<Geometry> geometry)voidsetLicenseModel(LicenseModel licenseModel)voidsetModel(ParallelCoordinatesModel 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<java.lang.Boolean> showFiltered)voidsetShowTiming(boolean showTiming)Sets whether information about refresh rate should be displayed.voidsetTooltip(MutableProperty<java.lang.Boolean> tooltip)voidstartDragging(com.macrofocus.high_d.axis.AxisView view)Start dragging an axis.voidstopDragging(com.macrofocus.high_d.axis.AxisView view)Stop dragging an axis.voidwaitUntilReady()Wait until the parallel coordinates plot has been fully rendered.
-
-
-
Method Detail
-
getColumnSize
MutableProperty<java.lang.Integer> getColumnSize()
-
getNativeComponent
Component getNativeComponent()
- Specified by:
getNativeComponentin interfacecom.macrofocus.crossplatform.CPComponent<Component>
-
getClosestRow
Row getClosestRow(int x, int y)
-
getRows
java.util.Collection<Row> getRows(com.macrofocus.geom.Rectangle2D rect)
Returns the nodes overlapping the specified rectangle.- Parameters:
rect- the rectangle in screen coordinates- Returns:
- the list of nodes
-
getRubberBand
com.macrofocus.rubberband.RubberBand getRubberBand()
-
isSelectionMode
boolean isSelectionMode()
-
setSelectionMode
void setSelectionMode(boolean value)
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getAlignment
MutableProperty<com.macrofocus.high_d.axis.Alignment> getAlignment()
-
getShowVisible
MutableProperty<java.lang.Boolean> getShowVisible()
-
getColoredTransparency
MutableProperty<java.lang.Float> getColoredTransparency()
-
getProbeFiltered
MutableProperty<java.lang.Boolean> getProbeFiltered()
-
getAllowScrolling
MutableProperty<java.lang.Boolean> getAllowScrolling()
-
isShowTiming
boolean isShowTiming()
Returns whether information about refresh rate should be displayed.- Returns:
- true to display refresh rate information, false otherwise
-
setShowTiming
void setShowTiming(boolean showTiming)
Sets whether information about refresh rate should be displayed.- Parameters:
showTiming- true to display refresh rate information, false otherwise
-
getAxisGroupView
com.macrofocus.high_d.axis.group.AxisGroupView getAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)
-
getAxisView
com.macrofocus.high_d.axis.AxisView getAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)
Gets the view associated with a given axis.- Parameters:
axisModel- the axis- Returns:
-
setLicenseModel
void setLicenseModel(LicenseModel licenseModel)
-
setModel
void setModel(ParallelCoordinatesModel model)
Sets the data model and registers with it for listener notifications from the new data model.- Parameters:
model- the new data model- See Also:
getModel()
-
getModel
ParallelCoordinatesModel<Color,Row,Column> getModel()
Returns the ParallelCoordinatesModel that provides the data displayed by this ParallelCoordinatesView.- Returns:
- the ParallelCoordinatesModel that provides the data displayed by this ParallelCoordinatesView
- See Also:
setModel(com.macrofocus.high_d.parallelcoordinates.ParallelCoordinatesModel)
-
startDragging
void startDragging(com.macrofocus.high_d.axis.AxisView view)
Start dragging an axis.- Parameters:
view- the axis to drag
-
stopDragging
void stopDragging(com.macrofocus.high_d.axis.AxisView view)
Stop dragging an axis. This will usually trigger a layout of the parallel coordinates plot.- Parameters:
view- the axis that has been dragged
-
dragAxisTo
void dragAxisTo(com.macrofocus.high_d.axis.AxisView view, int shift)Drag an axis with the specified offset.- Parameters:
view- the axisshift- the offset
-
headerSelected
void headerSelected(com.macrofocus.high_d.axis.AxisView view, int clickCount)
-
getColorTheme
MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> getColorTheme()
Returns the color theme to use.- Returns:
- the color theme
-
setColorTheme
void setColorTheme(MutableProperty<com.macrofocus.igraphics.colortheme.ColorTheme<Color>> colorTheme)
Sets the color theme to use.- Parameters:
colorTheme- the color theme to use
-
waitUntilReady
void waitUntilReady()
Wait until the parallel coordinates plot has been fully rendered.
-
getHeaderAxisGroupMaximumHeight
int getHeaderAxisGroupMaximumHeight()
-
getHeaderAxisMaximumHeight
int getHeaderAxisMaximumHeight()
-
getParallelCoordinatesLayout
ParallelCoordinatesLayout getParallelCoordinatesLayout()
Returns the class responsible for laying out the components of the parallel coordinates plot.- Returns:
- the layout engine
-
getAxisX
int getAxisX(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup, com.macrofocus.high_d.axis.AxisModel axisModel)Gets the position along the X axis of an axis.- Parameters:
axisModel- the axis- Returns:
- its position along the X axis
-
getShowFiltered
MutableProperty<java.lang.Boolean> getShowFiltered()
-
setShowFiltered
void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
-
getRendering
MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> getRendering()
-
setRendering
void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
-
getAntialiasing
MutableProperty<java.lang.Boolean> getAntialiasing()
-
setAntialiasing
void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
-
getAxisLine
MutableProperty<java.lang.Boolean> getAxisLine()
-
getGeometry
MutableProperty<Geometry> getGeometry()
-
setGeometry
void setGeometry(MutableProperty<Geometry> geometry)
-
getTooltip
MutableProperty<java.lang.Boolean> getTooltip()
-
setTooltip
void setTooltip(MutableProperty<java.lang.Boolean> tooltip)
-
getShowProbedValues
MutableProperty<java.lang.Boolean> getShowProbedValues()
-
setAllowScrolling
void setAllowScrolling(MutableProperty<java.lang.Boolean> allowScrolling)
-
addDragListener
void addDragListener(ParallelCoordinatesView.DragListener listener)
-
removeDragListener
void removeDragListener(ParallelCoordinatesView.DragListener listener)
-
addHeaderListener
void addHeaderListener(ParallelCoordinatesView.HeaderListener listener)
-
removeHeaderListener
void removeHeaderListener(ParallelCoordinatesView.HeaderListener listener)
-
-