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

How to use
trimMargin
method
in
org.jfree.chart.title.ShortTextTitle

Best Java code snippets using org.jfree.chart.title.ShortTextTitle.trimMargin (Showing top 2 results out of 315)

origin: jfree/jfreechart

/**
 * Draws the title using the current font and paint.
 *
 * @param g2  the graphics target.
 * @param area  the title area.
 * @param params  optional parameters (ignored here).
 *
 * @return {@code null}.
 */
@Override
public Object draw(Graphics2D g2, Rectangle2D area, Object params) {
  if (area.isEmpty()) {
    return null;
  }
  area = trimMargin(area);
  drawBorder(g2, area);
  area = trimBorder(area);
  area = trimPadding(area);
  g2.setFont(getFont());
  g2.setPaint(getPaint());
  TextUtils.drawAlignedString(getText(), g2, (float) area.getMinX(),
      (float) area.getMinY(), TextAnchor.TOP_LEFT);
  return null;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Draws the title using the current font and paint.
 *
 * @param g2  the graphics target.
 * @param area  the title area.
 * @param params  optional parameters (ignored here).
 *
 * @return <code>null</code>.
 */
public Object draw(Graphics2D g2, Rectangle2D area, Object params) {
  if (area.isEmpty()) {
    return null;
  }
  area = trimMargin(area);
  drawBorder(g2, area);
  area = trimBorder(area);
  area = trimPadding(area);
  g2.setFont(getFont());
  g2.setPaint(getPaint());
  TextUtilities.drawAlignedString(getText(), g2, (float) area.getMinX(),
      (float) area.getMinY(), TextAnchor.TOP_LEFT);
  return null;
}
org.jfree.chart.titleShortTextTitletrimMargin

Popular methods of ShortTextTitle

  • arrangeFN
    Arranges the content for this title assuming a fixed width and no bounds on the height, and returns
  • arrangeNN
    Arranges the content for this title assuming no bounds on the width or the height, and returns the r
  • arrangeRN
    Arranges the content for this title assuming a range constraint for the width and no bounds on the h
  • arrangeRR
    Returns the content size for the title.
  • calculateTotalHeight
  • calculateTotalWidth
  • drawBorder
  • getFont
  • getPaint
  • getText
  • setText
  • toContentConstraint
  • setText,
  • toContentConstraint,
  • trimBorder,
  • trimPadding,
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm 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