📄 chartrendererbase.java
字号:
package net.sourceforge.ganttproject.chart;/** * Created by IntelliJ IDEA. User: bard Date: 12.10.2004 Time: 0:56:19 To change * this template use Options | File Templates. */public class ChartRendererBase { private int myHeight; private ChartModelBase myChartModel; private final GraphicPrimitiveContainer myPrimitiveContainer; private boolean isEnabled = true; protected ChartRendererBase() { myPrimitiveContainer = new GraphicPrimitiveContainer(); } public ChartRendererBase(ChartModelBase model) { this(); setChartModel(model); } public void setHeight(int height) { myHeight = height; } protected int getHeight() { return myHeight; } protected int getWidth() { return (int) getChartModel().getBounds().getWidth(); } protected ChartUIConfiguration getConfig() { return getChartModel().getChartUIConfiguration(); } public GraphicPrimitiveContainer getPrimitiveContainer() { return myPrimitiveContainer; } protected ChartModelBase getChartModel() { return myChartModel; } public boolean isEnabled() { return isEnabled; } public void setEnabled(boolean enabled) { isEnabled = enabled; } public void beforeProcessingTimeFrames() { myPrimitiveContainer.clear(); } protected void setChartModel(ChartModelBase chartModel) { myChartModel = chartModel; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -