Class SwingParallelCoordinatesView<Row,C>
- java.lang.Object
-
- com.macrofocus.high_d.parallelcoordinates.AbstractParallelCoordinatesView<javax.swing.JComponent,java.awt.Color,Row,C>
-
- com.macrofocus.high_d.parallelcoordinates.swing.SwingParallelCoordinatesView<Row,C>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<javax.swing.JComponent>,com.macrofocus.crossplatform.CPInteractiveComponent<javax.swing.JComponent>,ParallelCoordinatesView<javax.swing.JComponent,java.awt.Color,Row,C>
public class SwingParallelCoordinatesView<Row,C> extends AbstractParallelCoordinatesView<javax.swing.JComponent,java.awt.Color,Row,C>
Provides a view for a ParallelCoordinatesModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.high_d.parallelcoordinates.ParallelCoordinatesView
ParallelCoordinatesView.DragListener, ParallelCoordinatesView.HeaderListener, ParallelCoordinatesView.PropertyType
-
-
Field Summary
-
Fields inherited from class com.macrofocus.high_d.parallelcoordinates.AbstractParallelCoordinatesView
DEFAULT_LAYER, DRAG_LAYER, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER, properties
-
-
Constructor Summary
Constructors Constructor Description SwingParallelCoordinatesView()SwingParallelCoordinatesView(ParallelCoordinatesModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)voidaddMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)protected AxisControllercreateAxisController(javax.swing.JButton label, com.macrofocus.high_d.axis.swing.SwingAxisView axisView)protected com.macrofocus.high_d.axis.group.AxisGroupViewcreateAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)protected com.macrofocus.high_d.axis.AxisHeaderViewcreateAxisHeaderView(com.macrofocus.high_d.axis.AxisModel axisModel)protected java.awt.event.MouseListenercreateAxisMouseListener(javax.swing.JButton label)protected com.macrofocus.high_d.axis.swing.SwingAxisViewcreateAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)protected com.macrofocus.high_d.axis.swing.SwingAxisViewcreateDummyAxisView()com.macrofocus.high_d.axis.AxisView<javax.swing.JComponent>getAndInstallAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)com.macrofocus.high_d.axis.group.AxisGroupViewgetAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)com.macrofocus.high_d.axis.AxisView<javax.swing.JComponent>getAxisView(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)intgetHeaderAxisGroupMaximumHeight()intgetHeaderAxisMaximumHeight()intgetHeight()javax.swing.JLayeredPanegetInteractiveComponent()javax.swing.JButtongetLabel(com.macrofocus.high_d.axis.AxisModel axisModel)javax.swing.JComponentgetMaximumLabel(com.macrofocus.high_d.axis.AxisModel axisModel)javax.swing.JComponentgetMinimumLabel(com.macrofocus.high_d.axis.AxisModel axisModel)ParallelCoordinatesModelgetModel()Returns the ParallelCoordinatesModel that provides the data displayed by this ParallelCoordinatesView.javax.swing.JComponentgetNativeComponent()ParallelCoordinatesLayoutgetParallelCoordinatesLayout()Returns the class responsible for laying out the components of the parallel coordinates plot.SwingAxisComponentsgetParallelPanel(com.macrofocus.high_d.axis.AxisModel axisModel)java.util.Collection<Row>getRows(com.macrofocus.geom.Rectangle2D rect)Returns the nodes overlapping the specified rectangle.intgetWidth()booleanisSelectionMode()booleanisShowTiming()Returns whether information about refresh rate should be displayed.voidremoveAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)voidremoveMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)voidremoveMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)voidrunLayout()voidsetAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)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.voidsetStyleClass(java.lang.String... styleClasses)voidwaitUntilReady()Wait until the parallel coordinates plot has been fully rendered.-
Methods inherited from class com.macrofocus.high_d.parallelcoordinates.AbstractParallelCoordinatesView
addDragListener, addHeaderListener, dragAxisTo, getAlignment, getAllowScrolling, getAntialiasing, getAxisLine, getColoredTransparency, getColorTheme, getColumnSize, getGeometry, getProbeFiltered, getRendering, getRubberBand, getShowFiltered, getShowProbedValues, getShowVisible, getTooltip, headerSelected, removeDragListener, removeHeaderListener, setAllowScrolling, setColorTheme, setTooltip, startDragging, stopDragging
-
-
-
-
Constructor Detail
-
SwingParallelCoordinatesView
public SwingParallelCoordinatesView()
-
SwingParallelCoordinatesView
public SwingParallelCoordinatesView(ParallelCoordinatesModel model)
-
-
Method Detail
-
setStyleClass
public void setStyleClass(java.lang.String... styleClasses)
-
addMouseListener
public void addMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
-
addMouseMotionListener
public void addMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
-
removeMouseListener
public void removeMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
-
removeMouseMotionListener
public void removeMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
-
getNativeComponent
public javax.swing.JComponent getNativeComponent()
-
getInteractiveComponent
public javax.swing.JLayeredPane getInteractiveComponent()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
isShowTiming
public boolean isShowTiming()
Description copied from interface:ParallelCoordinatesViewReturns whether information about refresh rate should be displayed.- Returns:
- true to display refresh rate information, false otherwise
-
setShowTiming
public void setShowTiming(boolean showTiming)
Description copied from interface:ParallelCoordinatesViewSets whether information about refresh rate should be displayed.- Parameters:
showTiming- true to display refresh rate information, false otherwise
-
setLicenseModel
public void setLicenseModel(LicenseModel licenseModel)
-
getParallelCoordinatesLayout
public ParallelCoordinatesLayout getParallelCoordinatesLayout()
Returns the class responsible for laying out the components of the parallel coordinates plot.- Returns:
- the layout engine
-
getModel
public ParallelCoordinatesModel 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:
ParallelCoordinatesView.setModel(com.macrofocus.high_d.parallelcoordinates.ParallelCoordinatesModel)
-
setModel
public 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:
ParallelCoordinatesView.getModel()
-
runLayout
public void runLayout()
-
createDummyAxisView
protected com.macrofocus.high_d.axis.swing.SwingAxisView createDummyAxisView()
-
getAxisX
public 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.axisModel- the axis- Returns:
- its position along the X axis
-
getHeaderAxisGroupMaximumHeight
public int getHeaderAxisGroupMaximumHeight()
-
getHeaderAxisMaximumHeight
public int getHeaderAxisMaximumHeight()
-
getParallelPanel
public SwingAxisComponents getParallelPanel(com.macrofocus.high_d.axis.AxisModel axisModel)
-
createAxisMouseListener
protected java.awt.event.MouseListener createAxisMouseListener(javax.swing.JButton label)
-
createAxisHeaderView
protected com.macrofocus.high_d.axis.AxisHeaderView createAxisHeaderView(com.macrofocus.high_d.axis.AxisModel axisModel)
-
createAxisController
protected AxisController createAxisController(javax.swing.JButton label, com.macrofocus.high_d.axis.swing.SwingAxisView axisView)
-
createAxisView
protected com.macrofocus.high_d.axis.swing.SwingAxisView createAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getLabel
public javax.swing.JButton getLabel(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getMinimumLabel
public javax.swing.JComponent getMinimumLabel(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getMaximumLabel
public javax.swing.JComponent getMaximumLabel(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getAndInstallAxisView
public com.macrofocus.high_d.axis.AxisView<javax.swing.JComponent> getAndInstallAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getAxisView
public com.macrofocus.high_d.axis.AxisView<javax.swing.JComponent> getAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)
Description copied from interface:ParallelCoordinatesViewGets the view associated with a given axis.- Parameters:
axisModel- the axis- Returns:
-
removeAxisView
public void removeAxisView(com.macrofocus.high_d.axis.AxisModel axisModel)
-
getAxisGroupView
public com.macrofocus.high_d.axis.group.AxisGroupView getAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)
-
createAxisGroupView
protected com.macrofocus.high_d.axis.group.AxisGroupView createAxisGroupView(com.macrofocus.high_d.axis.group.AxisGroupModel axisGroup)
-
waitUntilReady
public void waitUntilReady()
Wait until the parallel coordinates plot has been fully rendered.
-
getClosestRow
public Row getClosestRow(int x, int y)
-
getRows
public java.util.Collection<Row> getRows(com.macrofocus.geom.Rectangle2D rect)
Description copied from interface:ParallelCoordinatesViewReturns the nodes overlapping the specified rectangle.- Parameters:
rect- the rectangle in screen coordinates- Returns:
- the list of nodes
-
isSelectionMode
public boolean isSelectionMode()
-
setSelectionMode
public void setSelectionMode(boolean value)
-
setShowFiltered
public void setShowFiltered(MutableProperty<java.lang.Boolean> showFiltered)
-
setRendering
public void setRendering(MutableProperty<com.macrofocus.crossplatform.CPCanvas.Rendering> rendering)
-
setAntialiasing
public void setAntialiasing(MutableProperty<java.lang.Boolean> antialiasing)
-
setGeometry
public void setGeometry(MutableProperty<Geometry> geometry)
-
-