Style Intelligence v12.0

inetsoft.graph.coord
Class FacetCoord

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

public class FacetCoord
extends Coordinate

A facet coordinate is used to create a chart of chart, or nested charts. It is a coordinate with nested coordinates.

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
FacetCoord()
          Default constructor.
FacetCoord(Coordinate outer, Coordinate minner)
          Create a nested coordinate.
FacetCoord(Coordinate outer, Coordinate[] minners, boolean vertical)
          Create a nested coordinate.
 
Method Summary
 Object clone()
          Make a copy of this object.
 void createAxis(VGraph vgraph)
          Create axis and other guides for the visual 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 coord bounds.
 inetsoft.graph.guide.axis.Axis[] getAxes(boolean recursive)
          Get all axes in this coordinate.
 double getDepth()
          Get the depth for 3D effect coord.
 int getDimCount()
          Get the number of dimensions in this coordinate.
 Coordinate[][] getExpandedInnerCoords()
          Expand all nested coordinates into a flat two-dimensional array.
 Color getGridColor()
          Get the facet grid line color.
 Coordinate[] getInnerCoordinates()
          Get the inner nested coordinates.
 double getIntervalSize(double interval)
          Get the interval size in this coordinate space.
 Coordinate getOuterCoordinate()
          Get the outer coordinate.
 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.
 void init(DataSet dset)
          Initialize this coordinate for the specified chart data set.
 boolean isFacetGrid()
          Check if the facet grid is drawn.
 boolean isVertical()
          Check if inner graphs should be arranged vertically.
 void layout(double x, double y, double cellw, double cellh)
          Layout (position and size) of inner coordinates.
 void setFacetGrid(boolean grid)
          Set whether to draw facet grid lines.
 void setGridColor(Color gridColor)
          Set the facet grid line color.
 void setInnerCoordinates(Coordinate[] minners)
          Set the inner nested coordinates.
 void setOuterCoordinate(Coordinate outer)
          Set the outer coordinate.
 void setVertical(boolean vertical)
          Set whether inner graphs should be arranged vertically.
 void setVGraph(VGraph vgraph)
          Set the associated VGraph.
 Object transformShape(Object shape)
          Transform a shape or point to this coordinate space.
 
Methods inherited from class inetsoft.graph.coord.Coordinate
getCoordTransform, getDataSet, getMaxHeight, getMaxWidth, getParentCoordinate, getPlotSpec, getScaledCoordTransform, getScaledCoordTransform, getValue, getVGraph, layoutText, reflect, rotate, setCoordTransform, setDataSet, setParentCoordinate, setPlotSpec, transform, 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

FacetCoord

public FacetCoord()
Default constructor. The outer and inner coordinates must be explicitly set before this object is used.


FacetCoord

public FacetCoord(Coordinate outer,
                  Coordinate minner)
Create a nested coordinate.

Parameters:
outer - outer coordinate.
minner - inner prototype coordinate. It will be cloned to be used as the coordinate for the sub-graphs.

FacetCoord

public FacetCoord(Coordinate outer,
                  Coordinate[] minners,
                  boolean vertical)
Create a nested coordinate.

Parameters:
outer - outer coordinate.
minners - inner prototype coordinates. They will be cloned to be used as the coordinates for the sub-graphs.
Method Detail

init

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

Overrides:
init in class Coordinate

getInnerCoordinates

public Coordinate[] getInnerCoordinates()
Get the inner nested coordinates.


setInnerCoordinates

public void setInnerCoordinates(Coordinate[] minners)
Set the inner nested coordinates.


getOuterCoordinate

public Coordinate getOuterCoordinate()
Get the outer coordinate.


setOuterCoordinate

public void setOuterCoordinate(Coordinate outer)
Set the outer coordinate.


transformShape

public Object transformShape(Object shape)
Transform a shape or point to this coordinate space.

Overrides:
transformShape in class Coordinate
Parameters:
shape - a shape or a point to transform.
Returns:
the transformed shape or point.

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:
the position of specified tuple.

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.

getExpandedInnerCoords

public Coordinate[][] getExpandedInnerCoords()
Expand all nested coordinates into a flat two-dimensional array.


createAxis

public void createAxis(VGraph vgraph)
Create axis and other guides for the visual 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 coord bounds.

Specified by:
fit in class Coordinate

layout

public void layout(double x,
                   double y,
                   double cellw,
                   double cellh)
Layout (position and size) of inner coordinates.

Parameters:
x - the horizontal position.
y - the vertical position.
cellw - the unit width.
cellh - the unit height.

getDimCount

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


getScales

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


isVertical

public boolean isVertical()
Check if inner graphs should be arranged vertically.


setVertical

public void setVertical(boolean vertical)
Set whether inner graphs should be arranged vertically.


isFacetGrid

public boolean isFacetGrid()
Check if the facet grid is drawn.


setFacetGrid

public void setFacetGrid(boolean grid)
Set whether to draw facet grid lines.

Parameters:
grid - true to draw the facet axis lines (if enabled) and the outer border lines.

getGridColor

public Color getGridColor()
Get the facet grid line color.


setGridColor

public void setGridColor(Color gridColor)
Set the facet grid line color.


setVGraph

public void setVGraph(VGraph vgraph)
Set the associated VGraph.

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

clone

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

Specified by:
clone in interface inetsoft.graph.internal.ICoordinate
Overrides:
clone in class 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.

getDepth

public double getDepth()
Get the depth for 3D effect coord.


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.