Style Intelligence v12.0

inetsoft.graph.coord
Class TriCoord

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

public class TriCoord
extends Coordinate

A triangular coordinate plot points at the intersection of grid lines. Each element should contain three measures. The first two measures should be added as dimension, and the last measure added as variable.
A shared scale is used to plot three axes. The scale should be the stacked range of each row in the dataset. The sum of the three measures should be constant.

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
TriCoord()
          Default constructor.
TriCoord(Scale scale)
          Create a triangular coordinate using a shared scale.
 
Method Summary
 Object clone()
          Make a copy of this object.
 void createAxis(VGraph vgraph)
          Create axis and other guides for the graph.
 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)
          Get all axes in this coordinate.
 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.
 Scale getScale()
          Get the scale of the coord.
 Scale[] getScales()
          Get the scales used in the coordinate.
 void setScale(Scale scale)
          Set the scale for the coord.
 
Methods inherited from class inetsoft.graph.coord.Coordinate
equalsContent, getCoordTransform, getDataSet, getMaxHeight, getMaxWidth, getParentCoordinate, getPlotSpec, getScaledCoordTransform, getScaledCoordTransform, getValue, getVGraph, init, 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

TriCoord

public TriCoord()
Default constructor.


TriCoord

public TriCoord(Scale scale)
Create a triangular coordinate using a shared scale.

Method Detail

setScale

public void setScale(Scale scale)
Set the scale for the coord. It's shared by all three axes.


getScale

public Scale getScale()
Get the scale of the coord.


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)
Get all axes in this coordinate.

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

clone

public Object clone()
Make a copy of this object.

Specified by:
clone in interface inetsoft.graph.internal.ICoordinate
Overrides:
clone in class Coordinate

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