本文整理了Java中com.twosigma.beakerx.chart.xychart.plotitem.YAxis.getUpperBound()
方法的一些代码示例,展示了YAxis.getUpperBound()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.getUpperBound()
方法的具体详情如下:
包路径:com.twosigma.beakerx.chart.xychart.plotitem.YAxis
类名称:YAxis
方法名:getUpperBound
暂无
代码示例来源:origin: twosigma/beakerx
public Double getYUpperBound() {
return this.yAxis.getUpperBound();
}
代码示例来源:origin: twosigma/beakerx
static Map<Object, Object> serializeYBound(YAxis yAxis) {
Map<Object, Object> value = new LinkedHashMap<>();
value.put(Y_LOWER_BOUND, yAxis.getLowerBound());
value.put(Y_UPPER_BOUND, yAxis.getUpperBound());
return value;
}
代码示例来源: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
@Test
public void setBoundsWithTwoDoubleParams_hasBoundsValuesAndHasAutoRangeIsFalse() {
//given
YAxis yAxis = new YAxis();
//when
yAxis.setBound(1, 2);
//then
Assertions.assertThat(yAxis.getAutoRange()).isEqualTo(false);
Assertions.assertThat(yAxis.getLowerBound()).isEqualTo(1);
Assertions.assertThat(yAxis.getUpperBound()).isEqualTo(2);
}
内容来源于网络,如有侵权,请联系作者删除!