documentationfor yFiles for HTML 2.6

Usages of Stroke

Properties

strokein LassoSelectionInputModeGets or sets the stroke that is used for the visualization of the lasso path.
strokein ArcEdgeStyleGets or sets the stroke that is used to draw the arc
strokein ArrowGets or sets the stroke of the outline of this arrow.
strokein ArrowEdgeStyleGets or sets the Stroke used for drawing the outline of the shape.
strokein ArrowNodeStyleGets or sets the Stroke used for drawing the outline of the shape.
strokein BezierEdgeStyleGets or sets the Stroke that is used to draw the path.
strokein BridgeEdgeStyleGets or sets the Stroke that is used to draw the path
backgroundStrokein DefaultLabelStyleGets or sets the pen to use for the background box of the label.
strokein GeneralPathNodeStyleGets or sets the Stroke that is used to draw the shape.
strokein GroupNodeStyleGets or sets the Stroke used for drawing the outline of the shape.
strokein PolylineEdgeStyleGets or sets the Stroke for the line.
strokein RectangleNodeStyleGets or sets the Stroke used for drawing the outline of the shape.
strokein ShapeNodeStyleGets or sets the stroke for this style.
strokein ShinyPlateNodeStyleGets or sets the stroke to use for the outline.
strokein ShinyPlateNodeStyleRendererGets the stroke from the style.
strokein GridVisualCreatorGets or sets the stroke to use for painting the grid.
strokein PointSelectionIndicatorInstallerGets or sets the Stroke to use for drawing the point in the view coordinate system.
ALICE_BLUEin StrokeGets a frozen Stroke that uses ALICE_BLUE as its fill and has a thickness of 1.
ANTIQUE_WHITEin StrokeGets a frozen Stroke that uses ANTIQUE_WHITE as its fill and has a thickness of 1.
AQUAin StrokeGets a frozen Stroke that uses AQUA as its fill and has a thickness of 1.
AQUAMARINEin StrokeGets a frozen Stroke that uses AQUAMARINE as its fill and has a thickness of 1.
AZUREin StrokeGets a frozen Stroke that uses AZURE as its fill and has a thickness of 1.
BEIGEin StrokeGets a frozen Stroke that uses BEIGE as its fill and has a thickness of 1.
BISQUEin StrokeGets a frozen Stroke that uses BISQUE as its fill and has a thickness of 1.
BLACKin StrokeGets a frozen Stroke that uses BLACK as its fill and has a thickness of 1.
BLANCHED_ALMONDin StrokeGets a frozen Stroke that uses BLANCHED_ALMOND as its fill and has a thickness of 1.
BLUEin StrokeGets a frozen Stroke that uses BLUE as its fill and has a thickness of 1.
BLUE_VIOLETin StrokeGets a frozen Stroke that uses BLUE_VIOLET as its fill and has a thickness of 1.
BROWNin StrokeGets a frozen Stroke that uses BROWN as its fill and has a thickness of 1.
BURLY_WOODin StrokeGets a frozen Stroke that uses BURLY_WOOD as its fill and has a thickness of 1.
CADET_BLUEin StrokeGets a frozen Stroke that uses CADET_BLUE as its fill and has a thickness of 1.
CHARTREUSEin StrokeGets a frozen Stroke that uses CHARTREUSE as its fill and has a thickness of 1.
CHOCOLATEin StrokeGets a frozen Stroke that uses CHOCOLATE as its fill and has a thickness of 1.
CORALin StrokeGets a frozen Stroke that uses CORAL as its fill and has a thickness of 1.
CORNFLOWER_BLUEin StrokeGets a frozen Stroke that uses CORNFLOWER_BLUE as its fill and has a thickness of 1.
CORNSILKin StrokeGets a frozen Stroke that uses CORNSILK as its fill and has a thickness of 1.
CRIMSONin StrokeGets a frozen Stroke that uses CRIMSON as its fill and has a thickness of 1.
CURRENT_COLORin StrokeGets a frozen Stroke that uses CURRENT_COLOR as its fill and has a thickness of 1.
CYANin StrokeGets a frozen Stroke that uses CYAN as its fill and has a thickness of 1.
DARK_BLUEin StrokeGets a frozen Stroke that uses DARK_BLUE as its fill and has a thickness of 1.
DARK_CYANin StrokeGets a frozen Stroke that uses DARK_CYAN as its fill and has a thickness of 1.
DARK_GOLDENRODin StrokeGets a frozen Stroke that uses DARK_GOLDENROD as its fill and has a thickness of 1.
DARK_GRAYin StrokeGets a frozen Stroke that uses DARK_GRAY as its fill and has a thickness of 1.
DARK_GREENin StrokeGets a frozen Stroke that uses DARK_GREEN as its fill and has a thickness of 1.
DARK_KHAKIin StrokeGets a frozen Stroke that uses DARK_KHAKI as its fill and has a thickness of 1.
DARK_MAGENTAin StrokeGets a frozen Stroke that uses DARK_MAGENTA as its fill and has a thickness of 1.
DARK_OLIVE_GREENin StrokeGets a frozen Stroke that uses DARK_OLIVE_GREEN as its fill and has a thickness of 1.
DARK_ORANGEin StrokeGets a frozen Stroke that uses DARK_ORANGE as its fill and has a thickness of 1.
DARK_ORCHIDin StrokeGets a frozen Stroke that uses DARK_ORCHID as its fill and has a thickness of 1.
DARK_REDin StrokeGets a frozen Stroke that uses DARK_RED as its fill and has a thickness of 1.
DARK_SALMONin StrokeGets a frozen Stroke that uses DARK_SALMON as its fill and has a thickness of 1.
DARK_SEA_GREENin StrokeGets a frozen Stroke that uses DARK_SEA_GREEN as its fill and has a thickness of 1.
DARK_SLATE_BLUEin StrokeGets a frozen Stroke that uses DARK_SLATE_BLUE as its fill and has a thickness of 1.
DARK_SLATE_GRAYin StrokeGets a frozen Stroke that uses DARK_SLATE_GRAY as its fill and has a thickness of 1.
DARK_TURQUOISEin StrokeGets a frozen Stroke that uses DARK_TURQUOISE as its fill and has a thickness of 1.
DARK_VIOLETin StrokeGets a frozen Stroke that uses DARK_VIOLET as its fill and has a thickness of 1.
DEEP_PINKin StrokeGets a frozen Stroke that uses DEEP_PINK as its fill and has a thickness of 1.
DEEP_SKY_BLUEin StrokeGets a frozen Stroke that uses DEEP_SKY_BLUE as its fill and has a thickness of 1.
DIM_GRAYin StrokeGets a frozen Stroke that uses DIM_GRAY as its fill and has a thickness of 1.
DODGER_BLUEin StrokeGets a frozen Stroke that uses DODGER_BLUE as its fill and has a thickness of 1.
FIREBRICKin StrokeGets a frozen Stroke that uses FIREBRICK as its fill and has a thickness of 1.
FLORAL_WHITEin StrokeGets a frozen Stroke that uses FLORAL_WHITE as its fill and has a thickness of 1.
FOREST_GREENin StrokeGets a frozen Stroke that uses FOREST_GREEN as its fill and has a thickness of 1.
FUCHSIAin StrokeGets a frozen Stroke that uses FUCHSIA as its fill and has a thickness of 1.
GAINSBOROin StrokeGets a frozen Stroke that uses GAINSBORO as its fill and has a thickness of 1.
GHOST_WHITEin StrokeGets a frozen Stroke that uses GHOST_WHITE as its fill and has a thickness of 1.
GOLDin StrokeGets a frozen Stroke that uses GOLD as its fill and has a thickness of 1.
GOLDENRODin StrokeGets a frozen Stroke that uses GOLDENROD as its fill and has a thickness of 1.
GRAYin StrokeGets a frozen Stroke that uses GRAY as its fill and has a thickness of 1.
GREENin StrokeGets a frozen Stroke that uses GREEN as its fill and has a thickness of 1.
GREEN_YELLOWin StrokeGets a frozen Stroke that uses GREEN_YELLOW as its fill and has a thickness of 1.
HONEYDEWin StrokeGets a frozen Stroke that uses HONEYDEW as its fill and has a thickness of 1.
HOT_PINKin StrokeGets a frozen Stroke that uses HOT_PINK as its fill and has a thickness of 1.
INDIAN_REDin StrokeGets a frozen Stroke that uses INDIAN_RED as its fill and has a thickness of 1.
INDIGOin StrokeGets a frozen Stroke that uses INDIGO as its fill and has a thickness of 1.
IVORYin StrokeGets a frozen Stroke that uses IVORY as its fill and has a thickness of 1.
KHAKIin StrokeGets a frozen Stroke that uses KHAKI as its fill and has a thickness of 1.
LAVENDERin StrokeGets a frozen Stroke that uses LAVENDER as its fill and has a thickness of 1.
LAVENDER_BLUSHin StrokeGets a frozen Stroke that uses LAVENDER_BLUSH as its fill and has a thickness of 1.
LAWN_GREENin StrokeGets a frozen Stroke that uses LAWN_GREEN as its fill and has a thickness of 1.
LEMON_CHIFFONin StrokeGets a frozen Stroke that uses LEMON_CHIFFON as its fill and has a thickness of 1.
LIGHT_BLUEin StrokeGets a frozen Stroke that uses LIGHT_BLUE as its fill and has a thickness of 1.
LIGHT_CORALin StrokeGets a frozen Stroke that uses LIGHT_CORAL as its fill and has a thickness of 1.
LIGHT_CYANin StrokeGets a frozen Stroke that uses LIGHT_CYAN as its fill and has a thickness of 1.
LIGHT_GOLDENROD_YELLOWin StrokeGets a frozen Stroke that uses LIGHT_GOLDENROD_YELLOW as its fill and has a thickness of 1.
LIGHT_GRAYin StrokeGets a frozen Stroke that uses LIGHT_GRAY as its fill and has a thickness of 1.
LIGHT_GREENin StrokeGets a frozen Stroke that uses LIGHT_GREEN as its fill and has a thickness of 1.
LIGHT_PINKin StrokeGets a frozen Stroke that uses LIGHT_PINK as its fill and has a thickness of 1.
LIGHT_SALMONin StrokeGets a frozen Stroke that uses LIGHT_SALMON as its fill and has a thickness of 1.
LIGHT_SEA_GREENin StrokeGets a frozen Stroke that uses LIGHT_SEA_GREEN as its fill and has a thickness of 1.
LIGHT_SKY_BLUEin StrokeGets a frozen Stroke that uses LIGHT_SKY_BLUE as its fill and has a thickness of 1.
LIGHT_SLATE_GRAYin StrokeGets a frozen Stroke that uses LIGHT_SLATE_GRAY as its fill and has a thickness of 1.
LIGHT_STEEL_BLUEin StrokeGets a frozen Stroke that uses LIGHT_STEEL_BLUE as its fill and has a thickness of 1.
LIGHT_YELLOWin StrokeGets a frozen Stroke that uses LIGHT_YELLOW as its fill and has a thickness of 1.
LIMEin StrokeGets a frozen Stroke that uses LIME as its fill and has a thickness of 1.
LIME_GREENin StrokeGets a frozen Stroke that uses LIME_GREEN as its fill and has a thickness of 1.
LINENin StrokeGets a frozen Stroke that uses LINEN as its fill and has a thickness of 1.
MAGENTAin StrokeGets a frozen Stroke that uses MAGENTA as its fill and has a thickness of 1.
MAROONin StrokeGets a frozen Stroke that uses MAROON as its fill and has a thickness of 1.
MEDIUM_AQUAMARINEin StrokeGets a frozen Stroke that uses MEDIUM_AQUAMARINE as its fill and has a thickness of 1.
MEDIUM_BLUEin StrokeGets a frozen Stroke that uses MEDIUM_BLUE as its fill and has a thickness of 1.
MEDIUM_ORCHIDin StrokeGets a frozen Stroke that uses MEDIUM_ORCHID as its fill and has a thickness of 1.
MEDIUM_PURPLEin StrokeGets a frozen Stroke that uses MEDIUM_PURPLE as its fill and has a thickness of 1.
MEDIUM_SEA_GREENin StrokeGets a frozen Stroke that uses MEDIUM_SEA_GREEN as its fill and has a thickness of 1.
MEDIUM_SLATE_BLUEin StrokeGets a frozen Stroke that uses MEDIUM_SLATE_BLUE as its fill and has a thickness of 1.
MEDIUM_SPRING_GREENin StrokeGets a frozen Stroke that uses MEDIUM_SPRING_GREEN as its fill and has a thickness of 1.
MEDIUM_TURQUOISEin StrokeGets a frozen Stroke that uses MEDIUM_TURQUOISE as its fill and has a thickness of 1.
MEDIUM_VIOLET_REDin StrokeGets a frozen Stroke that uses MEDIUM_VIOLET_RED as its fill and has a thickness of 1.
MIDNIGHT_BLUEin StrokeGets a frozen Stroke that uses MIDNIGHT_BLUE as its fill and has a thickness of 1.
MINT_CREAMin StrokeGets a frozen Stroke that uses MINT_CREAM as its fill and has a thickness of 1.
MISTY_ROSEin StrokeGets a frozen Stroke that uses MISTY_ROSE as its fill and has a thickness of 1.
MOCCASINin StrokeGets a frozen Stroke that uses MOCCASIN as its fill and has a thickness of 1.
NAVAJO_WHITEin StrokeGets a frozen Stroke that uses NAVAJO_WHITE as its fill and has a thickness of 1.
NAVYin StrokeGets a frozen Stroke that uses NAVY as its fill and has a thickness of 1.
OLD_LACEin StrokeGets a frozen Stroke that uses OLD_LACE as its fill and has a thickness of 1.
OLIVEin StrokeGets a frozen Stroke that uses OLIVE as its fill and has a thickness of 1.
OLIVE_DRABin StrokeGets a frozen Stroke that uses OLIVE_DRAB as its fill and has a thickness of 1.
ORANGEin StrokeGets a frozen Stroke that uses ORANGE as its fill and has a thickness of 1.
ORANGE_REDin StrokeGets a frozen Stroke that uses ORANGE_RED as its fill and has a thickness of 1.
ORCHIDin StrokeGets a frozen Stroke that uses ORCHID as its fill and has a thickness of 1.
PALE_GOLDENRODin StrokeGets a frozen Stroke that uses PALE_GOLDENROD as its fill and has a thickness of 1.
PALE_GREENin StrokeGets a frozen Stroke that uses PALE_GREEN as its fill and has a thickness of 1.
PALE_TURQUOISEin StrokeGets a frozen Stroke that uses PALE_TURQUOISE as its fill and has a thickness of 1.
PALE_VIOLET_REDin StrokeGets a frozen Stroke that uses PALE_VIOLET_RED as its fill and has a thickness of 1.
PAPAYA_WHIPin StrokeGets a frozen Stroke that uses PAPAYA_WHIP as its fill and has a thickness of 1.
PEACH_PUFFin StrokeGets a frozen Stroke that uses PEACH_PUFF as its fill and has a thickness of 1.
PERUin StrokeGets a frozen Stroke that uses PERU as its fill and has a thickness of 1.
PINKin StrokeGets a frozen Stroke that uses PINK as its fill and has a thickness of 1.
PLUMin StrokeGets a frozen Stroke that uses PLUM as its fill and has a thickness of 1.
POWDER_BLUEin StrokeGets a frozen Stroke that uses POWDER_BLUE as its fill and has a thickness of 1.
PURPLEin StrokeGets a frozen Stroke that uses PURPLE as its fill and has a thickness of 1.
REDin StrokeGets a frozen Stroke that uses RED as its fill and has a thickness of 1.
ROSY_BROWNin StrokeGets a frozen Stroke that uses ROSY_BROWN as its fill and has a thickness of 1.
ROYAL_BLUEin StrokeGets a frozen Stroke that uses ROYAL_BLUE as its fill and has a thickness of 1.
SADDLE_BROWNin StrokeGets a frozen Stroke that uses SADDLE_BROWN as its fill and has a thickness of 1.
SALMONin StrokeGets a frozen Stroke that uses SALMON as its fill and has a thickness of 1.
SANDY_BROWNin StrokeGets a frozen Stroke that uses SANDY_BROWN as its fill and has a thickness of 1.
SEA_GREENin StrokeGets a frozen Stroke that uses SEA_GREEN as its fill and has a thickness of 1.
SEA_SHELLin StrokeGets a frozen Stroke that uses SEA_SHELL as its fill and has a thickness of 1.
SIENNAin StrokeGets a frozen Stroke that uses SIENNA as its fill and has a thickness of 1.
SILVERin StrokeGets a frozen Stroke that uses SILVER as its fill and has a thickness of 1.
SKY_BLUEin StrokeGets a frozen Stroke that uses SKY_BLUE as its fill and has a thickness of 1.
SLATE_BLUEin StrokeGets a frozen Stroke that uses SLATE_BLUE as its fill and has a thickness of 1.
SLATE_GRAYin StrokeGets a frozen Stroke that uses SLATE_GRAY as its fill and has a thickness of 1.
SNOWin StrokeGets a frozen Stroke that uses SNOW as its fill and has a thickness of 1.
SPRING_GREENin StrokeGets a frozen Stroke that uses SPRING_GREEN as its fill and has a thickness of 1.
STEEL_BLUEin StrokeGets a frozen Stroke that uses STEEL_BLUE as its fill and has a thickness of 1.
TANin StrokeGets a frozen Stroke that uses TAN as its fill and has a thickness of 1.
TEALin StrokeGets a frozen Stroke that uses TEAL as its fill and has a thickness of 1.
THISTLEin StrokeGets a frozen Stroke that uses THISTLE as its fill and has a thickness of 1.
TOMATOin StrokeGets a frozen Stroke that uses TOMATO as its fill and has a thickness of 1.
TRANSPARENTin StrokeGets a frozen Stroke that uses TRANSPARENT as its fill and has a thickness of 1.
TURQUOISEin StrokeGets a frozen Stroke that uses TURQUOISE as its fill and has a thickness of 1.
VIOLETin StrokeGets a frozen Stroke that uses VIOLET as its fill and has a thickness of 1.
WHEATin StrokeGets a frozen Stroke that uses WHEAT as its fill and has a thickness of 1.
WHITEin StrokeGets a frozen Stroke that uses WHITE as its fill and has a thickness of 1.
WHITE_SMOKEin StrokeGets a frozen Stroke that uses WHITE_SMOKE as its fill and has a thickness of 1.
YELLOWin StrokeGets a frozen Stroke that uses YELLOW as its fill and has a thickness of 1.
YELLOW_GREENin StrokeGets a frozen Stroke that uses YELLOW_GREEN as its fill and has a thickness of 1.
hatchStrokein ThemeA hatch Stroke that can be used to resemble the classic variant selection stroke for edges.

Method Return Values

getStroke ()in ArcEdgeStyleRenderer
getStroke ()in ArrowNodeStyleRendererGet the pen that is currently used by this renderer.
getStroke ()in BezierEdgeStyleRenderer
getStroke ()in BridgeEdgeStyleRenderer
getStroke ()in GroupNodeStyleRendererGets the pen that is currently used by this renderer.
getStroke ()in PathBasedEdgeStyleRendererGets the Stroke to use to render the path.
getStroke ()in PolylineEdgeStyleRenderer
getStroke ()in RectangleNodeStyleRendererGet the pen that is currently used by this renderer.
getStroke ()in ShapeNodeStyleRendererGet the Stroke that is currently used by this renderer.
getStroke (CanvasComponent, IEdge)in EdgeDecorationInstallerRetrieves the Stroke for the context.
getStroke (CanvasComponent, IEdge)in EdgeFocusIndicatorInstallerRetrieves the Stroke for the context.
getStroke (CanvasComponent, IEdge)in EdgeHighlightIndicatorInstallerRetrieves the Stroke for the context.
getStroke (CanvasComponent, IEdge)in EdgeSelectionIndicatorInstallerRetrieves the Stroke for the context.
cloneCurrentValue ()in StrokeClones the current value of this instance to a new unfrozen Stroke.
freeze ()in StrokeFreezes and returns this instance.
from (Stroke)in StrokeCreates a Stroke instance from the given stroke-like object by performing automatic type conversion.

Method Parameters

LassoSelectionInputMode ()in LassoSelectionInputModeCreates a new instance of the lasso selection mode.
ArcEdgeStyle ()in ArcEdgeStyleCreates a new instance using ArcEdgeStyleRenderer as renderer.
ArcEdgeStyle (ArcEdgeStyleRenderer, )in ArcEdgeStyleCreates a new instance using the provided renderer.
Arrow ()in ArrowCreates a new arrow with default values for stroke and brush.
Arrow (Color, )in ArrowCreates a new arrow with the given color to use for stroke and brush.
ArrowEdgeStyle ()in ArrowEdgeStyleCreates a new instance with default properties.
ArrowNodeStyle (ArrowNodeStyleRenderer?, )in ArrowNodeStyleCreates a new instance.
BezierEdgeStyle ()in BezierEdgeStyleCreates a new instance using BezierEdgeStyleRenderer as renderer.
BezierEdgeStyle (BezierEdgeStyleRenderer, )in BezierEdgeStyleCreates a new instance using the provided renderer.
BridgeEdgeStyle ()in BridgeEdgeStyleCreates a new instance using BridgeEdgeStyleRenderer as renderer.
BridgeEdgeStyle (BridgeEdgeStyleRenderer, )in BridgeEdgeStyleCreates a new instance using the provided renderer.
DefaultLabelStyle ()in DefaultLabelStyleCreates a new instance using DefaultLabelStyleRenderer as renderer.
DefaultLabelStyle (ILabelStyleRenderer, )in DefaultLabelStyleCreates a new instance using the provided renderer.
GeneralPathNodeStyle (GeneralPath?, GeneralPathNodeStyleRenderer?, )in GeneralPathNodeStyleCreates a new instance using the specified path and a custom renderer instance.
GroupNodeStyle (GroupNodeStyleRenderer?, )in GroupNodeStyleInitializes a new instance using the given renderer.
MarkupLabelStyle ()in MarkupLabelStyleCreates a new instance using MarkupLabelStyleRenderer as renderer.
MarkupLabelStyle (ILabelStyleRenderer, )in MarkupLabelStyleCreates a new instance using the provided renderer.
PolylineEdgeStyle ()in PolylineEdgeStyleCreates a new instance using PolylineEdgeStyleRenderer as renderer.
PolylineEdgeStyle (PolylineEdgeStyleRenderer, )in PolylineEdgeStyleCreates a new instance using the provided renderer.
RectangleNodeStyle (RectangleNodeStyleRenderer?, )in RectangleNodeStyleCreates a new instance using the provided renderer.
ShapeNodeStyle (ShapeNodeStyleRenderer?, )in ShapeNodeStyleCreates a new instance using the provided renderer.
ShinyPlateNodeStyle (ShinyPlateNodeStyleRenderer?, )in ShinyPlateNodeStyleCreates a new instance using the provided renderer.
from (Stroke)in StrokeCreates a Stroke instance from the given stroke-like object by performing automatic type conversion.
setStroke (Stroke, SVGElement, ICanvasContext)in StrokeSets the Stroke on a given SVG element as the stroke.