Tràmits
General
Path és una classe en FOSS per Java. Heretaris de: Shape.
Representa una ruta composta de elements fills {@link Shape} .
Aquesta classe proporciona 7 mètodes per treballar amb objectes Path en programes Java. Els mètodes disponibles inclouen: Path, checkBounds, getGraphInfo, getShapes, getText, setGraphInfo, setText. Tots els membres públics són accessibles a qualsevol aplicació Java després d’instal·lar el paquet FOSS per Java. Propietats: graphInfo, shapes, text.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
shapes | List<Shape> | Llegeix. | Obté la llista de formes d’infants en aquest camí. |
graphInfo | GraphInfo | Llegeix. | Obté les propietats de l’estil gràfic per a aquesta forma. |
text | String | Llegeix. | Obté l’etiqueta de text opcional associada a aquesta forma. |
Mètodes
| Signatura | Descripció |
|---|---|
Path() | Crea un nou camí buit. |
getShapes() → List<Shape> | Obté la llista de formes d’infants en aquest camí. |
checkBounds(width: double, height: double) | - No, no. M’agradaria que ho pogués fer. |
Checks bounds for all child shapes in this path. | | `getGraphInfo()` → `GraphInfo` | Gets the graphic styling properties for this shape. | | `setGraphInfo(graphInfo: GraphInfo)` | Sets the graphic styling properties for this shape. | | `getText()` → `String` | Gets the optional text label associated with this shape. | | `setText(text: String)` | Sets the optional text label associated with this shape. |