Package org.nuiton.math.matrix.viewer
Class SumAllAction
- java.lang.Object
-
- org.nuiton.math.matrix.viewer.SumAllAction
-
- All Implemented Interfaces:
MatrixDimensionAction
public class SumAllAction extends Object implements MatrixDimensionAction
Sum all raw action. Default matrix viewer panel action to sum all elements.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
-
Constructor Summary
Constructors Constructor Description SumAllAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixND
apply(MatrixND matrix, int dim)
Apply matrix action.boolean
canApply(int index, List<?> semantic)
Return if an action can be displayed to user.String
getDescription()
Action button description.Icon
getIcon()
Action icon.Icon
getSelectedIcon()
Action selected icon.
-
-
-
Method Detail
-
getIcon
public Icon getIcon()
Description copied from interface:MatrixDimensionAction
Action icon.- Specified by:
getIcon
in interfaceMatrixDimensionAction
- Returns:
- action icon
-
getSelectedIcon
public Icon getSelectedIcon()
Description copied from interface:MatrixDimensionAction
Action selected icon.- Specified by:
getSelectedIcon
in interfaceMatrixDimensionAction
- Returns:
- action selected icon
-
getDescription
public String getDescription()
Description copied from interface:MatrixDimensionAction
Action button description.- Specified by:
getDescription
in interfaceMatrixDimensionAction
-
canApply
public boolean canApply(int index, List<?> semantic)
Description copied from interface:MatrixDimensionAction
Return if an action can be displayed to user. User can them select this action to apply action.- Specified by:
canApply
in interfaceMatrixDimensionAction
- Parameters:
index
- dimension indexsemantic
- semantic- Returns:
- can apply
-
apply
public MatrixND apply(MatrixND matrix, int dim)
Description copied from interface:MatrixDimensionAction
Apply matrix action.- Specified by:
apply
in interfaceMatrixDimensionAction
- Parameters:
matrix
- matrixdim
- dimension index- Returns:
- modified matrix
-
-