API / geotoolkit / scene / shapes / painters / LineAndSymbolPainter / LineAndSymbolPainter
painters.LineAndSymbolPainter.LineAndSymbolPainter
Draws line and symbol defined by painter
↳
LineAndSymbolPainter
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
linestyle | string | Style for the line (if it should be different with the symbol) |
linestyle | LineStyle | Style for the line (if it should be different with the symbol) |
linestyle-color | string | Color in CSS form |
linestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
linestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
linestyle-fill-color | string | Color in CSS form |
linestyle-fill-evenoddmode | boolean | Even-odd fill mode |
linestyle-fill-fillpattern | Pattern | Pattern |
linestyle-fill-fillpattern-containername | string | An optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself |
linestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
linestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
linestyle-fill-foreground | string | Foreground color |
linestyle-fill-pattern | Pattern | Pattern |
linestyle-linecap | CapStyle | The line cap style |
linestyle-linedashoffset | number | Line dash offset of dashed line |
linestyle-linejoin | JoinStyle | The line join style |
linestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
linestyle-scalable | boolean | True if width should depend on transformation |
linestyle-unit | string | Optional unit for the width |
linestyle-width | number | string | The line thickness |
painter | string | Painter to be displayed with Horizontal line painter |
Constructors
• new LineAndSymbolPainter(painter?)
Create LineAndSymbolPainter
| Name | Type | Description |
|---|---|---|
Optional painter | Painter | Options | Painter to be displayed with Horizontal line painter or properties object |
EventDispatcher.constructor
Methods
▸ dispose(): void
Dispose.
void
▸ getClassName(): string
string
▸ getPainter(): EventDispatcher & IPainter | PainterFunction
Returns symbol painter
EventDispatcher & IPainter | PainterFunction
painter
▸ getProperties(): OptionsOut
Gets all the properties pertaining to the line and symbol painter
line and symbol painter properties
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
EventDispatcher.hasEventListener
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ notify(type, source, args?): LineAndSymbolPainter
Notify listeners
| Name | Type | Description |
|---|---|---|
type | string | event types |
source | any | of the event |
Optional args | any | arguments of the event |
this
▸ off(type?, callback?): LineAndSymbolPainter
Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.
| Name | Type | Description |
|---|---|---|
Optional type | string | type of the event |
Optional callback | EventListener | function to be called |
this
▸ off<E>(type, callback): LineAndSymbolPainter
| Name | Type |
|---|---|
E | extends string |
| Name | Type |
|---|---|
type | E |
callback | (eventType: E, sender: LineAndSymbolPainter, args: EventMap[E]) => void |
▸ on(type, callback, options?): LineAndSymbolPainter
Attach listener on event that will be called whenever the specified event is delivered to the target
If the callback function is already in the list of event listeners for this target, the function is not added a second time.
If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
callback | EventListener | to be called |
Optional options | Options | options of subscription |
this
▸ on<E>(type, callback, options?): LineAndSymbolPainter
| Name | Type |
|---|---|
E | extends string |
| Name | Type |
|---|---|
type | E |
callback | (eventType: E, sender: LineAndSymbolPainter, args: EventMap[E]) => void |
Optional options | Options |
▸ render(context, symbol, bbox): void
Draw text on context
| Name | Type | Description |
|---|---|---|
context | RenderingContext | rendering context |
symbol | SymbolShape | symbol, which uses this painter |
bbox | Rect | bounding box |
void
▸ setLineStyle(style): LineAndSymbolPainter
Sets style for the line (if it should be different with the symbol)
| Name | Type | Description |
|---|---|---|
style | Type | style for the line (if it should be different with the symbol) |
this
▸ setPainter(painter?): LineAndSymbolPainter
Sets symbol painter for Line Chart
| Name | Type | Description |
|---|---|---|
Optional painter | Painter | Painter to be displayed with Horizontal line painter |
this
▸ setProperties(props?): LineAndSymbolPainter
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional props | Options | line and symbol painter properties |
this
▸ setSilent(bool): LineAndSymbolPainter
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ Static getClassName(): string
string