API / geotoolkit / scene / shapes / painters / GeometryPainter / GeometryPainter
painters.GeometryPainter.GeometryPainter
Draws specified geometry
↳
GeometryPainter↳↳
SvgPainter
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
geometry | Group | Geometry |
geometry-automodellimitsmode | boolean | Auto model limits mode |
geometry-bounds | Rect | Define position of the group in the parent |
geometry-bounds-height | number | Height |
geometry-bounds-readonly | boolean | Readonly |
geometry-bounds-width | number | Width |
geometry-bounds-x | number | Left |
geometry-bounds-y | number | Top |
geometry-clipping | boolean | Enable clipping, this does not consider the clipstyle, it is related to bounds-clipping |
geometry-clipstyle | ClipStyle | Clipping style |
geometry-clipstyle-evenodd | boolean | True if evenodd mode is on ('nonzero' mode otherwise) |
geometry-clipstyle-geometry | GraphicsPath | Clipping geometry |
geometry-clipstyle-geometry-bounds | Rect | Bounds |
geometry-clipstyle | GraphicsPath | Clipping style |
geometry-contentorientation | Orientation | Content orientation |
geometry-cssclass | string | The css class name of this node |
geometry-csscursor | string | CSS cursor associated with node |
geometry-cssstyle | string | CSS style to be applied to inserted elements |
geometry-fillstyle | string | Fill style |
geometry-fillstyle | FillStyle | Fill style |
geometry-fillstyle-color | string | Color in CSS form |
geometry-fillstyle-evenoddmode | boolean | Even-odd fill mode |
geometry-fillstyle-fillpattern | Pattern | Pattern |
geometry-fillstyle-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 |
geometry-fillstyle-fillpattern-patternname | string | Name of this pattern for indexing |
geometry-fillstyle-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
geometry-fillstyle-foreground | string | Foreground color |
geometry-fillstyle-pattern | Pattern | Pattern |
geometry-horizontalflip | boolean | Horizontal axis goes from right to left |
geometry-id | string | number | Id of the node, its a unique identifier |
geometry-infinity | boolean | Mode to render outside the model limits |
geometry-layoutstyle | LayoutStyle | Layout style to be used for parent layout |
geometry-layoutstyle-constraint | SizeConstraint | Layout constrains |
geometry-layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
geometry-layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
geometry-layoutstyle-float | string | Float position |
geometry-layoutstyle-position | string | Layout position |
geometry-layoutstyle-size | number | string | Layout size |
geometry-linestyle | string | Line style |
geometry-linestyle | LineStyle | Line style |
geometry-linestyle-color | string | Color in CSS form |
geometry-linestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
geometry-linestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
geometry-linestyle-linecap | CapStyle | The line cap style |
geometry-linestyle-linedashoffset | number | Line dash offset of dashed line |
geometry-linestyle-linejoin | JoinStyle | The line join style |
geometry-linestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
geometry-linestyle-scalable | boolean | True if width should depend on transformation |
geometry-linestyle-unit | string | Optional unit for the width |
geometry-linestyle-width | number | string | The line thickness |
geometry-localtransform | Transformation | Local transformation |
geometry-localtransform-dx | number | X axis translation |
geometry-localtransform-dy | number | Y axis translation |
geometry-localtransform-xx | number | X scale |
geometry-localtransform-xy | number | Xy skew |
geometry-localtransform-yx | number | Yx skew |
geometry-localtransform-yy | number | Y scale |
geometry-margins | number | string | It has properties for specifying the margins for each side |
geometry-modellimits | Rect | Define inner model coordinates of the group |
geometry-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
geometry-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
geometry-opacityblendmode | BlendMode | Node opacity mode to blend it |
geometry-padding | number | string | It has properties for specifying the padding for each side |
geometry-pickingchildren | boolean | Enable picking children |
geometry-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
geometry-scalescrollstrategy-enabled | boolean | Enable flag |
geometry-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
geometry-tag | any | Custom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape |
geometry-transform | string | Additional CSS transformation applied to node or 'none' |
geometry-transform | Transformation | Additional CSS transformation applied to node or 'none' |
geometry-verticalflip | boolean | Vertical axis goes from bottom to top |
geometry-viewcache | boolean | View cache to cache child nodes |
geometry-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
geometry-z-index | number | Define node z-index |
Constructors
• new GeometryPainter(options?)
EventDispatcher.constructor
Methods
▸ clone(): GeometryPainter
Returns clone
clone
▸ dispose(): void
Dispose.
void
▸ enumerateNodes(callback, target?): void
Enumerate children nodes
| Name | Type | Description |
|---|---|---|
callback | Callback<Node> | callback |
Optional target | QueryBuilder<any> | target |
void
INodeEnumerable.enumerateNodes
▸ getClassName(): string
string
Return geometry
geometry
▸ getProperties(): OptionsOut
Returns all the properties pertaining to the geometry painter
geometry 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?): GeometryPainter
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?): GeometryPainter
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): GeometryPainter
| Name | Type |
|---|---|
E | extends string |
| Name | Type |
|---|---|
type | E |
callback | (eventType: E, sender: GeometryPainter, args: EventMap[E]) => void |
▸ on(type, callback, options?): GeometryPainter
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?): GeometryPainter
| Name | Type |
|---|---|
E | extends string |
| Name | Type |
|---|---|
type | E |
callback | (eventType: E, sender: GeometryPainter, args: EventMap[E]) => void |
Optional options | Options |
▸ render(context, symbol, bbox): void
Renders parsed svg file on provided context
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering context |
symbol | SymbolShape | symbol to render |
bbox | Rect | Bounds of the symbol in context transformation |
void
▸ setGeometry(geometry): GeometryPainter
Set geometry
▸ setProperties(props?): GeometryPainter
Sets all the properties pertaining to the painter
| Name | Type | Description |
|---|---|---|
Optional props | Options | geometry painter properties |
this
▸ setSilent(bool): GeometryPainter
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ Static getClassName(): string
string