Style Intelligence v12.0

inetsoft.graph.coord
Class RectCoord

java.lang.Object
  extended by inetsoft.graph.coord.AbstractCoord
      extended by inetsoft.graph.coord.Coordinate
          extended by inetsoft.graph.coord.RectCoord
All Implemented Interfaces:
inetsoft.graph.internal.ICoordinate, inetsoft.graph.internal.ILayout, Serializable, Cloneable
Direct Known Subclasses:
Rect25Coord

public class RectCoord
extends Coordinate

This is a rectangular 2D coordinate. X scale controls the horizontal position, and Y scale controls the vertical position.

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
RectCoord()
          Default constructor.
RectCoord(Scale xscale, Scale yscale)
          Create a two-dimensional rectangular coordinate.
 
Method Summary
 Object clone()
          Make a copy of this object.
protected  inetsoft.graph.guide.axis.DefaultAxis createAxis(Scale scale, VGraph vgraph)
          Create an axis for a scale.
 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.
 double getDepth()
          Get 3D depth.
 int getDimCount()
          Get the number of dimensions in this coordinate.
 double getIntervalSize(double interval)
          Get the interval size in this coordinate space.
 double getMaxHeight()
          Get the maximum height of an item in this coordinate without overlapping.
 double getMaxWidth()
          Get the maximum width of an item in this coordinate without overlapping.
 Point2D getPosition(double[] tuple)
          Map a tuple (from logic coordinate space) to the chart coordinate space.
 Scale[] getScales()
          Get the scales used in the coordinate.
 inetsoft.graph.guide.axis.DefaultAxis getXAxis1()
          Get bottom y axis.
 inetsoft.graph.guide.axis.DefaultAxis getXAxis2()
          Get top x axis.
 Scale getXScale()
          Get the x scale used in the coordinate.
 inetsoft.graph.guide.axis.DefaultAxis getYAxis1()
          Get left y axis.
 inetsoft.graph.guide.axis.DefaultAxis getYAxis2()
          Get right y axis.
 Scale getYScale()
          Get the y scale used in the coordinate.
 Scale getYScale2()
          Get the secondary y scale used in the coordinate.
 void setXScale(Scale xscale)
          Set the x scale used in the coordinate.
 void setYScale(Scale yscale)
          Set the y scale used in the coordinate.
 void setYScale2(Scale yscale2)
          Set the secondary y scale used in the coordinate.
 
Methods inherited from class inetsoft.graph.coord.Coordinate
equalsContent, getCoordTransform, getDataSet, 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

RectCoord

public RectCoord()
Default constructor.


RectCoord

public RectCoord(Scale xscale,
                 Scale yscale)
Create a two-dimensional rectangular coordinate.

Parameters:
xscale - x axis scale.
yscale - y axis scale.
Method Detail

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.

createAxis

protected inetsoft.graph.guide.axis.DefaultAxis createAxis(Scale scale,
                                                           VGraph vgraph)
Create an axis for a scale.


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.

getMaxWidth

public double getMaxWidth()
Get the maximum width of an item in this coordinate without overlapping.

Overrides:
getMaxWidth in class Coordinate

getMaxHeight

public double getMaxHeight()
Get the maximum height of an item in this coordinate without overlapping.

Overrides:
getMaxHeight in class Coordinate

getDimCount

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


getScales

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


getXScale

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


setXScale

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


getYScale

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


setYScale

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


getYScale2

public Scale getYScale2()
Get the secondary y scale used in the coordinate.


setYScale2

public void setYScale2(Scale yscale2)
Set the secondary y scale used in the coordinate. The secondary y scale is used to create the secondary Y axis. It is also used to scale any variable that is associated with the scale. It's up to the caller to decide whether a variable is scaled on the secondary or primary by setting the fields on the scale.


clone

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

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

getYAxis1

public inetsoft.graph.guide.axis.DefaultAxis getYAxis1()
Get left y axis.


getYAxis2

public inetsoft.graph.guide.axis.DefaultAxis getYAxis2()
Get right y axis.


getXAxis2

public inetsoft.graph.guide.axis.DefaultAxis getXAxis2()
Get top x axis.


getXAxis1

public inetsoft.graph.guide.axis.DefaultAxis getXAxis1()
Get bottom y axis.


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.

getDepth

public double getDepth()
Get 3D depth.


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