private void repaintAxis(TileAxis axis) { axis.repaint(); axis.updateAxisTics(); }
/** * Sets the rotation of tic labels in the vertical axis. * Tic labels for a rotated vertical axis are rotated 90 degrees * counter-clockwise. * @param rotated true if rotated; false, otherwise. */ public void setVerticalAxisRotated(boolean rotated) { _isRotated = rotated; if (updateAxisTics()) revalidate(); repaint(); }
/** * Sets the label for this axis. * @param label the label. */ public void setLabel(String label) { _label = label; if (updateAxisTics()) revalidate(); repaint(); }
/** * Sets the format for major tic annotation for this axis. * The default format is "%1.4G", which yields a minimum of 1 digit, * with up to 4 digits of precision. Any trailing zeros and decimal * point are removed from tic annotation. * @param format the format. */ public void setFormat(String format) { _format = format; if (updateAxisTics()) revalidate(); repaint(); }
/** * Sets the interval between major labeled tics for this axis. * The default tic interval is zero, in which case a readable tic * interval is computed automatically. This default is especially * useful when interactively zooming and scrolling. * @param interval the major labeled tic interval. */ public void setInterval(double interval) { _interval = interval; if (updateAxisTics()) revalidate(); repaint(); }
public void setFont(Font font) { super.setFont(font); if (updateAxisTics()) revalidate(); repaint(); }
public void setBounds(int x, int y, int width, int height) { super.setBounds(x,y,width,height); if (updateAxisTics()) revalidateLater(); // revalidating now will not work! repaint(); }
FontMetrics fm = getFontMetrics(getFont()); if (_ticLabelWidth==0) if (updateAxisTics())