Package com.androidplot.xy
Class PanZoom.State
-
- All Implemented Interfaces:
-
java.io.Serializable
public class PanZoom.State implements Serializable
A snapshot of an XYPlot's domain and range boundaries, as captured by getState and restored by setState. Each boundary edge is stored independently; an edge whose mode is null is left untouched when the state is applied.
-
-
Constructor Summary
Constructors Constructor Description PanZoom.State()
-
Method Summary
Modifier and Type Method Description voidsetDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @Nullable() BoundaryMode mode)voidsetDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @Nullable() BoundaryMode upperBoundaryMode)voidsetRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @Nullable() BoundaryMode mode)voidsetRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @Nullable() BoundaryMode upperBoundaryMode)voidapplyDomainBoundaries(@NonNull() XYPlot plot)Applies the captured domain boundaries to plot. voidapplyRangeBoundaries(@NonNull() XYPlot plot)Applies the captured range boundaries to plot. voidapply(@NonNull() XYPlot plot)-
-
Method Detail
-
setDomainBoundaries
void setDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @Nullable() BoundaryMode mode)
-
setDomainBoundaries
void setDomainBoundaries(@Nullable() Number lowerBoundary, @Nullable() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @Nullable() BoundaryMode upperBoundaryMode)
-
setRangeBoundaries
void setRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() Number upperBoundary, @Nullable() BoundaryMode mode)
-
setRangeBoundaries
void setRangeBoundaries(@Nullable() Number lowerBoundary, @Nullable() BoundaryMode lowerBoundaryMode, @Nullable() Number upperBoundary, @Nullable() BoundaryMode upperBoundaryMode)
-
applyDomainBoundaries
void applyDomainBoundaries(@NonNull() XYPlot plot)
Applies the captured domain boundaries to plot. An edge whose mode is null (this state was never populated for that edge) is skipped, since a null mode would crash the plot's next render pass.
-
applyRangeBoundaries
void applyRangeBoundaries(@NonNull() XYPlot plot)
Applies the captured range boundaries to plot. An edge whose mode is null (this state was never populated for that edge) is skipped, since a null mode would crash the plot's next render pass.
-
-
-
-