/** * Gets the value of x on the specified layer * @param layer the layer to obtain x for * @return the value of x on the specified layer */ public double getX(int layer) { if (isVertex()) { return x[0]; } else if (isEdge()) { return x[layer - minRank - 1]; } return 0.0; }
/** * Gets the value of x on the specified layer * @param layer the layer to obtain x for * @return the value of x on the specified layer */ public double getX(int layer) { if (isVertex()) { return x[0]; } else if (isEdge()) { return x[layer - minRank - 1]; } return 0.0; }
/** * Set the value of x for the specified layer * * @param layer * the layer relating to a specific entry into x[] * @param value * the x value for that layer */ public void setX(int layer, double value) { if (isVertex()) { x[0] = value; } else if (isEdge()) { x[layer - minRank - 1] = value; } }
/** * Set the value of y for the specified layer * * @param layer * the layer relating to a specific entry into y[] * @param value * the y value for that layer */ public void setY(int layer, double value) { if (isVertex()) { y[0] = value; } else if (isEdge()) { y[layer - minRank - 1] = value; } }
/** * Set the value of y for the specified layer * * @param layer * the layer relating to a specific entry into y[] * @param value * the y value for that layer */ public void setY(int layer, double value) { if (isVertex()) { y[0] = value; } else if (isEdge()) { y[layer - minRank - 1] = value; } }
/** * Set the value of x for the specified layer * * @param layer * the layer relating to a specific entry into x[] * @param value * the x value for that layer */ public void setX(int layer, double value) { if (isVertex()) { x[0] = value; } else if (isEdge()) { x[layer - minRank - 1] = value; } }
else if (cell.isEdge())
else if (cell.isEdge())
else if (cell.isEdge())
else if (cell.isEdge())