Shape

Panoramica

Shape è una classe in Aspose.Slides FOSS per Java. Eredita da: GeometryShape, IShape, ISlideComponent.

Classe base astratta per forme su una diapositiva.

Questa classe fornisce 61 metodi per lavorare con gli oggetti Shape nei programmi Java. I metodi disponibili includono: GeometryShape, Shape, applyFrame, asIPresentationComponent, buildFrame, ensureSpPr, ensureXfrm, findPlaceholderXfrmInXml, findXfrmInElement, getAdjustments, getAlternativeText, getAlternativeTextTitle e 48 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Java dopo l’installazione del pacchetto Aspose.Slides FOSS per Java. Proprietà: adjustments, alternativeText, alternativeTextTitle, asISlideComponent, cNvPr, connectionSiteCount e 29 altre.

Proprietà

NomeTipoAccessoDescrizione
spPrElementLetturaRestituisce l’elemento {@code <p:spPr>} (o {@code <p:grpSpPr>}) per questa forma.
cNvPrElementLetturaRestituisce l’elemento {@code <p:cNvPr>} dalla forma XML.
placeholderInfoOptional<String[]>LetturaRestituisce le informazioni del segnaposto per questa forma, se è un segnaposto.
inheritedXfrmElementLetturaScorre la catena layout → master per trovare un {@code <a:xfrm>} ereditato per le forme segnaposto.
xfrmElementLetturaRestituisce l’elemento {@code <a:xfrm>} per questa forma.
rawFrameIShapeFrameLetturaOttiene il frame grezzo.
frameIShapeFrameLetturaOttiene il frame.
slideIBaseSlideLetturaOttiene la diapositiva.
presentationIPresentationLetturaOttiene la presentazione.
xdoubleLetturaOttiene l’x.
ydoubleLetturaOttiene il valore y.
widthdoubleLetturaOttiene la larghezza.
heightdoubleLetturaOttiene l’altezza.
rotationdoubleLetturaOttiene la rotazione.
shapeStyleIShapeStyleLetturaOttiene lo stile della forma.
shapeTypeShapeTypeLetturaRestituisce il tipo di forma.
fillFormatIFillFormatLetturaOttiene il formato di riempimento.
adjustmentsIAdjustValueCollectionLetturaOttiene le regolazioni.
textHolderbooleanLetturaOttiene il contenitore di testo.
placeholderIPlaceholderLetturaOttiene il segnaposto.
customDataICustomDataLetturaOttiene i dati personalizzati.
lineFormatILineFormatLetturaOttiene il formato della linea.
threeDFormatIThreeDFormatLetturaOttiene il formato 3D.
effectFormatIEffectFormatLetturaOttiene il formato dell’effetto.
hiddenbooleanLetturaOttiene il valore nascosto.
zOrderPositionintLetturaOttiene la posizione dell’ordine z.
connectionSiteCountintLetturaOttiene il conteggio dei siti di connessione.
alternativeTextStringLetturaOttiene il testo alternativo.
alternativeTextTitleStringLetturaOttiene il titolo del testo alternativo.
nameStringLetturaOttiene il nome.
decorativebooleanLetturaOttiene il decorativo.
uniqueIdintLetturaOttiene l’ID univoco.
officeInteropShapeIdintLetturaOttiene l’ID della forma interop di Office.
groupedbooleanLetturaOttiene il raggruppato.
asISlideComponentISlideComponentLetturaOttiene il componente as i slide.

Metodi

FirmaDescrizione
Shape(xmlElement: Element, saveCallback: Runnable)Crea una Shape basata sull’elemento XML fornito.
Shape()Crea una Shape senza elemento di supporto.
initInternal(xmlElement: Element, opcPackage: OpcPackage, layoutPartName: String, saveCallback: Runnable, parentSlide: IBaseSlide)Inizializzazione interna con l’elemento XML, pacchetto OPC, parte di layout e diapositiva padre.
buildFrame() → IShapeFrameCrea un {@link ShapeFrame} dall’elemento {@code <a:xfrm>} corrente.
applyFrame(value: IShapeFrame)Applica i valori di {@link IShapeFrame} all’elemento {@code <a:xfrm>}.
getSpPr() → ElementRestituisce l’elemento {@code <p:spPr>} (o {@code <p:grpSpPr>}) per questa forma.
ensureSpPr() → ElementRestituisce o crea l’elemento {@code <p:spPr>} per questa forma.
getCNvPr() → ElementRestituisce l’elemento {@code <p:cNvPr>} dalla forma XML.
findXfrmInElement(shapeElement: Element) → ElementTrova l’elemento {@code <a:xfrm>} direttamente all’interno di un elemento forma XML.
getPlaceholderInfo() → Optional<String[]>Restituisce le informazioni del placeholder per questa forma, se è un placeholder.
findPlaceholderXfrmInXml(root: Element, phType: String, phIdx: String) → ElementTrova il {@code <a:xfrm>} per un placeholder corrispondente in un layout o master XML root.
getInheritedXfrm() → ElementScorre il layout → catena master per trovare un {@code <a:xfrm>} ereditato per le forme segnaposto.
getXfrm() → ElementRestituisce l’elemento {@code <a:xfrm>} per questa forma.
ensureXfrm() → ElementRestituisce o crea l’elemento {@code <a:xfrm>} per questa forma.
getRawFrame() → IShapeFrameRestituisce il frame grezzo.
setRawFrame(value: IShapeFrame)Imposta il valore grezzo del frame.
getFrame() → IShapeFrameRestituisce il frame.
setFrame(value: IShapeFrame)Imposta il valore del frame.
getSlide() → IBaseSlideRestituisce la diapositiva.
getPresentation() → IPresentationRestituisce la presentazione.
asIPresentationComponent() → IPresentationComponentEsegue il cast della forma a un IPresentationComponent
setParentSlide(slide: IBaseSlide)Imposta la diapositiva genitore per questa forma.
GeometryShape(xmlElement: Element, saveCallback: Runnable)Crea un GeometryShape supportato dal dato elemento XML.
setParentShapes(shapes: Iterable<IShape>)Imposta la raccolta di forme gemelle utilizzata per le ricerche di connessione.
getX() → doubleRestituisce x.
setX(x: double)Imposta il valore x.
getY() → doubleRestituisce y.
setY(y: double)Imposta il valore y.
getWidth() → doubleRestituisce la larghezza.
setWidth(width: double)Imposta il valore di width.
getHeight() → doubleRestituisce l’altezza.
setHeight(height: double)Imposta il valore dell’altezza.
getRotation() → doubleRestituisce la rotazione.
setRotation(rotation: double)Imposta il valore di rotazione.
getShapeStyle() → IShapeStyleRestituisce lo stile della forma.
getShapeType() → ShapeTypeRestituisce il tipo di forma.
setShapeType(value: ShapeType)Imposta il valore del tipo di forma.
getFillFormat() → IFillFormatRestituisce il formato di riempimento.
getAdjustments() → IAdjustValueCollectionRestituisce le regolazioni.
isTextHolder() → booleanRestituisce true se text holder è impostato.
getPlaceholder() → IPlaceholderRestituisce il placeholder.
getCustomData() → ICustomDataRestituisce i dati personalizzati.
getLineFormat() → ILineFormatRestituisce il formato della riga.
getThreeDFormat() → IThreeDFormatRestituisce il formato three d.
getEffectFormat() → IEffectFormatRestituisce il formato dell’effetto.
isHidden() → booleanRestituisce true se hidden è impostato.
setHidden(value: boolean)Imposta il valore nascosto.
getZOrderPosition() → intRestituisce la posizione dell’ordine z.
getConnectionSiteCount() → intRestituisce il numero dei siti di connessione.
getAlternativeText() → StringRestituisce il testo alternativo.
setAlternativeText(value: String)Imposta il valore del testo alternativo.
getAlternativeTextTitle() → StringRestituisce il titolo del testo alternativo.
setAlternativeTextTitle(value: String)Imposta il valore del titolo di testo alternativo.
getName() → StringRestituisce il nome.
setName(value: String)Imposta il valore del nome.
isDecorative() → booleanRestituisce true se decorative è impostato.
setDecorative(value: boolean)Imposta il valore decorativo.
getUniqueId() → intRestituisce l’ID univoco.
getOfficeInteropShapeId() → intRestituisce l’ID della shape interop di Office.
isGrouped() → booleanRestituisce true se grouped è impostato.
getAsISlideComponent() → ISlideComponentRestituisce il componente as i slide.

Vedi anche

 Italiano