本文整理汇总了Java中org.jfree.chart.axis.Axis.setLabelFont方法的典型用法代码示例。如果您正苦于以下问题:Java Axis.setLabelFont方法的具体用法?Java Axis.setLabelFont怎么用?Java Axis.setLabelFont使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.axis.Axis
的用法示例。
在下文中一共展示了Axis.setLabelFont方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setAxisProperties
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
* Sets the properties of the specified axis to match the properties
* defined on this panel.
*
* @param axis the axis.
*/
public void setAxisProperties(Axis axis) {
axis.setLabel(getLabel());
axis.setLabelFont(getLabelFont());
axis.setLabelPaint(getLabelPaint());
axis.setTickMarksVisible(isTickMarksVisible());
// axis.setTickMarkStroke(getTickMarkStroke());
axis.setTickLabelsVisible(isTickLabelsVisible());
axis.setTickLabelFont(getTickLabelFont());
axis.setTickLabelPaint(getTickLabelPaint());
axis.setTickLabelInsets(getTickLabelInsets());
axis.setLabelInsets(getLabelInsets());
}
示例2: setAxisProperties
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
* Sets the properties of the specified axis to match
* the properties defined on this panel.
*
* @param axis the axis.
*/
public void setAxisProperties(Axis axis) {
axis.setLabel(getLabel());
axis.setLabelFont(getLabelFont());
axis.setLabelPaint(getLabelPaint());
axis.setTickMarksVisible(showTickMarksCheckBox.getSelection());
axis.setTickLabelsVisible(showTickLabelsCheckBox.getSelection());
axis.setTickLabelFont(getTickLabelFont());
axis.setTickLabelPaint(getTickLabelPaint());
}
示例3: setAxisProperties
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
* Sets the properties of the specified axis to match
* the properties defined on this panel.
*
* @param axis the axis.
*/
public void setAxisProperties(Axis axis) {
axis.setLabel(getLabel());
axis.setLabelFont(getLabelFont());
axis.setLabelPaint(getLabelPaint());
axis.setTickMarksVisible(this.showTickMarksCheckBox.getSelection());
axis.setTickLabelsVisible(this.showTickLabelsCheckBox.getSelection());
axis.setTickLabelFont(getTickLabelFont());
axis.setTickLabelPaint(getTickLabelPaint());
}
示例4: setAxisLabel
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void setAxisLabel(Axis axis, JRFont labelFont, Paint labelColor, Integer baseFontSize)
{
Boolean defaultAxisLabelVisible = (Boolean)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_VISIBLE);
if (defaultAxisLabelVisible != null && defaultAxisLabelVisible.booleanValue())
{
if (axis.getLabel() == null)
axis.setLabel((String)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL));
Double defaultLabelAngle = (Double)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_ANGLE);
if (defaultLabelAngle != null)
axis.setLabelAngle(defaultLabelAngle.doubleValue());
Font themeLabelFont = getFont((JRFont)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_FONT), labelFont, baseFontSize);
axis.setLabelFont(themeLabelFont);
RectangleInsets defaultLabelInsets = (RectangleInsets)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_INSETS);
if (defaultLabelInsets != null)
{
axis.setLabelInsets(defaultLabelInsets);
}
Paint labelPaint = labelColor != null ?
labelColor :
(Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LABEL_PAINT);
if (labelPaint != null)
{
axis.setLabelPaint(labelPaint);
}
}
}
示例5: setAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
private void setAxis(Axis axis, Font font) {
if(axis!=null) {
axis.setLabelFont(font);
axis.setLabelPaint(foregroundcolor);
axis.setTickLabelFont(font);
axis.setTickLabelPaint(foregroundcolor);
axis.setTickLabelsVisible(true);
}
}
示例6: setAxisProperties
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
* Sets the properties of the specified axis to match the properties defined on this panel.
*
* @param axis
* the axis.
*/
public void setAxisProperties(final Axis axis) {
axis.setLabel(getLabel());
axis.setLabelFont(getLabelFont());
axis.setLabelPaint(getLabelPaint());
axis.setTickMarksVisible(this.showTickMarksCheckBox.getSelection());
axis.setTickLabelsVisible(this.showTickLabelsCheckBox.getSelection());
axis.setTickLabelFont(getTickLabelFont());
axis.setTickLabelPaint(getTickLabelPaint());
}
示例7: customizeAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void customizeAxis(Axis axis)
{
axis.setLabelFont(DEFAULT_LABEL_FONT);
axis.setTickLabelFont(DEFAULT_AXIS_FONT);
}
示例8: customizeAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
* <p>customizeAxis.</p>
*
* @param axis a {@link org.jfree.chart.axis.Axis} object.
*/
protected void customizeAxis(Axis axis)
{
axis.setLabelFont(DEFAULT_LABEL_FONT);
axis.setTickLabelFont(DEFAULT_AXIS_FONT);
}
示例9: customizeAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void customizeAxis(Axis axis) {
axis.setLabelFont(DEFAULT_LABEL_FONT);
axis.setTickLabelFont(DEFAULT_AXIS_FONT);
}