CustomLineCap
Inheritance: java.lang.Object
public class CustomLineCap
Encapsule une extrémité de ligne personnalisée définie par l’utilisateur.
Constructeurs
| Constructeur | Description |
|---|---|
| CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath) | Initialise une nouvelle instance de la classe CustomLineCap avec le contour et le remplissage spécifiés. |
| CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap) | Initialise une nouvelle instance de la classe CustomLineCap à partir de l’énumération LineCap existante spécifiée avec le contour et le remplissage spécifiés. |
| CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset) | Initialise une nouvelle instance de la classe CustomLineCap à partir de l’énumération LineCap existante spécifiée avec le contour, le remplissage et le retrait spécifiés. |
Méthodes
| Méthode | Description |
|---|---|
| getFillPath() | Obtient l’objet qui définit le remplissage pour le cap personnalisé. |
| setFillPath(GraphicsPath value) | Définit l’objet qui définit le remplissage du capuchon personnalisé. |
| getStrokePath() | Obtient l’objet qui définit le contour du capuchon personnalisé. |
| setStrokePath(GraphicsPath value) | Définit l’objet qui définit le contour du capuchon personnalisé. |
| getStrokeJoin() | Obtient l’énumération LineJoin qui détermine comment les lignes qui composent cet objet CustomLineCap sont jointes. |
| setStrokeJoin(int value) | Définit l’énumération LineJoin qui détermine comment les lignes qui composent cet objet CustomLineCap sont jointes. |
| getBaseCap() | Obtient l’énumération LineCap sur laquelle cet CustomLineCap est basé. |
| setBaseCap(int value) | Définit l’énumération LineCap sur laquelle cet CustomLineCap est basé. |
| getBaseInset() | Obtient la distance entre le capuchon et la ligne. |
| setBaseInset(float value) | Définit la distance entre le capuchon et la ligne. |
| getWidthScale() | Obtient la quantité par laquelle mettre à l’échelle cet objet de classe CustomLineCap par rapport à la largeur de l’objet System.Drawing.Pen. |
| setWidthScale(float value) | Définit la quantité par laquelle mettre à l’échelle cet objet de classe CustomLineCap par rapport à la largeur de l’objet System.Drawing.Pen. |
| setStrokeCaps(int startCap, int endCap) | Définit les capuchons utilisés pour commencer et terminer les lignes qui composent ce capuchon personnalisé. |
| getStrokeCaps(int[] startCap, int[] endCap) | Obtient les capuchons utilisés pour commencer et terminer les lignes qui composent ce capuchon personnalisé. |
| equals(Object o) | Vérifie si les objets sont égaux. |
| hashCode() | Obtient le code de hachage de l’objet actuel. |
CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
Initialise une nouvelle instance de la classe CustomLineCap avec le contour et le remplissage spécifiés.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| fillPath | GraphicsPath | Un objet GraphicsPath qui définit le remplissage du capuchon personnalisé. |
| strokePath | GraphicsPath | Un objet GraphicsPath qui définit le contour du capuchon personnalisé. |
CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)
Initialise une nouvelle instance de la classe CustomLineCap à partir de l’énumération LineCap existante spécifiée avec le contour et le remplissage spécifiés.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| fillPath | GraphicsPath | Un objet GraphicsPath qui définit le remplissage du capuchon personnalisé. |
| strokePath | GraphicsPath | Un objet GraphicsPath qui définit le contour du capuchon personnalisé. |
| baseCap | int | Le capuchon de ligne à partir duquel créer le capuchon personnalisé. |
CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset)
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset)
Initialise une nouvelle instance de la classe CustomLineCap à partir de l’énumération LineCap existante spécifiée avec le contour, le remplissage et le retrait spécifiés.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| fillPath | GraphicsPath | Un objet GraphicsPath qui définit le remplissage du capuchon personnalisé. |
| strokePath | GraphicsPath | Un objet GraphicsPath qui définit le contour du capuchon personnalisé. |
| baseCap | int | Le capuchon de ligne à partir duquel créer le capuchon personnalisé. |
| baseInset | float | La distance entre le capuchon et la ligne. |
getFillPath()
public GraphicsPath getFillPath()
Obtient l’objet qui définit le remplissage pour le cap personnalisé.
Returns: GraphicsPath - The object that defines the fill for the custom cap.
setFillPath(GraphicsPath value)
public void setFillPath(GraphicsPath value)
Définit l’objet qui définit le remplissage du capuchon personnalisé.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| value | GraphicsPath | L’objet qui définit le remplissage du capuchon personnalisé. |
getStrokePath()
public GraphicsPath getStrokePath()
Obtient l’objet qui définit le contour du capuchon personnalisé.
Returns: GraphicsPath - The object that defines the outline of the custom cap.
setStrokePath(GraphicsPath value)
public void setStrokePath(GraphicsPath value)
Définit l’objet qui définit le contour du capuchon personnalisé.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| value | GraphicsPath | L’objet qui définit le contour du capuchon personnalisé. |
getStrokeJoin()
public int getStrokeJoin()
Obtient l’énumération LineJoin qui détermine comment les lignes qui composent cet objet CustomLineCap sont jointes.
Returns:
int - L’énumération LineJoin que cet objet CustomLineCap utilise pour joindre les lignes.
setStrokeJoin(int value)
public void setStrokeJoin(int value)
Définit l’énumération LineJoin qui détermine comment les lignes qui composent cet objet CustomLineCap sont jointes.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | int | L’énumération LineJoin que cet objet CustomLineCap utilise pour joindre les lignes. |
getBaseCap()
public int getBaseCap()
Obtient l’énumération LineCap sur laquelle cet CustomLineCap est basé.
Returns:
int - L’énumération LineCap sur laquelle cet CustomLineCap est basé.
setBaseCap(int value)
public void setBaseCap(int value)
Définit l’énumération LineCap sur laquelle cet CustomLineCap est basé.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | int | L’énumération LineCap sur laquelle cet CustomLineCap est basé. |
getBaseInset()
public float getBaseInset()
Obtient la distance entre le capuchon et la ligne.
Returns: float - La distance entre le début du cap et la fin de la ligne.
setBaseInset(float value)
public void setBaseInset(float value)
Définit la distance entre le capuchon et la ligne.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | float | La distance entre le début du cap et la fin de la ligne. |
getWidthScale()
public float getWidthScale()
Obtient la quantité par laquelle mettre à l’échelle cet objet de classe CustomLineCap par rapport à la largeur de l’objet System.Drawing.Pen.
Returns: float - La quantité par laquelle mettre à l’échelle le cap.
setWidthScale(float value)
public void setWidthScale(float value)
Définit la quantité par laquelle mettre à l’échelle cet objet de classe CustomLineCap par rapport à la largeur de l’objet System.Drawing.Pen.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| valeur | float | La quantité par laquelle mettre à l’échelle le cap. |
setStrokeCaps(int startCap, int endCap)
public void setStrokeCaps(int startCap, int endCap)
Définit les capuchons utilisés pour commencer et terminer les lignes qui composent ce capuchon personnalisé.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| startCap | int | L’énumération LineCap utilisée au début d’une ligne dans ce cap. |
| endCap | int | L’énumération LineCap utilisée à la fin d’une ligne dans ce cap. |
getStrokeCaps(int[] startCap, int[] endCap)
public void getStrokeCaps(int[] startCap, int[] endCap)
Obtient les capuchons utilisés pour commencer et terminer les lignes qui composent ce capuchon personnalisé.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| startCap | int[] | L’énumération LineCap utilisée au début d’une ligne dans ce cap. |
| endCap | int[] | L’énumération LineCap utilisée à la fin d’une ligne dans ce cap. |
equals(Object o)
public boolean equals(Object o)
Vérifie si les objets sont égaux.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| o | java.lang.Object | L’autre objet. |
Returns: boolean - Le résultat de la comparaison d’égalité.
hashCode()
public int hashCode()
Obtient le code de hachage de l’objet actuel.
Returns: int - Le code de hachage.