private void setBreadth(NodeItem n, NodeItem p, double b) { switch ( m_orientation ) { case Constants.ORIENT_LEFT_RIGHT: case Constants.ORIENT_RIGHT_LEFT: setY(n, p, m_ay + b); break; case Constants.ORIENT_TOP_BOTTOM: case Constants.ORIENT_BOTTOM_TOP: setX(n, p, m_ax + b); break; default: throw new IllegalStateException(); } }
private void setDepth(NodeItem n, NodeItem p, double d) { switch ( m_orientation ) { case Constants.ORIENT_LEFT_RIGHT: setX(n, p, m_ax + d); break; case Constants.ORIENT_RIGHT_LEFT: setX(n, p, m_ax - d); break; case Constants.ORIENT_TOP_BOTTOM: setY(n, p, m_ay + d); break; case Constants.ORIENT_BOTTOM_TOP: setY(n, p, m_ay - d); break; default: throw new IllegalStateException(); } }