|
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
public abstract class Coordinate
A coordinate defines the dimensional space for rendering graph elements. It converts a logical graph definition to physical drawing elements.
| 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 | |
|---|---|
Coordinate()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Make a copy of this object. |
abstract 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. |
abstract void |
fit(double x,
double y,
double w,
double h)
Set the screen transformation to fit the graph to the coord bounds. |
AffineTransform |
getCoordTransform()
Get the transformation on the coordinate positions. |
DataSet |
getDataSet()
Get data set. |
abstract 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. |
Coordinate |
getParentCoordinate()
Get the parent coordinate if this coordinate is nested in a facet. |
PlotSpec |
getPlotSpec()
Get the plot specification. |
abstract Point2D |
getPosition(double[] tuple)
Map a tuple (from logic coordinate space) to the chart coordinate space. |
protected AffineTransform |
getScaledCoordTransform()
Get coord transform for the coord bounds. |
protected AffineTransform |
getScaledCoordTransform(double x,
double y,
double w,
double h)
Get coord transform for the specified graph area. |
double |
getValue(double[] tuple,
int idx)
Get the specified dimension value for this coordinate. |
VGraph |
getVGraph()
Get associated VGraph. |
void |
init(DataSet dset)
Initialize this coordinate for the specified chart data set. |
protected void |
layoutText(VGraph vgraph,
boolean resolve)
Layout the text labels. |
void |
reflect(boolean vertical)
Transform the coordinate so the plot is flipped vertically. |
void |
rotate(double degree)
Rotate the plot counter-clock wise. |
void |
setCoordTransform(AffineTransform ctrans)
Set the transformation on the coordinate positions. |
void |
setDataSet(DataSet dset)
Set data set. |
void |
setParentCoordinate(Coordinate pcoord)
Set the parent coordinate if this coordinate is nested in a facet. |
void |
setPlotSpec(PlotSpec spec)
Set the plot specification. |
void |
setVGraph(VGraph vgraph)
Set associated VGraph. |
void |
transform(VContainer vc)
Transform the visual objects in the container to this coordinate space. |
Object |
transformShape(Object geom)
Transform a shape or point to this coordinate space. |
void |
transpose()
Transpose the coordinate (flip along northest-southwest diagonal line). |
| Methods inherited from class inetsoft.graph.coord.AbstractCoord |
|---|
getAxes, 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, getDimCount, getScales, getUnitMinHeight, getUnitMinWidth, getUnitPreferredHeight, getUnitPreferredWidth, isAxisLabelVisible, isAxisTickVisible, setAxisLabelVisible, setAxisSize, setAxisTickVisible |
| Constructor Detail |
|---|
public Coordinate()
| Method Detail |
|---|
public abstract Point2D getPosition(double[] tuple)
tuple - the tuple in logic space (scaled values).
public abstract double getIntervalSize(double interval)
interval - interval value.
public abstract void createAxis(VGraph vgraph)
vgraph - visual graph to create axis.public AffineTransform getCoordTransform()
public void setCoordTransform(AffineTransform ctrans)
public void reflect(boolean vertical)
vertical - true to reflect on vertical axis.public void rotate(double degree)
public void transpose()
public void transform(VContainer vc)
public Object transformShape(Object geom)
geom - a shape or a point to transform.
public double getValue(double[] tuple,
int idx)
tuple - the tuple of the graph element.idx - the dimension index to retrieve value.public void setPlotSpec(PlotSpec spec)
public PlotSpec getPlotSpec()
public double getMaxWidth()
public double getMaxHeight()
public void init(DataSet dset)
public abstract void fit(double x,
double y,
double w,
double h)
protected void layoutText(VGraph vgraph,
boolean resolve)
resolve - true to resolve overlapping.public Coordinate getParentCoordinate()
public void setParentCoordinate(Coordinate pcoord)
public void setVGraph(VGraph vgraph)
setVGraph in interface inetsoft.graph.internal.ICoordinatepublic VGraph getVGraph()
getVGraph in interface inetsoft.graph.internal.ICoordinatepublic DataSet getDataSet()
public void setDataSet(DataSet dset)
protected AffineTransform getScaledCoordTransform()
protected AffineTransform getScaledCoordTransform(double x,
double y,
double w,
double h)
x - the x position of the origin for scaling.y - the y position of the origin for scaling.w - the width of the output.h - the height of the output.public Object clone()
clone in interface inetsoft.graph.internal.ICoordinateclone in class AbstractCoordpublic boolean equalsContent(Object obj)
|
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 | ||||||||