Class MatrixPanelRenderer
- java.lang.Object
-
- org.nuiton.math.matrix.viewer.renderer.MatrixPanelRenderer
-
- All Implemented Interfaces:
ActionListener
,EventListener
,MatrixRenderer
public class MatrixPanelRenderer extends Object implements ActionListener, MatrixRenderer
Matrix panel renderer.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
-
Field Summary
Fields Modifier and Type Field Description protected MatrixPanelEditor
editor
Matrix editor.protected JButton
exportButton
Export button.protected MatrixND
matrix
Current matrix.protected JPanel
panel
Renderer main component.
-
Constructor Summary
Constructors Constructor Description MatrixPanelRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
Component
getComponent(MatrixND matrix)
Renderer component for matrix.MatrixPanelEditor
getEditor()
Get editor instance to allow configuration.Icon
getIcon()
Renderer icon (used inMatrixRendererSolution.ICON
rendering).String
getName()
Renderer name (used inMatrixRendererSolution.RADIO_BUTTON
rendering).
-
-
-
Field Detail
-
panel
protected JPanel panel
Renderer main component.
-
editor
protected MatrixPanelEditor editor
Matrix editor.
-
exportButton
protected JButton exportButton
Export button.
-
matrix
protected MatrixND matrix
Current matrix.
-
-
Method Detail
-
getEditor
public MatrixPanelEditor getEditor()
Get editor instance to allow configuration.- Returns:
- internal editor reference
-
getComponent
public Component getComponent(MatrixND matrix)
Description copied from interface:MatrixRenderer
Renderer component for matrix.- Specified by:
getComponent
in interfaceMatrixRenderer
- Parameters:
matrix
- matrix to display (can be null with default rendering support)- Returns:
- component
- See Also:
MatrixViewerPanel.addMatrixRenderer(MatrixRenderer, boolean)
-
getIcon
public Icon getIcon()
Description copied from interface:MatrixRenderer
Renderer icon (used inMatrixRendererSolution.ICON
rendering).- Specified by:
getIcon
in interfaceMatrixRenderer
- Returns:
- plugin icon
-
getName
public String getName()
Description copied from interface:MatrixRenderer
Renderer name (used inMatrixRendererSolution.RADIO_BUTTON
rendering).- Specified by:
getName
in interfaceMatrixRenderer
- Returns:
- plugin name
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
-