moebiusViewer.shape
Class QuadMesh

java.lang.Object
  extended bymoebiusViewer.shape.AbstractShape
      extended bymoebiusViewer.shape.AbstractPointSet
          extended bymoebiusViewer.shape.QuadMesh
All Implemented Interfaces:
java.lang.Cloneable, MoebiusShape, java.io.Serializable

public class QuadMesh
extends AbstractPointSet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class moebiusViewer.shape.AbstractPointSet
aIm, aRe, bIm, bRe, consistent, defaultPointColor, labelPointsWithIndex, numOfPoints, pointColor
 
Fields inherited from class moebiusViewer.shape.AbstractShape
EPS, EPSSQR, propertyChangeSupport, toolList
 
Constructor Summary
QuadMesh()
           
QuadMesh(Complex[] coords)
           
QuadMesh(ComplexProjective1[] coords)
           
QuadMesh(double[] coords)
           
QuadMesh(int m, int n)
           
 
Method Summary
 void assignCoords(Complex[] coords)
          assign all complex coords at once
 void assignCoords(Complex[] coords, int m, int n)
           
 void assignCoords(ComplexProjective1[] coords)
          assign all coords at once
 void assignCoords(ComplexProjective1[] coords, int m, int n)
           
 void assignCoords(double[] coords)
          assign all euclidean coords at once
 void assignCoords(double[] coords, int m, int n)
           
 void assignSquareGrid(int n, int m)
           
protected  void checkConsistency()
          checks the consistency of the current data and stores the result in consistent
 void draw(MoebiusGraphics g)
           
 Complex[][] getCoords()
           
 Complex getCoords(int i, int j)
           
 void getCoords(int i, int j, Complex coords)
           
 java.awt.Color getDefaultPointColor()
           
 boolean getLabelPointsWithIndex()
           
 int getNumCols()
          Deprecated.  
 int getNumOfColumns()
          Get the value of numOfColumns.
 int getNumOfRows()
          Get the value of numOfRows.
 int getNumRows()
          Deprecated.  
 java.awt.Color[] getPointColor()
           
 java.awt.Color getPointColor(int i, int j)
           
 ComplexProjective1[][] getProjectiveCoords()
           
 ComplexProjective1 getProjectiveCoords(int i, int j)
           
 void getProjectiveCoords(int i, int j, ComplexProjective1 coords)
           
 double[] getX()
           
 double getX(int i, int j)
           
 double[] getXY()
           
 double[] getY()
           
 double getY(int i, int j)
           
 boolean isClosedInXDirection()
           
 boolean isClosedInYDirection()
           
 boolean isConsistent()
           
 boolean isDrawHorizontalLines()
           
 boolean isDrawPoints()
           
 boolean isDrawVerticalLines()
           
 boolean isLabelPointsWithIndex()
           
 void set(int i, int j, double x, double y)
          Deprecated.  
 void setClosedInXDirection(boolean xClosed)
           
 void setClosedInYDirection(boolean yClosed)
           
 void setCoords(Complex[][] coords)
           
 void setCoords(int i, int j, Complex z)
           
 void setDefaultPointColor(java.awt.Color color)
           
 void setDrawHorizontalLines(boolean b)
           
 void setDrawPoints(boolean b)
           
 void setDrawVerticalLines(boolean b)
           
 void setLabelPointsWithIndex(boolean aBoolean)
           
 void setNumCols(int v)
          Deprecated.  
 void setNumOfColumns(int v)
          Set the value of numOfColumns.
 void setNumOfRows(int v)
          Set the value of numOfRows.
 void setNumOfRowsAndColumns(int m, int n)
           
protected  void setNumOfRowsAndColumns(int m, int n, boolean doFirePropertyChange)
           
 void setNumRows(int v)
          Deprecated.  
 void setNumRowsAndNumCols(int newNumRows, int newNumCols)
          Deprecated.  
 void setPointColor(java.awt.Color[] pointColor)
           
 void setPointColor(int i, int j, java.awt.Color aPointColor)
           
 void setProjectiveCoords(ComplexProjective1[][] coords)
           
 void setProjectiveCoords(int i, int j, ComplexProjective1 z)
           
 void setProjectiveCoords(int i, int j, double x, double y)
          set euclidean Coords (x, y) at Index (i,j)
 void setProjectiveCoords(int i, int j, double aRe1, double aIm1, double bRe1, double bIm1)
           
 void setX(double[] x)
           
 void setX(int i, int j, double x)
           
 void setY(double[] y)
           
 void setY(int i, int j, double y)
           
 
Methods inherited from class moebiusViewer.shape.AbstractPointSet
aIm, aRe, bIm, bRe, drawPoints, getCoords, getCoords, getCoords, getCoordsAsArray1d, getNumOfPoints, getPointColor, getProjectiveCoords, getProjectiveCoords, getProjectiveCoords, getProjectiveCoordsAsArray1d, getX, getY, setColorOfAllPoints, setConsistent, setCoords, setCoords, setNumOfPoints, setNumOfPoints, setPointColor, setProjectiveCoords, setProjectiveCoords, setProjectiveCoords, setX, setY, updatePointColor
 
Methods inherited from class moebiusViewer.shape.AbstractShape
addPropertyChangeListener, clone, dontFirePropertyChange, equals, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, getTools, isDoFirePropertyChange, isPickable, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadMesh

public QuadMesh()

QuadMesh

public QuadMesh(int m,
                int n)

QuadMesh

public QuadMesh(double[] coords)

QuadMesh

public QuadMesh(Complex[] coords)

QuadMesh

public QuadMesh(ComplexProjective1[] coords)
Method Detail

isClosedInXDirection

public boolean isClosedInXDirection()

isClosedInYDirection

public boolean isClosedInYDirection()

setClosedInXDirection

public void setClosedInXDirection(boolean xClosed)

setClosedInYDirection

public void setClosedInYDirection(boolean yClosed)

isLabelPointsWithIndex

public boolean isLabelPointsWithIndex()
Overrides:
isLabelPointsWithIndex in class AbstractPointSet

getLabelPointsWithIndex

public boolean getLabelPointsWithIndex()
Overrides:
getLabelPointsWithIndex in class AbstractPointSet

setLabelPointsWithIndex

public void setLabelPointsWithIndex(boolean aBoolean)
Overrides:
setLabelPointsWithIndex in class AbstractPointSet

isConsistent

public boolean isConsistent()
Overrides:
isConsistent in class AbstractPointSet

getNumOfRows

public int getNumOfRows()
Get the value of numOfRows.

Returns:
Value of numRows.

getNumRows

public int getNumRows()
Deprecated.  


setNumOfRows

public void setNumOfRows(int v)
Set the value of numOfRows.

Parameters:
v - Value to assign to numOfRows.

setNumRows

public void setNumRows(int v)
Deprecated.  


getNumOfColumns

public int getNumOfColumns()
Get the value of numOfColumns.

Returns:
Value of numOfColumns.

getNumCols

public int getNumCols()
Deprecated.  


setNumOfColumns

public void setNumOfColumns(int v)
Set the value of numOfColumns.

Parameters:
v - Value to assign to numOfColumns.

setNumCols

public void setNumCols(int v)
Deprecated.  


setNumRowsAndNumCols

public void setNumRowsAndNumCols(int newNumRows,
                                 int newNumCols)
Deprecated.  


setNumOfRowsAndColumns

public void setNumOfRowsAndColumns(int m,
                                   int n)

setNumOfRowsAndColumns

protected void setNumOfRowsAndColumns(int m,
                                      int n,
                                      boolean doFirePropertyChange)

isDrawPoints

public boolean isDrawPoints()

setDrawPoints

public void setDrawPoints(boolean b)

isDrawVerticalLines

public boolean isDrawVerticalLines()

setDrawVerticalLines

public void setDrawVerticalLines(boolean b)

isDrawHorizontalLines

public boolean isDrawHorizontalLines()

setDrawHorizontalLines

public void setDrawHorizontalLines(boolean b)

setProjectiveCoords

public void setProjectiveCoords(int i,
                                int j,
                                double aRe1,
                                double aIm1,
                                double bRe1,
                                double bIm1)

setProjectiveCoords

public void setProjectiveCoords(int i,
                                int j,
                                ComplexProjective1 z)

getProjectiveCoords

public ComplexProjective1[][] getProjectiveCoords()

setProjectiveCoords

public void setProjectiveCoords(ComplexProjective1[][] coords)

getCoords

public Complex[][] getCoords()

setCoords

public void setCoords(Complex[][] coords)

assignCoords

public void assignCoords(ComplexProjective1[] coords)
assign all coords at once

Overrides:
assignCoords in class AbstractPointSet

assignCoords

public void assignCoords(ComplexProjective1[] coords,
                         int m,
                         int n)

getProjectiveCoords

public void getProjectiveCoords(int i,
                                int j,
                                ComplexProjective1 coords)

getCoords

public void getCoords(int i,
                      int j,
                      Complex coords)

getProjectiveCoords

public ComplexProjective1 getProjectiveCoords(int i,
                                              int j)

getCoords

public Complex getCoords(int i,
                         int j)

setCoords

public void setCoords(int i,
                      int j,
                      Complex z)

assignCoords

public void assignCoords(Complex[] coords)
assign all complex coords at once

Overrides:
assignCoords in class AbstractPointSet

assignCoords

public void assignCoords(Complex[] coords,
                         int m,
                         int n)

setProjectiveCoords

public void setProjectiveCoords(int i,
                                int j,
                                double x,
                                double y)
set euclidean Coords (x, y) at Index (i,j)


getX

public double getX(int i,
                   int j)

setX

public void setX(int i,
                 int j,
                 double x)

getX

public double[] getX()
Overrides:
getX in class AbstractPointSet

setX

public void setX(double[] x)
Overrides:
setX in class AbstractPointSet

getY

public double getY(int i,
                   int j)

setY

public void setY(int i,
                 int j,
                 double y)

getY

public double[] getY()
Overrides:
getY in class AbstractPointSet

setY

public void setY(double[] y)
Overrides:
setY in class AbstractPointSet

getXY

public double[] getXY()
Overrides:
getXY in class AbstractPointSet

assignCoords

public void assignCoords(double[] coords)
assign all euclidean coords at once

Overrides:
assignCoords in class AbstractPointSet

assignCoords

public void assignCoords(double[] coords,
                         int m,
                         int n)

set

public void set(int i,
                int j,
                double x,
                double y)
Deprecated.  


getPointColor

public java.awt.Color[] getPointColor()
Overrides:
getPointColor in class AbstractPointSet

setPointColor

public void setPointColor(java.awt.Color[] pointColor)
Overrides:
setPointColor in class AbstractPointSet

getPointColor

public java.awt.Color getPointColor(int i,
                                    int j)

setPointColor

public void setPointColor(int i,
                          int j,
                          java.awt.Color aPointColor)

getDefaultPointColor

public java.awt.Color getDefaultPointColor()
Overrides:
getDefaultPointColor in class AbstractPointSet

setDefaultPointColor

public void setDefaultPointColor(java.awt.Color color)
Overrides:
setDefaultPointColor in class AbstractPointSet

checkConsistency

protected void checkConsistency()
checks the consistency of the current data and stores the result in consistent


assignSquareGrid

public void assignSquareGrid(int n,
                             int m)

draw

public void draw(MoebiusGraphics g)
Specified by:
draw in interface MoebiusShape
Overrides:
draw in class AbstractPointSet