Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > blockRendering > MarkerSvg > applyColour_
Methode blockRendering.MarkerSvg.applyColour_()
Wenden Sie die Farbe der Markierung an.
Unterschrift:
protected applyColour_(_curNode: ASTNode): void;
Parameter
Parameter |
Typ |
Beschreibung |
_curNode |
ASTNode |
Der Knoten, für den die Markierung gezeichnet werden soll. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-08-21 (UTC)."],[[["The `applyColour_` method is used to apply color to a marker within Blockly's block rendering process."],["It is a protected method that takes an ASTNode (Abstract Syntax Tree Node) as input, representing the block to which the marker belongs."],["This method does not return any value and is primarily used internally within Blockly for visual representation of markers."]]],["The `applyColour_()` method within the `MarkerSvg` class is designed to set the color of a marker. It accepts a single parameter, `_curNode`, of type `ASTNode`, which represents the specific node targeted for marker drawing. The method's core function is to visually apply the appropriate color to the marker associated with this `_curNode`. This method does not return any value, as indicated by its `void` return type.\n"]]