Tabnine Logo
ShortTextTitle.getPaint
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.jfree.chart.title.ShortTextTitle.getPaint (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.titleShortTextTitlegetPaint

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
  • getText
  • setText
  • toContentConstraint
  • trimBorder
  • toContentConstraint,
  • trimBorder,
  • trimMargin,
  • trimPadding,
  • <init>

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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