1 changed files with 1 additions and 15 deletions
@ -1,30 +1,16 @@ |
|||||||
package com.fr.van.chart.designer.style.axis; |
package com.fr.van.chart.designer.style.axis; |
||||||
|
|
||||||
import com.fr.design.layout.TableLayout; |
|
||||||
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
||||||
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithThemeStyle; |
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithThemeStyle; |
||||||
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
import com.fr.design.mainframe.chart.mode.ChartEditContext; |
||||||
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
||||||
|
|
||||||
import javax.swing.JPanel; |
|
||||||
|
|
||||||
public class VanChartAxisPaneHelper { |
public class VanChartAxisPaneHelper { |
||||||
public static ChartTextAttrPane createAxisTextAttrPane() { |
public static ChartTextAttrPane createAxisTextAttrPane() { |
||||||
return ChartEditContext.supportTheme() ? new ChartTextAttrPaneWithThemeStyle() { |
return ChartEditContext.supportTheme() ? new ChartTextAttrPaneWithThemeStyle() { |
||||||
protected double getEdithAreaWidth() { |
protected double getEdithAreaWidth() { |
||||||
return TableLayout4VanChartHelper.SECOND_EDIT_AREA_WIDTH; |
return TableLayout4VanChartHelper.SECOND_EDIT_AREA_WIDTH; |
||||||
} |
} |
||||||
} : new ChartTextAttrPane() { |
} : new ChartTextAttrPane(); |
||||||
@Override |
|
||||||
protected JPanel getContentPane(JPanel buttonPane) { |
|
||||||
double p = TableLayout.PREFERRED; |
|
||||||
double f = TableLayout.FILL; |
|
||||||
double e = TableLayout4VanChartHelper.SECOND_EDIT_AREA_WIDTH; |
|
||||||
double[] columnSize = {f, e}; |
|
||||||
double[] rowSize = {p, p, p}; |
|
||||||
|
|
||||||
return TableLayout4VanChartHelper.createGapTableLayoutPane(getComponents(buttonPane), rowSize, columnSize); |
|
||||||
} |
|
||||||
}; |
|
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue