/** * Get axis label. */ public String[] getAxisLabel() { String[] array = new String[axis.length]; for (int i = 0; i < array.length; i++) { array[i] = axis[i].getAxisLabel(); } return array; }
/** * Get axis label. */ public String getAxisLabel(int i) { return axis[i].getAxisLabel(); }
/** * Returns the labels/legends of axes. */ public String[] getAxisLabels() { String[] labels = new String[base.dimension]; for (int i = 0; i < base.dimension; i++) { labels[i] = baseGrid.getAxis(i).getAxisLabel(); } return labels; }
/** * Returns the label/legend of an axis. */ public String getAxisLabel(int axis) { return baseGrid.getAxis(axis).getAxisLabel(); }
/** * Set the base coordinate space. */ public Axis setBase(Base base) { this.base = base; if (getAxisLabel() != null) { setAxisLabel(getAxisLabel()); } init(); return this; }
{"Title Font", titleFont}, {"Title Color", titleColor}, {"X Axis Title", getAxis(0).getAxisLabel()}, {"X Axis Range", new double[]{base.getLowerBounds()[0], base.getUpperBounds()[0]}}, {"Y Axis Title", getAxis(1).getAxisLabel()}, {"Y Axis Range", new double[]{base.getLowerBounds()[1], base.getUpperBounds()[1]}} }; {"Title Font", titleFont}, {"Title Color", titleColor}, {"X Axis Title", getAxis(0).getAxisLabel()}, {"X Axis Range", new double[]{base.getLowerBounds()[0], base.getUpperBounds()[0]}}, {"Y Axis Title", getAxis(1).getAxisLabel()}, {"Y Axis Range", new double[]{base.getLowerBounds()[1], base.getUpperBounds()[1]}}, {"Z Axis Title", getAxis(2).getAxisLabel()}, {"Z Axis Range", new double[]{base.getLowerBounds()[2], base.getUpperBounds()[2]}} };