com.twosigma.beakerx.chart.xychart.plotitem.YAxis.getUpperMargin()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中com.twosigma.beakerx.chart.xychart.plotitem.YAxis.getUpperMargin()方法的一些代码示例,展示了YAxis.getUpperMargin()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.getUpperMargin()方法的具体详情如下:
包路径:com.twosigma.beakerx.chart.xychart.plotitem.YAxis
类名称:YAxis
方法名:getUpperMargin

YAxis.getUpperMargin介绍

暂无

代码示例

代码示例来源:origin: twosigma/beakerx

public double getYUpperMargin() {
 return this.yAxis.getUpperMargin();
}

代码示例来源:origin: twosigma/beakerx

@Override
public void serialize(YAxis yAxis, JsonGenerator jgen, SerializerProvider sp)
  throws IOException, JsonProcessingException {
 jgen.writeStartObject();
 jgen.writeObjectField(TYPE, SerializerUtil.getTypeName(yAxis));
 jgen.writeObjectField("label", yAxis.getLabel());
 jgen.writeObjectField("auto_range", yAxis.getAutoRange());
 jgen.writeObjectField(AUTO_RANGE_INCLUDES_ZERO, yAxis.getAutoRangeIncludesZero());
 jgen.writeObjectField("lower_margin", yAxis.getLowerMargin());
 jgen.writeObjectField("upper_margin", yAxis.getUpperMargin());
 jgen.writeObjectField("lower_bound", yAxis.getLowerBound());
 jgen.writeObjectField("upper_bound", yAxis.getUpperBound());
 jgen.writeObjectField("use_log", yAxis.getLog());
 jgen.writeObjectField("log_base", yAxis.getLogBase());
 jgen.writeEndObject();
}

代码示例来源:origin: twosigma/beakerx

public AbstractChart setyUpperMargin(double margin) {
 this.yAxis.setUpperMargin(margin);
 sendModelUpdate(ChartToJson.serializeUpperMargin(this.yAxis.getUpperMargin()));
 return this;
}

代码示例来源:origin: twosigma/beakerx

@Test
public void createYAxisWithOneStringAndTwoDoubleParams_hasLabelAndMarginsValues() {
 //when
 YAxis yAxis = new YAxis("string param", 1, 2);
 //then
 Assertions.assertThat(yAxis.getLabel()).isEqualTo("string param");
 Assertions.assertThat(yAxis.getLowerMargin()).isEqualTo(1);
 Assertions.assertThat(yAxis.getUpperMargin()).isEqualTo(2);
}

代码示例来源:origin: twosigma/beakerx

@Test
public void createYAxisWithStringParam_hasLabelAndMarginsValues() {
 //when
 YAxis yAxis = new YAxis("string param");
 //then
 Assertions.assertThat(yAxis.getLabel()).isEqualTo("string param");
 Assertions.assertThat(yAxis.getLowerMargin()).isEqualTo(0);
 Assertions.assertThat(yAxis.getUpperMargin()).isEqualTo(0);
}

代码示例来源:origin: twosigma/beakerx

@Test
public void createYAxisWithTwoDoubleParams_hasLabelIsEmptyAndMarginsValues() {
 //when
 YAxis yAxis = new YAxis(1, 2);
 //then
 Assertions.assertThat(yAxis.getLabel()).isEmpty();
 Assertions.assertThat(yAxis.getLowerMargin()).isEqualTo(1);
 Assertions.assertThat(yAxis.getUpperMargin()).isEqualTo(2);
}

代码示例来源:origin: twosigma/beakerx

@Test
public void createYAxisByEmptyConstructor_hasLabelAndMarginsAreNotNulls() {
 //when
 YAxis yAxis = new YAxis();
 //then
 Assertions.assertThat(yAxis.getLabel()).isNotNull();
 Assertions.assertThat(yAxis.getLowerMargin()).isNotNull();
 Assertions.assertThat(yAxis.getUpperMargin()).isNotNull();
}

相关文章