ChartCat 1.2

li.netcat.chart.util
Class DefaultLogicalPoint

java.lang.Object
  extended byli.netcat.chart.util.DefaultLogicalPoint
All Implemented Interfaces:
LogicalPoint

public class DefaultLogicalPoint
extends java.lang.Object
implements LogicalPoint

Default and immutable implementation of a Logic point.

Author:
Arthur Marxer

Constructor Summary
DefaultLogicalPoint(Part part)
          Constructs a new and immutable instance of a logic point with the given paramerers.
DefaultLogicalPoint(Part part, ChartModel model, int rowIndex, int columnIndex)
          Constructs a new and immutable instance of a logic point with the given paramerers.
DefaultLogicalPoint(Part part, ChartModel model, java.lang.String key)
          Constructs a new and immutable instance of a logic point with the given paramerers.
 
Method Summary
 ChartModel getChartModel()
          Returns the relevant chart model to which this logic point points to.
 int getColumnIndex()
          Returns the index of the column to which this logic point points to.
 java.lang.String getKey()
          Returns the key of the element to which this logic point points to.
 Part getPart()
          Returns the instance of the corresponting Part that produced this logic point.
 int getRowIndex()
          Returns the index of the row to which this logic point points to.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultLogicalPoint

public DefaultLogicalPoint(Part part)
Constructs a new and immutable instance of a logic point with the given paramerers.

Parameters:
part - The part that calculated this logic point.

DefaultLogicalPoint

public DefaultLogicalPoint(Part part,
                           ChartModel model,
                           int rowIndex,
                           int columnIndex)
Constructs a new and immutable instance of a logic point with the given paramerers.

Parameters:
part - The part that calculated this logic point.
model - The chart model that is referenced by this point.
rowIndex - The index of the corresponding row or -1;
columnIndex - The index of the corresponding column or -1;

DefaultLogicalPoint

public DefaultLogicalPoint(Part part,
                           ChartModel model,
                           java.lang.String key)
Constructs a new and immutable instance of a logic point with the given paramerers.

Parameters:
part - The part that calculated this logic point.
model - The chart model that is referenced by this point.
key - The key of the corresponding arbitrary value.
Method Detail

toString

public java.lang.String toString()

getPart

public Part getPart()
Description copied from interface: LogicalPoint
Returns the instance of the corresponting Part that produced this logic point.

Specified by:
getPart in interface LogicalPoint
Returns:
The instance of the Part that generated this logic point or null.

getChartModel

public ChartModel getChartModel()
Description copied from interface: LogicalPoint
Returns the relevant chart model to which this logic point points to.

Specified by:
getChartModel in interface LogicalPoint
Returns:
The relevant chart model. This parameter can also be null.

getRowIndex

public int getRowIndex()
Description copied from interface: LogicalPoint
Returns the index of the row to which this logic point points to.

Specified by:
getRowIndex in interface LogicalPoint
Returns:
The index of the row or negative if not defined.

getColumnIndex

public int getColumnIndex()
Description copied from interface: LogicalPoint
Returns the index of the column to which this logic point points to.

Specified by:
getColumnIndex in interface LogicalPoint
Returns:
The index of the column or negative if not defined.

getKey

public java.lang.String getKey()
Description copied from interface: LogicalPoint
Returns the key of the element to which this logic point points to. This property is set if this logic point points for example to the title.

Specified by:
getKey in interface LogicalPoint
Returns:
The key of the element.

ChartCat 1.2

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print