Skip to main content

ScreenSpaceCanvas.CompositeHorizontalCoordinate

Package: velox.api.layer1.layers.strategies.interfaces

Type: Class

Enclosing Interface: ScreenSpaceCanvas

Inheritance: java.lang.Object รขโ€ โ€™ ScreenSpaceCanvas.CompositeHorizontalCoordinate

All Implemented Interfaces: ScreenSpaceCanvas.HorizontalCoordinate

Descriptionโ€‹

Horizontal coordinate described in universal way. You might want to use ScreenSpaceCanvas.RelativeHorizontalCoordinate to improve readability.

Fieldsโ€‹

baseโ€‹

public final ScreenSpaceCanvas.CompositeCoordinateBase base

Coordinates origin (essentially this selects what the point will follow - screen or the data).

pixelsXโ€‹

public final int pixelsX

Pixels offset relative to the origin (added up with timeX).

timeXโ€‹

public final long timeX

Data offset relative to the origin (added up with pixelsX).

Constructorsโ€‹

CompositeHorizontalCoordinateโ€‹

public CompositeHorizontalCoordinate(ScreenSpaceCanvas.CompositeCoordinateBase base, int pixelsX, long timeX)

Methodsโ€‹

composeโ€‹

public ScreenSpaceCanvas.CompositeHorizontalCoordinate compose()

Convert to ScreenSpaceCanvas.CompositeHorizontalCoordinate

Specified by: compose in interface ScreenSpaceCanvas.HorizontalCoordinate

Returns: ScreenSpaceCanvas.CompositeHorizontalCoordinate

toStringโ€‹

public String toString()

Overrides: toString in class Object