|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.coord.AbstractCoord
inetsoft.graph.coord.Coordinate
inetsoft.graph.coord.PolarCoord
public class PolarCoord
A polar coordinate transforms the visual objects and their shapes in a circular arrangement around the center of the coordinate.
| Field Summary | |
|---|---|
static int |
PLUS
This causes the mapped shapes to start from the outer circumference of a circle. |
static int |
RHO
This causes the Y position being mapped to the radius. |
static int |
THETA
This causes the Y position being mapped to the theta (angle). |
static int |
THETA_RHO
This maps X to theta and Y to r. |
| 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 | |
|---|---|
PolarCoord()
Default constructor. |
|
PolarCoord(Coordinate coord)
Create a polar coord that applies polar transformation to the embedded coord. |
|
PolarCoord(Scale yscale)
Create a polar (circular) coordinate. |
|
PolarCoord(Scale xscale,
Scale yscale)
Create a polar (circular) coordinate. |
|
| Method Summary | |
|---|---|
Object |
clone()
Make a copy of this object. |
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 coord bounds. |
inetsoft.graph.guide.axis.Axis[] |
getAxes(boolean recursive)
Get all axes in this coordinate. |
Coordinate |
getCoordinate()
Get the coordinate to be transformed by this polar coord. |
int |
getDimCount()
Get the number of dimensions in this coordinate. |
double |
getIntervalSize(double interval)
Get the interval size in this coordinate. |
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. |
double |
getRadius()
Get polar radius. |
Scale[] |
getScales()
Get the scales used in the coordinate. |
int |
getType()
Get the polar transformation type. |
void |
init(DataSet dset)
Initialize this coordinate for the specified chart data set. |
void |
reflect(boolean vertical)
Transform the coordinate so the plot is flipped vertically. |
void |
rotate(double degree)
Rotate the plot counter-clock wise. |
void |
setCoordinate(Coordinate coord)
Set the coordinate to be transformed by this polar coord. |
void |
setType(int type)
Set the polar transformation type. |
Object |
transformShape(Object geom)
Transform a shape or point to this coordinate space. |
| Methods inherited from class inetsoft.graph.coord.Coordinate |
|---|
getCoordTransform, getDataSet, getParentCoordinate, getPlotSpec, getScaledCoordTransform, getScaledCoordTransform, getValue, getVGraph, layoutText, setCoordTransform, setDataSet, setParentCoordinate, setPlotSpec, setVGraph, 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 |
| Field Detail |
|---|
public static final int THETA
public static final int RHO
public static final int PLUS
public static final int THETA_RHO
| Constructor Detail |
|---|
public PolarCoord()
public PolarCoord(Scale yscale)
public PolarCoord(Scale xscale,
Scale yscale)
public PolarCoord(Coordinate coord)
| Method Detail |
|---|
public void setCoordinate(Coordinate coord)
public Coordinate getCoordinate()
public void setType(int type)
type - one of the constants defined in PolarCoord: THETA, THETA_RHO,
RHO, PLUS, RHO_PLUS.public int getType()
public void rotate(double degree)
rotate in class Coordinatedegree - angle in degrees.public void reflect(boolean vertical)
reflect in class Coordinatevertical - true to reflect on vertical axis.public Object transformShape(Object geom)
transformShape in class Coordinategeom - a shape or a point to transform.
public void createAxis(VGraph vgraph)
createAxis in class Coordinatevgraph - visual graph to create axis.
public void fit(double x,
double y,
double w,
double h)
fit in class Coordinatepublic void init(DataSet dset)
init in class Coordinatepublic Point2D getPosition(double[] tuple)
getPosition in class Coordinatetuple - the tuple in logic space (scaled values).
public double getIntervalSize(double interval)
getIntervalSize in class Coordinateinterval - interval value.
public double getMaxWidth()
getMaxWidth in class Coordinatepublic double getMaxHeight()
getMaxHeight in class Coordinatepublic int getDimCount()
public Scale[] getScales()
public inetsoft.graph.guide.axis.Axis[] getAxes(boolean recursive)
getAxes in class AbstractCoordrecursive - true to include axes in nested coordinates.public Object clone()
clone in interface inetsoft.graph.internal.ICoordinateclone in class Coordinatepublic double getRadius()
public boolean equalsContent(Object obj)
equalsContent in class Coordinate
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||