Tabnine Logo
DrawSimpleShape.getHeadDecoration
Code IndexAdd Tabnine to your IDE (free)

How to use
getHeadDecoration
method
in
org.apache.poi.sl.draw.DrawSimpleShape

Best Java code snippets using org.apache.poi.sl.draw.DrawSimpleShape.getHeadDecoration (Showing top 2 results out of 315)

origin: org.apache.poi/poi

protected void drawDecoration(Graphics2D graphics, Paint line, BasicStroke stroke) {
  if(line == null) {
    return;
  }
  graphics.setPaint(line);
  List<Outline> lst = new ArrayList<>();
  LineDecoration deco = getShape().getLineDecoration();
  Outline head = getHeadDecoration(graphics, deco, stroke);
  if (head != null) {
    lst.add(head);
  }
  Outline tail = getTailDecoration(graphics, deco, stroke);
  if (tail != null) {
    lst.add(tail);
  }
  for(Outline o : lst){
    java.awt.Shape s = o.getOutline();
    Path p = o.getPath();
    graphics.setRenderingHint(Drawable.GRADIENT_SHAPE, s);
    if(p.isFilled()) {
      graphics.fill(s);
    }
    if(p.isStroked()) {
      graphics.draw(s);
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

protected void drawDecoration(Graphics2D graphics, Paint line, BasicStroke stroke) {
  if(line == null) {
    return;
  }
  graphics.setPaint(line);
  List<Outline> lst = new ArrayList<>();
  LineDecoration deco = getShape().getLineDecoration();
  Outline head = getHeadDecoration(graphics, deco, stroke);
  if (head != null) {
    lst.add(head);
  }
  Outline tail = getTailDecoration(graphics, deco, stroke);
  if (tail != null) {
    lst.add(tail);
  }
  for(Outline o : lst){
    java.awt.Shape s = o.getOutline();
    Path p = o.getPath();
    graphics.setRenderingHint(Drawable.GRADIENT_SHAPE, s);
    if(p.isFilled()) {
      graphics.fill(s);
    }
    if(p.isStroked()) {
      graphics.draw(s);
    }
  }
}
org.apache.poi.sl.drawDrawSimpleShapegetHeadDecoration

Popular methods of DrawSimpleShape

  • computeOutlines
  • drawContent
  • drawDecoration
  • drawShadow
  • getAnchor
  • getCustomGeometry
  • getShape
  • getStroke
  • getTailDecoration

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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