Style Intelligence v12.0

inetsoft.graph.coord
Class GeoCoord

java.lang.Object
  extended by inetsoft.graph.coord.AbstractCoord
      extended by inetsoft.graph.coord.Coordinate
          extended by inetsoft.graph.coord.GeoCoord
All Implemented Interfaces:
inetsoft.graph.internal.ICoordinate, inetsoft.graph.internal.ILayout, Serializable, Cloneable

public class GeoCoord
extends Coordinate

This coordinate is used to map longtitude and latitude on a rectangular space. The current implementation uses mercator projection.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface inetsoft.graph.internal.ICoordinate
ALL_MOST, BOTTOM_AXIS, BOTTOM_MOST, LEFT_AXIS, LEFT_MOST, RIGHT_AXIS, RIGHT_MOST, TOP_AXIS, TOP_MOST
 
Constructor Summary
GeoCoord()
          Default constructor.
GeoCoord(inetsoft.graph.geo.GeoDataSet gdata)
          Create a geo coord for the map data.
GeoCoord(String field)
          Create a geo coord for the map data.
 
Method Summary
 void createAxis(VGraph vgraph)
          Create axis and other guides for the graph.
 boolean equalsContent(Object obj)
          Check if the coordinate has the same structure as this.
 void fit(double x, double y, double w, double h)
          Set the screen transformation to fit the graph to the specified output size.
 inetsoft.graph.guide.axis.Axis[] getAxes(boolean recursive)
          This coord has not axis.
 int getDimCount()
          Get the number of dimensions in this coordinate.
 double getIntervalSize(double interval)
          Get the interval size in this coordinate space.
 Point2D getPosition(double[] tuple)
          Map a tuple (from logic coordinate space) to the chart coordinate space.
 inetsoft.graph.geo.GeoProjection getProjection()
          Get the map projection.
 Scale[] getScales()
          Get the scales used in the coordinate.
 LinearScale getXScale()
          Get the x scale used in the coordinate.
 LinearScale getYScale()
          Get the y scale used in the coordinate.
 void init(DataSet dset)
          Initialize this coordinate for the specified chart data set.
 boolean isFullMap()
          Check if the dataset should be padded with rows for all shapes in the map.
 void setExtent(double minX, double minY, double maxX, double maxY)
          Set the extent of the map.
 void setFullMap(boolean fullmap)
          Set if the dataset should be padded with rows for all shapes in the map.
 void setProjection(inetsoft.graph.geo.GeoProjection proj)
          Set the map projection.
 void setXScale(LinearScale xscale)
          Set the x scale used in the coordinate.
 void setYScale(LinearScale yscale)
          Set the y scale used in the coordinate.
 
Methods inherited from class inetsoft.graph.coord.Coordinate
clone, getCoordTransform, getDataSet, getMaxHeight, getMaxWidth, getParentCoordinate, getPlotSpec, getScaledCoordTransform, getScaledCoordTransform, getValue, getVGraph, layoutText, reflect, rotate, setCoordTransform, setDataSet, setParentCoordinate, setPlotSpec, setVGraph, transform, transformShape, transpose
 
Methods inherited from class inetsoft.graph.coord.AbstractCoord
getCoordBounds, setCoordBounds
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.graph.internal.ILayout
getMinHeight, getMinWidth, getPreferredHeight, getPreferredWidth
 
Methods inherited from interface inetsoft.graph.internal.ICoordinate
getAxesAt, getAxisMinSize, getAxisPreferredSize, getAxisSize, getUnitMinHeight, getUnitMinWidth, getUnitPreferredHeight, getUnitPreferredWidth, isAxisLabelVisible, isAxisTickVisible, setAxisLabelVisible, setAxisSize, setAxisTickVisible
 

Constructor Detail

GeoCoord

public GeoCoord()
Default constructor.


GeoCoord

public GeoCoord(inetsoft.graph.geo.GeoDataSet gdata)
Create a geo coord for the map data.


GeoCoord

public GeoCoord(String field)
Create a geo coord for the map data.

Parameters:
field - the geography column that is used as map shape feature ids.
Method Detail

isFullMap

public boolean isFullMap()
Check if the dataset should be padded with rows for all shapes in the map.


setFullMap

public void setFullMap(boolean fullmap)
Set if the dataset should be padded with rows for all shapes in the map.


getXScale

public LinearScale getXScale()
Get the x scale used in the coordinate.


setXScale

public void setXScale(LinearScale xscale)
Set the x scale used in the coordinate.


getYScale

public LinearScale getYScale()
Get the y scale used in the coordinate.


setYScale

public void setYScale(LinearScale yscale)
Set the y scale used in the coordinate.


getProjection

public inetsoft.graph.geo.GeoProjection getProjection()
Get the map projection.


setProjection

public void setProjection(inetsoft.graph.geo.GeoProjection proj)
Set the map projection.


setExtent

public void setExtent(double minX,
                      double minY,
                      double maxX,
                      double maxY)
Set the extent of the map. If this is not set, the extent is calculated from the data.


init

public void init(DataSet dset)
Initialize this coordinate for the specified chart data set.

Overrides:
init in class Coordinate

getPosition

public Point2D getPosition(double[] tuple)
Map a tuple (from logic coordinate space) to the chart coordinate space.

Specified by:
getPosition in class Coordinate
Parameters:
tuple - the tuple in logic space (scaled values).
Returns:
position in chart coordinate space.

getIntervalSize

public double getIntervalSize(double interval)
Get the interval size in this coordinate space.

Specified by:
getIntervalSize in class Coordinate
Parameters:
interval - interval value.
Returns:
interval size in this coordinate space.

createAxis

public void createAxis(VGraph vgraph)
Create axis and other guides for the graph.

Specified by:
createAxis in class Coordinate
Parameters:
vgraph - visual graph to create axis.

fit

public void fit(double x,
                double y,
                double w,
                double h)
Set the screen transformation to fit the graph to the specified output size.

Specified by:
fit in class Coordinate
Parameters:
x - horizontal position.
y - vertical position.
w - width to scale to.
h - height to scale to.

getDimCount

public int getDimCount()
Get the number of dimensions in this coordinate.


getScales

public Scale[] getScales()
Get the scales used in the coordinate.


getAxes

public inetsoft.graph.guide.axis.Axis[] getAxes(boolean recursive)
This coord has not axis.

Specified by:
getAxes in class AbstractCoord
Parameters:
recursive - true to include axes in nested coordinates.

equalsContent

public boolean equalsContent(Object obj)
Check if the coordinate has the same structure as this.

Overrides:
equalsContent in class Coordinate

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.