|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.nuiton.math.matrix.viewer.MatrixViewerPanel
public class MatrixViewerPanel
Panel that can display matrix list details (dimension) and rendering solutions.
| Nested Class Summary | |
|---|---|
protected class |
MatrixViewerPanel.IconButtonRenderingPanel
Icon button rendering panel. |
protected static class |
MatrixViewerPanel.MatrixComboRenderer
Matrix list combo renderer. |
protected class |
MatrixViewerPanel.RadioButtonRenderingPanel
Radio button rendering panel. |
protected static class |
MatrixViewerPanel.RendererButtonModel
Button model from button containing rendered instance. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected Map<MatrixRenderer,Component> |
componentForRenderers
Map entre les renderers et les composants (valorisé par bouton de rendu) et utilisé par le choix du renderer. |
protected MatrixDimensionPanel |
dimensionPanel
|
protected MatrixViewerPanel.IconButtonRenderingPanel |
iconPanel
|
protected MatrixND |
matrix
La matrice courrement affichées. |
protected List<MatrixFilter> |
matrixFilters
Matrix filters (used after matrix reduction). |
protected Map<MatrixRenderer,Boolean> |
matrixRenderers
Matrix renderer plugins. |
protected MatrixRendererSolution |
matrixRendererSolution
Matrix renderer list solution. |
static String |
PROPERTY_MATRIX
|
static String |
PROPERTY_MATRIX_RENDERER_SOLUTION
|
static String |
PROPERTY_MATRIX_RENDERERS
|
protected MatrixViewerPanel.RadioButtonRenderingPanel |
radioPanel
|
protected JPanel |
renderingComponentContainer
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MatrixViewerPanel()
|
|
| Method Summary | |
|---|---|
void |
addMatrixDimentionAction(MatrixDimensionAction matrixDimentionAction)
Add new action. |
boolean |
addMatrixFilter(MatrixFilter matrixFilter)
Add new matrix filter. |
void |
addMatrixRenderer(MatrixRenderer matrixRenderer)
|
void |
addMatrixRenderer(MatrixRenderer matrixRenderer,
boolean defautRenderer)
Add new matrix renderer. |
protected void |
buildPanel()
Build main panel. |
MatrixND |
getMatrix()
Get currently displayed matrix. |
MatrixRendererSolution |
getMatrixRendererSolution()
|
boolean |
removeMatrixFilter(Object matrixFilter)
|
void |
removeMatrixRenderer(Object matrixRenderer)
|
void |
setMatrix(MatrixND matrix)
Set currently displayed matrix. |
void |
setMatrixRendererSolution(MatrixRendererSolution matrixRendererSolution)
|
void |
updateSelectedRenderingComponent()
Set rendering component in rendering container. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_MATRIX_RENDERER_SOLUTION
public static final String PROPERTY_MATRIX_RENDERERS
public static final String PROPERTY_MATRIX
protected MatrixRendererSolution matrixRendererSolution
MatrixRendererSolution.RADIO_BUTTON
protected Map<MatrixRenderer,Boolean> matrixRenderers
protected List<MatrixFilter> matrixFilters
protected MatrixND matrix
protected MatrixDimensionPanel dimensionPanel
protected MatrixViewerPanel.RadioButtonRenderingPanel radioPanel
protected MatrixViewerPanel.IconButtonRenderingPanel iconPanel
protected JPanel renderingComponentContainer
protected Map<MatrixRenderer,Component> componentForRenderers
| Constructor Detail |
|---|
public MatrixViewerPanel()
| Method Detail |
|---|
public MatrixRendererSolution getMatrixRendererSolution()
public void setMatrixRendererSolution(MatrixRendererSolution matrixRendererSolution)
public void addMatrixRenderer(MatrixRenderer matrixRenderer)
public void addMatrixRenderer(MatrixRenderer matrixRenderer,
boolean defautRenderer)
matrixRenderer - matrix rendererdefautRenderer - renderer can be called with a null matrix to get default renderingpublic void removeMatrixRenderer(Object matrixRenderer)
public boolean addMatrixFilter(MatrixFilter matrixFilter)
matrixFilter - matrix filter
true (as specified by Collection.add(Object)public boolean removeMatrixFilter(Object matrixFilter)
public void setMatrix(MatrixND matrix)
matrix - new matrix to displaypublic MatrixND getMatrix()
public void addMatrixDimentionAction(MatrixDimensionAction matrixDimentionAction)
matrixDimentionAction - new actionprotected void buildPanel()
public void updateSelectedRenderingComponent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||