org.nuiton.math.matrix.viewer
Class SumAllAction

java.lang.Object
  extended by 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: 346 $ Last update : $Date: 2011-04-07 14:26:45 +0200 (Thu, 07 Apr 2011) $ By : $Author: echatellier $
Author:
chatellier

Constructor Summary
SumAllAction()
           
 
Method Summary
 int getDimensionIndex()
          Return l'index de la dimension sur lequel porte l'action.
 Class<?> getDimensionType()
          Return le type de dimension concernĂ© par les actions.
 Icon getIcon()
          Action icon.
 Icon getSelectedIcon()
          Action selected icon.
 int getSumStep()
          Method getSumStep indique le pas d'increment pour la somme sur la dimension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SumAllAction

public SumAllAction()
Method Detail

getIcon

public Icon getIcon()
Description copied from interface: MatrixDimensionAction
Action icon.

Specified by:
getIcon in interface MatrixDimensionAction
Returns:
action icon

getSelectedIcon

public Icon getSelectedIcon()
Description copied from interface: MatrixDimensionAction
Action selected icon.

Specified by:
getSelectedIcon in interface MatrixDimensionAction
Returns:
action selected icon

getDimensionIndex

public int getDimensionIndex()
Description copied from interface: MatrixDimensionAction
Return l'index de la dimension sur lequel porte l'action. Used only if MatrixDimensionAction.getDimensionType() returns null. Return -1 to affect all dimensions.

Specified by:
getDimensionIndex in interface MatrixDimensionAction
Returns:
dimension index

getDimensionType

public Class<?> getDimensionType()
Description copied from interface: MatrixDimensionAction
Return le type de dimension concerné par les actions.

Specified by:
getDimensionType in interface MatrixDimensionAction
Returns:
dimension type

getSumStep

public int getSumStep()
Description copied from interface: MatrixDimensionAction
Method getSumStep indique le pas d'increment pour la somme sur la dimension.

Specified by:
getSumStep in interface MatrixDimensionAction
Returns:
-1 indique de faire la somme sur tous les elements. 1 indique de faire la somme 1 a 1 (donc de ne pas faire de somme), 2 indiques de faire la somme 2 a 2, ...


Copyright © 2004-2012 CodeLutin. All Rights Reserved.