You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
/* |
|
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved. |
|
*/ |
|
package com.fr.design.actions.insert.cell; |
|
|
|
import javax.swing.KeyStroke; |
|
|
|
import com.fr.base.BaseUtils; |
|
import com.fr.design.actions.core.WorkBookSupportable; |
|
import com.fr.design.mainframe.ElementCasePane; |
|
import com.fr.design.menu.MenuKeySet; |
|
import com.fr.general.Inter; |
|
import com.fr.report.cell.painter.BiasTextPainter; |
|
|
|
/** |
|
* Bias |
|
*/ |
|
public class BiasCellAction extends AbstractCellAction implements WorkBookSupportable { |
|
public BiasCellAction(ElementCasePane t) { |
|
super(t); |
|
this.setMenuKeySet(INSERT_SLOPE_LINE); |
|
this.setName(getMenuKeySet().getMenuKeySetName()+ "..."); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_insert/bias.png")); |
|
} |
|
|
|
public static final MenuKeySet INSERT_SLOPE_LINE = new MenuKeySet() { |
|
@Override |
|
public char getMnemonic() { |
|
//之前是S, 跟子报表subreport重复了 |
|
return 'X'; |
|
} |
|
|
|
@Override |
|
public String getMenuName() { |
|
return Inter.getLocText("M_Insert-Slope_Line"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
}; |
|
|
|
@Override |
|
public Class getCellValueClass() { |
|
return BiasTextPainter.class; |
|
} |
|
} |