/** * Calculates the size (width or height, depending on the location of the * axis) of a category gap. * * @param categoryCount the number of categories. * @param area the area within which the categories will be drawn. * @param edge the axis location. * * @return The category gap width. */ protected double calculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge) { double result = 0.0; double available = 0.0; if ((edge == RectangleEdge.TOP) || (edge == RectangleEdge.BOTTOM)) { available = area.getWidth(); } else if ((edge == RectangleEdge.LEFT) || (edge == RectangleEdge.RIGHT)) { available = area.getHeight(); } if (categoryCount > 1) { result = available * getCategoryMargin() / (categoryCount - 1); } return result; }
/** * Calculates the size (width or height, depending on the location of the * axis) of a category gap. * * @param categoryCount the number of categories. * @param area the area within which the categories will be drawn. * @param edge the axis location. * * @return The category gap width. */ protected double calculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge) { double result = 0.0; double available = 0.0; if ((edge == RectangleEdge.TOP) || (edge == RectangleEdge.BOTTOM)) { available = area.getWidth(); } else if ((edge == RectangleEdge.LEFT) || (edge == RectangleEdge.RIGHT)) { available = area.getHeight(); } if (categoryCount > 1) { result = available * getCategoryMargin() / (categoryCount - 1); } return result; }
- getCategoryMargin()); result = result / categoryCount;
/** * Calculates the available space for each series. * * @param space the space along the entire axis (in Java2D units). * @param axis the category axis. * @param categories the number of categories. * @param series the number of series. * * @return The width of one series. */ protected double calculateSeriesWidth(double space, CategoryAxis axis, int categories, int series) { double factor = 1.0 - getItemMargin() - axis.getLowerMargin() - axis.getUpperMargin(); if (categories > 1) { factor = factor - axis.getCategoryMargin(); } return (space * factor) / (categories * series); }
/** * Calculates the available space for each series. * * @param space the space along the entire axis (in Java2D units). * @param axis the category axis. * @param categories the number of categories. * @param series the number of series. * * @return The width of one series. */ protected double calculateSeriesWidth(double space, CategoryAxis axis, int categories, int series) { double factor = 1.0 - getItemMargin() - axis.getLowerMargin() - axis.getUpperMargin(); if (categories > 1) { factor = factor - axis.getCategoryMargin(); } return (space * factor) / (categories * series); }
/** * Calculates the available space for each series. * * @param space the space along the entire axis (in Java2D units). * @param axis the category axis. * @param categories the number of categories. * @param series the number of series. * * @return The width of one series. */ protected double calculateSeriesWidth(double space, CategoryAxis axis, int categories, int series) { double factor = 1.0 - getItemMargin() - axis.getLowerMargin() - axis.getUpperMargin(); if (categories > 1) { factor = factor - axis.getCategoryMargin(); } return (space * factor) / (categories * series); }
/** * Calculates the available space for each series. * * @param space the space along the entire axis (in Java2D units). * @param axis the category axis. * @param categories the number of categories. * @param series the number of series. * * @return The width of one series. */ protected double calculateSeriesWidth(double space, CategoryAxis axis, int categories, int series) { double factor = 1.0 - getItemMargin() - axis.getLowerMargin() - axis.getUpperMargin(); if (categories > 1) { factor = factor - axis.getCategoryMargin(); } return (space * factor) / (categories * series); }
- getCategoryMargin()); result = result / categoryCount;
double categoryMargin = 0.0; if (columns > 1) { categoryMargin = xAxis.getCategoryMargin();
double categoryMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double categoryMargin = 0.0; if (columns > 1) { categoryMargin = xAxis.getCategoryMargin();
double categoryMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double categoryMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double itemMargin = 0.0; if (categories > 1) { categoryMargin = xAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();
double currentItemMargin = 0.0; if (columns > 1) { categoryMargin = domainAxis.getCategoryMargin();