CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
Public Member Functions | Public Attributes | List of all members
com.cartotype.ViewState Class Reference

Public Member Functions

native int readFromXml (String aText)
 
native String toXml ()
 

Public Attributes

int widthInPixels = 256
 
int heightInPixels = 256
 
double viewCenterDegreesX = 0
 
double viewCenterDegreesY = 0
 
double scaleDenominator = 0
 
double rotationDegrees = 0
 
boolean perspective = false
 
PerspectiveParam perspectiveParam = new PerspectiveParam()
 

Detailed Description

The view state, which can be retrieved or set so that maps can be recreated.

Member Function Documentation

◆ readFromXml()

native int com.cartotype.ViewState.readFromXml ( String  aText)

Reads a view state from its XML form. Returns an error code (0 = success).

◆ toXml()

native String com.cartotype.ViewState.toXml ( )

Creates a string representing a view state in XML.

Member Data Documentation

◆ heightInPixels

int com.cartotype.ViewState.heightInPixels = 256

The display height in pixels.

◆ perspective

boolean com.cartotype.ViewState.perspective = false

True if perspective mode is on.

◆ perspectiveParam

PerspectiveParam com.cartotype.ViewState.perspectiveParam = new PerspectiveParam()

The parameters to be used for perspective mode; if null, default parameters are used.

◆ rotationDegrees

double com.cartotype.ViewState.rotationDegrees = 0

The clockwise rotation of the view in degrees.

◆ scaleDenominator

double com.cartotype.ViewState.scaleDenominator = 0

The denominator of the scale fraction; e.g., 50000 for 1:50000.

◆ viewCenterDegreesX

double com.cartotype.ViewState.viewCenterDegreesX = 0

The X coordinate (longitude) of the view center in degrees.

◆ viewCenterDegreesY

double com.cartotype.ViewState.viewCenterDegreesY = 0

The Y coordinate (latitude) of the view center in degrees.

◆ widthInPixels

int com.cartotype.ViewState.widthInPixels = 256

The display width in pixels.


The documentation for this class was generated from the following file: