| java.lang.Object org.jfree.chart.axis.Axis org.jfree.chart.axis.CategoryAxis org.jfree.chart.axis.CategoryAxis3D
Method Summary | |
public Object | clone() Returns a clone of the axis. | public AxisState | draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) Draws the axis on a Java 2D graphics device (such as the screen or a
printer).
Parameters: g2 - the graphics device (null not permitted). Parameters: cursor - the cursor location. Parameters: plotArea - the area within which the axis should be drawn (null not permitted). Parameters: dataArea - the area within which the plot is being drawn (null not permitted). Parameters: edge - the location of the axis (null not permitted). Parameters: plotState - collects information about the plot (null permitted). | public double | getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge) Returns the Java 2D coordinate for a category.
Parameters: anchor - the anchor point. Parameters: category - the category index. Parameters: categoryCount - the category count. Parameters: area - the data area. Parameters: edge - the location of the axis. |
CategoryAxis3D | public CategoryAxis3D()(Code) | | Creates a new axis.
|
CategoryAxis3D | public CategoryAxis3D(String label)(Code) | | Creates a new axis using default attribute values.
Parameters: label - the axis label (null permitted). |
draw | public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code) | | Draws the axis on a Java 2D graphics device (such as the screen or a
printer).
Parameters: g2 - the graphics device (null not permitted). Parameters: cursor - the cursor location. Parameters: plotArea - the area within which the axis should be drawn (null not permitted). Parameters: dataArea - the area within which the plot is being drawn (null not permitted). Parameters: edge - the location of the axis (null not permitted). Parameters: plotState - collects information about the plot (null permitted). The axis state (never null ). |
getCategoryJava2DCoordinate | public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code) | | Returns the Java 2D coordinate for a category.
Parameters: anchor - the anchor point. Parameters: category - the category index. Parameters: categoryCount - the category count. Parameters: area - the data area. Parameters: edge - the location of the axis. The coordinate. |
Fields inherited from org.jfree.chart.axis.CategoryAxis | final public static double DEFAULT_AXIS_MARGIN(Code)(Java Doc) final public static double DEFAULT_CATEGORY_MARGIN(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.axis.CategoryAxis | public void addCategoryLabelToolTip(Comparable category, String tooltip)(Code)(Java Doc) protected double calculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) protected double calculateCategorySize(int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) protected double calculateTextBlockHeight(TextBlock block, CategoryLabelPosition position, Graphics2D g2)(Code)(Java Doc) protected double calculateTextBlockWidth(TextBlock block, CategoryLabelPosition position, Graphics2D g2)(Code)(Java Doc) public void clearCategoryLabelToolTips()(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void configure()(Code)(Java Doc) protected TextBlock createLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)(Code)(Java Doc) public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc) protected AxisState drawCategoryLabels(Graphics2D g2, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)(Code)(Java Doc) protected AxisState drawCategoryLabels(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public double getCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public int getCategoryLabelPositionOffset()(Code)(Java Doc) public CategoryLabelPositions getCategoryLabelPositions()(Code)(Java Doc) public String getCategoryLabelToolTip(Comparable category)(Code)(Java Doc) public double getCategoryMargin()(Code)(Java Doc) public double getCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public double getCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)(Code)(Java Doc) public double getLowerMargin()(Code)(Java Doc) public int getMaximumCategoryLabelLines()(Code)(Java Doc) public float getMaximumCategoryLabelWidthRatio()(Code)(Java Doc) public Font getTickLabelFont(Comparable category)(Code)(Java Doc) public Paint getTickLabelPaint(Comparable category)(Code)(Java Doc) public double getUpperMargin()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void removeCategoryLabelToolTip(Comparable category)(Code)(Java Doc) public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc) public void setCategoryLabelPositionOffset(int offset)(Code)(Java Doc) public void setCategoryLabelPositions(CategoryLabelPositions positions)(Code)(Java Doc) public void setCategoryMargin(double margin)(Code)(Java Doc) public void setLowerMargin(double margin)(Code)(Java Doc) public void setMaximumCategoryLabelLines(int lines)(Code)(Java Doc) public void setMaximumCategoryLabelWidthRatio(float ratio)(Code)(Java Doc) public void setTickLabelFont(Comparable category, Font font)(Code)(Java Doc) public void setTickLabelPaint(Comparable category, Paint paint)(Code)(Java Doc) public void setUpperMargin(double margin)(Code)(Java Doc)
|
Methods inherited from org.jfree.chart.axis.Axis | public void addChangeListener(AxisChangeListener listener)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) abstract public void configure()(Code)(Java Doc) abstract public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)(Code)(Java Doc) protected void drawAxisLine(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) protected AxisState drawLabel(String label, Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public Paint getAxisLinePaint()(Code)(Java Doc) public Stroke getAxisLineStroke()(Code)(Java Doc) public double getFixedDimension()(Code)(Java Doc) public String getLabel()(Code)(Java Doc) public double getLabelAngle()(Code)(Java Doc) protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge)(Code)(Java Doc) public Font getLabelFont()(Code)(Java Doc) public RectangleInsets getLabelInsets()(Code)(Java Doc) public Paint getLabelPaint()(Code)(Java Doc) public Plot getPlot()(Code)(Java Doc) public Font getTickLabelFont()(Code)(Java Doc) public RectangleInsets getTickLabelInsets()(Code)(Java Doc) public Paint getTickLabelPaint()(Code)(Java Doc) public float getTickMarkInsideLength()(Code)(Java Doc) public float getTickMarkOutsideLength()(Code)(Java Doc) public Paint getTickMarkPaint()(Code)(Java Doc) public Stroke getTickMarkStroke()(Code)(Java Doc) public boolean hasListener(EventListener listener)(Code)(Java Doc) public boolean isAxisLineVisible()(Code)(Java Doc) public boolean isTickLabelsVisible()(Code)(Java Doc) public boolean isTickMarksVisible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected void notifyListeners(AxisChangeEvent event)(Code)(Java Doc) abstract public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)(Code)(Java Doc) public void removeChangeListener(AxisChangeListener listener)(Code)(Java Doc) abstract public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)(Code)(Java Doc) public void setAxisLinePaint(Paint paint)(Code)(Java Doc) public void setAxisLineStroke(Stroke stroke)(Code)(Java Doc) public void setAxisLineVisible(boolean visible)(Code)(Java Doc) public void setFixedDimension(double dimension)(Code)(Java Doc) public void setLabel(String label)(Code)(Java Doc) public void setLabelAngle(double angle)(Code)(Java Doc) public void setLabelFont(Font font)(Code)(Java Doc) public void setLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setLabelPaint(Paint paint)(Code)(Java Doc) public void setPlot(Plot plot)(Code)(Java Doc) public void setTickLabelFont(Font font)(Code)(Java Doc) public void setTickLabelInsets(RectangleInsets insets)(Code)(Java Doc) public void setTickLabelPaint(Paint paint)(Code)(Java Doc) public void setTickLabelsVisible(boolean flag)(Code)(Java Doc) public void setTickMarkInsideLength(float length)(Code)(Java Doc) public void setTickMarkOutsideLength(float length)(Code)(Java Doc) public void setTickMarkPaint(Paint paint)(Code)(Java Doc) public void setTickMarkStroke(Stroke stroke)(Code)(Java Doc) public void setTickMarksVisible(boolean flag)(Code)(Java Doc) public void setVisible(boolean flag)(Code)(Java Doc)
|
|
|