congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RectangleInsets.createOutsetRectangle
Code IndexAdd Tabnine to your IDE (free)

How to use
createOutsetRectangle
method
in
org.jfree.ui.RectangleInsets

Best Java code snippets using org.jfree.ui.RectangleInsets.createOutsetRectangle (Showing top 6 results out of 315)

origin: jfree/jcommon

/**
 * Creates an outset rectangle.
 * 
 * @param base  the base rectangle (<code>null</code> not permitted).
 * 
 * @return An outset rectangle.
 */
public Rectangle2D createOutsetRectangle(final Rectangle2D base) {
  return createOutsetRectangle(base, true, true);
}
 
origin: org.jfree/jcommon

/**
 * Creates an outset rectangle.
 * 
 * @param base  the base rectangle (<code>null</code> not permitted).
 * 
 * @return An outset rectangle.
 */
public Rectangle2D createOutsetRectangle(final Rectangle2D base) {
  return createOutsetRectangle(base, true, true);
}
 
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates an outset rectangle.
 * 
 * @param base  the base rectangle (<code>null</code> not permitted).
 * 
 * @return An outset rectangle.
 */
public Rectangle2D createOutsetRectangle(final Rectangle2D base) {
  return createOutsetRectangle(base, true, true);
}
 
origin: org.codehaus.jtstand/jtstand-chart

Rectangle2D fb = this.insets.createOutsetRectangle(bounds);
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a rectangle that encloses the axis label.  This is typically
 * used for layout purposes (it gives the maximum dimensions of the label).
 *
 * @param g2  the graphics device.
 * @param edge  the edge of the plot area along which the axis is measuring.
 *
 * @return The enclosing rectangle.
 */
protected Rectangle2D getLabelEnclosure(Graphics2D g2, RectangleEdge edge) {
  Rectangle2D result = new Rectangle2D.Double();
  String axisLabel = getLabel();
  if (axisLabel != null && !axisLabel.equals("")) {
    FontMetrics fm = g2.getFontMetrics(getLabelFont());
    Rectangle2D bounds = TextUtilities.getTextBounds(axisLabel, g2, fm);
    RectangleInsets insets = getLabelInsets();
    bounds = insets.createOutsetRectangle(bounds);
    double angle = getLabelAngle();
    if (edge == RectangleEdge.LEFT || edge == RectangleEdge.RIGHT) {
      angle = angle - Math.PI / 2.0;
    }
    double x = bounds.getCenterX();
    double y = bounds.getCenterY();
    AffineTransform transformer
      = AffineTransform.getRotateInstance(angle, x, y);
    Shape labelBounds = transformer.createTransformedShape(bounds);
    result = labelBounds.getBounds2D();
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

FontMetrics fm = g2.getFontMetrics();
Rectangle2D bounds = TextUtilities.getTextBounds(label, g2, fm);
Rectangle2D out = this.labelPadding.createOutsetRectangle(
    bounds);
Shape bg = ShapeUtilities.createTranslatedShape(out,
org.jfree.uiRectangleInsetscreateOutsetRectangle

Javadoc

Creates an outset rectangle.

Popular methods of RectangleInsets

  • <init>
    Creates a new instance.
  • calculateBottomInset
    Returns the bottom margin.
  • calculateBottomOutset
    Returns the bottom margin.
  • calculateLeftInset
    Returns the left margin.
  • calculateLeftOutset
    Returns the left margin.
  • calculateRightInset
    Returns the right margin.
  • calculateRightOutset
    Returns the right margin.
  • calculateTopInset
    Returns the top margin.
  • calculateTopOutset
    Returns the top margin.
  • createInsetRectangle
    Creates an 'inset' rectangle.
  • extendHeight
    Extends the given height to allow for the insets.
  • extendWidth
    Extends the given width to allow for the insets.
  • extendHeight,
  • extendWidth,
  • hashCode,
  • getBottom,
  • getTop,
  • trim,
  • createAdjustedRectangle,
  • equals,
  • getLeft

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JOptionPane (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now