Tabnine Logo
CTNonVisualDrawingProps
Code IndexAdd Tabnine to your IDE (free)

How to use
CTNonVisualDrawingProps
in
org.openxmlformats.schemas.drawingml.x2006.main

Best Java code snippets using org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps (Showing top 20 results out of 315)

origin: org.apache.poi/poi-ooxml

CTPictureNonVisual nvpr = pic.addNewNvPicPr();
CTNonVisualDrawingProps nvProps = nvpr.addNewCNvPr();
nvProps.setId(1);
nvProps.setName("Picture 1");
nvProps.setDescr("Picture");
CTNonVisualPictureProperties nvPicProps = nvpr.addNewCNvPicPr();
nvPicProps.addNewPicLocks().setNoChangeAspect(true);
origin: org.apache.poi/poi-ooxml

@Override
public XSLFHyperlink getHyperlink() {
  CTNonVisualDrawingProps cNvPr = getCNvPr();
  if (!cNvPr.isSetHlinkClick()) {
    return null;
  }
  return new XSLFHyperlink(cNvPr.getHlinkClick(), getSheet());
}

origin: org.apache.poi/poi-ooxml

public XWPFPicture(CTPicture ctPic, XWPFRun run) {
  this.run = run;
  this.ctPic = ctPic;
  description = ctPic.getNvPicPr().getCNvPr().getDescr();
}
origin: org.apache.poi/poi-ooxml

/**
 * @param shapeId 1-based shapeId
 */
static CTGroupShape prototype(int shapeId) {
  CTGroupShape ct = CTGroupShape.Factory.newInstance();
  CTGroupShapeNonVisual nvSpPr = ct.addNewNvGrpSpPr();
  CTNonVisualDrawingProps cnv = nvSpPr.addNewCNvPr();
  cnv.setName("Group " + shapeId);
  cnv.setId(shapeId);
  nvSpPr.addNewCNvGrpSpPr();
  nvSpPr.addNewNvPr();
  ct.addNewGrpSpPr();
  return ct;
}
origin: org.apache.poi/poi-ooxml

nvp.setId(1);
nvp.setName("Shape 1");
CTOfficeArtExtensionList extLst = nvp.addNewExtLst();
origin: org.apache.poi/poi-ooxml

/**
 * Sets the frame id.
 */
protected void setId(long id) {
  graphicFrame.getNvGraphicFramePr().getCNvPr().setId(id);
}
origin: org.apache.poi/poi-ooxml

cNvPr.setId(shapeId);
cNvPr.setName("Object " + shapeId);
XmlCursor extCur = cNvPr.getExtLst().getExtArray(0).newCursor();
extCur.toFirstChild();
extCur.setAttributeText(new QName("spid"), "_x0000_s" + shapeId);
origin: org.apache.poi/poi-ooxml

/**
 * Sets the frame name.
 */
public void setName(String name) {
  getNonVisualProperties().setName(name);
}
origin: org.apache.poi/poi-ooxml

/**
 * Returns the frame name.
 * @return name of the frame
 */
public String getName() {
  return getNonVisualProperties().getName();
}
origin: org.apache.poi/poi-ooxml

@Override
public int getShapeId() {
  return (int)getCNvPr().getId();
}
origin: apache/tika

private void extractHyperLinksFromShape(CTShape ctShape, XHTMLContentHandler xhtml) throws SAXException {
  if (ctShape == null)
    return;
  CTShapeNonVisual nvSpPR = ctShape.getNvSpPr();
  if (nvSpPR == null)
    return;
  CTNonVisualDrawingProps cNvPr = nvSpPR.getCNvPr();
  if (cNvPr == null)
    return;
  CTHyperlink ctHyperlink = cNvPr.getHlinkClick();
  if (ctHyperlink == null)
    return;
  String url = drawingHyperlinks.get(ctHyperlink.getId());
  if (url != null) {
    xhtml.startElement("a", "href", url);
    xhtml.characters(url);
    xhtml.endElement("a");
  }
  CTHyperlink ctHoverHyperlink = cNvPr.getHlinkHover();
  if (ctHoverHyperlink == null)
    return;
  url = drawingHyperlinks.get(ctHoverHyperlink.getId());
  if (url != null) {
    xhtml.startElement("a", "href", url);
    xhtml.characters(url);
    xhtml.endElement("a");
  }
}
origin: org.apache.poi/poi-ooxml

/**
 * @param shapeId
 *            1-based shapeId
 */
static CTShape prototype(int shapeId) {
  CTShape ct = CTShape.Factory.newInstance();
  CTShapeNonVisual nvSpPr = ct.addNewNvSpPr();
  CTNonVisualDrawingProps cnv = nvSpPr.addNewCNvPr();
  cnv.setName("AutoShape " + shapeId);
  cnv.setId(shapeId);
  nvSpPr.addNewCNvSpPr();
  nvSpPr.addNewNvPr();
  CTShapeProperties spPr = ct.addNewSpPr();
  CTPresetGeometry2D prst = spPr.addNewPrstGeom();
  prst.setPrst(STShapeType.RECT);
  prst.addNewAvLst();
  return ct;
}
origin: org.apache.poi/poi-ooxml

/**
 * Constructs a textbox under the drawing.
 *
 * @param anchor
 *            the client anchor describes how this group is attached to the
 *            sheet.
 * @return the newly created textbox.
 */
public XSSFTextBox createTextbox(XSSFClientAnchor anchor) {
  long shapeId = newShapeId();
  CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor);
  CTShape ctShape = ctAnchor.addNewSp();
  ctShape.set(XSSFSimpleShape.prototype());
  ctShape.getNvSpPr().getCNvPr().setId(shapeId);
  XSSFTextBox shape = new XSSFTextBox(this, ctShape);
  shape.anchor = anchor;
  return shape;
}
origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Sets the frame name.
 */
public void setName(String name) {
  getNonVisualProperties().setName(name);
}
origin: org.apache.poi/poi-ooxml

@Override
public String getShapeName(){
  return getCNvPr().getName();
}
origin: org.apache.poi/poi-ooxml

/**
 * Gets the frame id.
 */
public long getId() {
  return graphicFrame.getNvGraphicFramePr().getCNvPr().getId();
}
origin: org.apache.tika/tika-parsers

private void extractHyperLinksFromShape(CTShape ctShape, XHTMLContentHandler xhtml) throws SAXException {
  if (ctShape == null)
    return;
  CTShapeNonVisual nvSpPR = ctShape.getNvSpPr();
  if (nvSpPR == null)
    return;
  CTNonVisualDrawingProps cNvPr = nvSpPR.getCNvPr();
  if (cNvPr == null)
    return;
  CTHyperlink ctHyperlink = cNvPr.getHlinkClick();
  if (ctHyperlink == null)
    return;
  String url = drawingHyperlinks.get(ctHyperlink.getId());
  if (url != null) {
    xhtml.startElement("a", "href", url);
    xhtml.characters(url);
    xhtml.endElement("a");
  }
  CTHyperlink ctHoverHyperlink = cNvPr.getHlinkHover();
  if (ctHoverHyperlink == null)
    return;
  url = drawingHyperlinks.get(ctHoverHyperlink.getId());
  if (url != null) {
    xhtml.startElement("a", "href", url);
    xhtml.characters(url);
    xhtml.endElement("a");
  }
}
origin: org.apache.poi/poi-ooxml

docPr.setId(id);
docPr.setName("Drawing " + id);
docPr.setDescr(filename);
cNvPr.setId(0L);
cNvPr.setName("Picture " + id);
cNvPr.setDescr(filename);
origin: org.apache.poi/poi-ooxml

docPr.setId(id);
docPr.setName("chart " + id);
origin: org.apache.poi/poi-ooxml

/**
 * Creates a simple shape. This includes such shapes as lines, rectangles,
 * and ovals.
 *
 * @param anchor
 *            the client anchor describes how this group is attached to the
 *            sheet.
 * @return the newly created shape.
 */
public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor) {
  long shapeId = newShapeId();
  CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor);
  CTShape ctShape = ctAnchor.addNewSp();
  ctShape.set(XSSFSimpleShape.prototype());
  ctShape.getNvSpPr().getCNvPr().setId(shapeId);
  ctShape.getSpPr().setXfrm(createXfrm(anchor));
  XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape);
  shape.anchor = anchor;
  return shape;
}
org.openxmlformats.schemas.drawingml.x2006.mainCTNonVisualDrawingProps

Most used methods

  • setDescr
  • setId
  • setName
  • getHlinkClick
  • getDescr
  • getId
  • getName
  • addNewExtLst
  • addNewHlinkClick
  • getExtLst
  • getHlinkHover
  • isSetHlinkClick
  • getHlinkHover,
  • isSetHlinkClick

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 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