Class Crosshair
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.Crosshair
- All Implemented Interfaces:
Serializable
@Generated(value="This class was generated",
comments="Incorrect and missing API should be reported")
public class Crosshair
extends AbstractConfigurationObject
Configure a crosshair that follows either the mouse pointer or the hovered
point.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Getter for the fieldcolor.Getter for the fielddashStyle.getSnap()Getter for the fieldsnap.getWidth()Getter for the fieldwidth.Getter for the fieldzIndex.voidThe color of the crosshair.voidsetDashStyle(DashStyle dashStyle) The dash style for the crosshair.voidWhether the crosshair should snap to the point or follow the pointer independent of points.voidThe pixel width of the crosshair.voidThe Z index of the crosshair.
-
Constructor Details
-
Crosshair
public Crosshair()Constructor for Crosshair.
-
-
Method Details
-
getColor
Getter for the field
color.- Returns:
- a
Colorobject. - See Also:
-
setColor
The color of the crosshair.Defaults to: #C0C0C0
- Parameters:
color- aColorobject.
-
getDashStyle
Getter for the field
dashStyle.- Returns:
- a
DashStyleobject. - See Also:
-
setDashStyle
The dash style for the crosshair. See series.dashStyle for possible values.Defaults to: Solid
- Parameters:
dashStyle- aDashStyleobject.
-
getSnap
Getter for the field
snap.- Returns:
- a
Booleanobject. - See Also:
-
setSnap
Whether the crosshair should snap to the point or follow the pointer independent of points.Defaults to: true
- Parameters:
snap- aBooleanobject.
-
getWidth
Getter for the field
width.- Returns:
- a
Numberobject. - See Also:
-
setWidth
The pixel width of the crosshair. Defaults to 1 for numeric or datetime axes, and for one category width for category axes.- Parameters:
width- aNumberobject.
-
getZIndex
Getter for the field
zIndex.- Returns:
- a
Numberobject. - See Also:
-
setZIndex
The Z index of the crosshair. Higher Z indices allow drawing the crosshair on top of the series or behind the grid lines.Defaults to: 2
- Parameters:
zIndex- aNumberobject.
-