com.vaadin.flow.component.charts.model.AnnotationItemLabelPoint Maven / Gradle / Ivy
/**
* Copyright 2000-2024 Vaadin Ltd.
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See {@literal } for the full
* license.
*/
package com.vaadin.flow.component.charts.model;
/**
* Contains coordinates for {@link AnnotationItemLabel}
*/
public class AnnotationItemLabelPoint extends AbstractConfigurationObject {
private Number x;
private Number y;
/**
* Constructs an AnnotationItemLabelPoint with the given coordinates
*
* @param x
* Horizontal offset
* @param y
* Vertical offset
*/
public AnnotationItemLabelPoint(Number x, Number y) {
this.x = x;
this.y = y;
}
/**
* @see #setX(Number)
*/
public Number getX() {
return x;
}
/**
* Sets the horizontal offset of the label within chart
*
* @param x
* Horizontal offset
*/
public void setX(Number x) {
this.x = x;
}
/**
* @see #setY(Number)
*/
public Number getY() {
return y;
}
/**
* Sets the vertical offset of the label within chart
*
* @param y
* Vertical offset
*/
public void setY(Number y) {
this.y = y;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy