com.mizar.geometry
Interface OneCell

All Known Implementing Classes:
Arc, Line, OrthoPolygon, OrthoPolyline, Polygon, Polyline, Rectangle, Square

public interface OneCell


Method Summary
 void changeDimensionality(int dimensions)
          Converts the geometry entity to a different dimensionality
 int getDimensions()
           
 Point getEndPoint()
           
 double[] getFirstPoint()
           
 double[] getLastPoint()
           
 double getLength()
           
 Point getStartPoint()
           
 void setFirstPoint(double[] point)
           
 void setLastPoint(double[] point)
           
 

Method Detail

getFirstPoint

double[] getFirstPoint()
                       throws GeometryException
Throws:
GeometryException

getLastPoint

double[] getLastPoint()
                      throws GeometryException
Throws:
GeometryException

setFirstPoint

void setFirstPoint(double[] point)
                   throws GeometryException
Throws:
GeometryException

setLastPoint

void setLastPoint(double[] point)
                  throws GeometryException
Throws:
GeometryException

getLength

double getLength()
                 throws GeometryException
Throws:
GeometryException

getStartPoint

Point getStartPoint()
                    throws GeometryException
Throws:
GeometryException

getEndPoint

Point getEndPoint()
                  throws GeometryException
Throws:
GeometryException

getDimensions

int getDimensions()

changeDimensionality

void changeDimensionality(int dimensions)
                          throws GeometryException
Converts the geometry entity to a different dimensionality

Parameters:
dimensions - new dimension number if dimensions is less than current dimensionality then excess points are thrown away if dimensions is greater than current dimensionality then points are added as needed and set to 0 The function has no effect if dimensions = dimensionality
Throws:
GeometryException