/** * Set axis labels. */ public BaseGrid setAxisLabel(int i, String axisLabel) { axis[i].setAxisLabel(axisLabel); return this; }
/** * Set axis labels. */ public BaseGrid setAxisLabel(String... axisLabels) { if (axisLabels.length != base.getDimension()) { throw new IllegalArgumentException("Axis label size don't match base dimension."); } for (int i = 0; i < axisLabels.length; i++) { axis[i].setAxisLabel(axisLabels[i]); } return this; }
/** * Constructor. */ public Axis(Base base, int index, String label) { this.base = base; this.index = index; setAxisLabel(label); init(); }
/** * Set the base coordinate space. */ public Axis setBase(Base base) { this.base = base; if (getAxisLabel() != null) { setAxisLabel(getAxisLabel()); } init(); return this; }
setTitleColor((Color) propertyTable.getValueAt(2, 1)); getAxis(0).setAxisLabel((String) propertyTable.getValueAt(3, 1)); double[] xbound = (double[]) propertyTable.getValueAt(4, 1); base.lowerBound[0] = xbound[0]; base.upperBound[0] = xbound[1]; getAxis(1).setAxisLabel((String) propertyTable.getValueAt(5, 1)); double[] ybound = (double[]) propertyTable.getValueAt(6, 1); base.lowerBound[1] = ybound[0]; getAxis(2).setAxisLabel((String) propertyTable.getValueAt(7, 1)); double[] zbound = (double[]) propertyTable.getValueAt(8, 1); base.lowerBound[2] = zbound[0];