Renderinstruction class abstract
Abstract base class for all rendering instructions in the theme system.
A RenderInstruction represents a basic graphical primitive for drawing map elements. Instructions are parsed from XML theme files and function similarly to CSS rules for HTML, defining how map features should be visually rendered.
Key responsibilities:
- Define rendering parameters and styling properties
- Handle zoom level dependent scaling and display logic
- Provide XML attribute constants for theme parsing
- Support symbol lookup and resource management
- Implementers
Constructors
Properties
- display ↔ MapDisplay
-
Display mode controlling when this instruction should be rendered.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- level ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serial → int
-
final
Methods
-
getBoundary(
RenderInfo< Renderinstruction> renderInfo) → MapRectangle - Returns the boundary of this object around the center of the area or the poi. If the boundary cannot determined exactly we need to estimate it. This method is used only if the renderinstruction adds itself to label or clash (see LayerContainer)
-
getType(
) → String - Returns the type identifier for this rendering instruction.
-
matchNode(
LayerContainer layerContainer, NodeProperties nodeProperties) → void - Checks the nodeProperties and adds itself to the layerContainer if there is something to draw.
-
matchWay(
LayerContainer layerContainer, WayProperties wayProperties) → void - Checks the wayProperties and adds itself to the layerContainer if there is something to draw.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderinstructionScale(
Renderinstruction base, int zoomlevel) → void - Scales rendering parameters based on zoom level and base instruction.
-
secondPass(
SymbolSearcher symbolSearcher) → void - Captions needs to find their assigned symbol to correctly render themself around the symbol. After all rules has been created a second pass is executed where captions are able to find their assigned symbol.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- ALIGN_CENTER → String
-
Text alignment attribute for centering text elements.
final
- ALL → String
-
Universal selector for applying to all elements.
final
- CAT → String
-
Category attribute for element classification.
final
- DISPLAY → String
-
Display mode attribute controlling element visibility.
final
- DY → String
-
Vertical offset attribute for positioning adjustments.
final
- FILL → String
-
Fill color attribute for area and shape rendering.
final
- FONT_FAMILY → String
-
Font family attribute for text rendering.
final
- FONT_SIZE → String
-
Font size attribute for text scaling.
final
- FONT_STYLE → String
-
Font style attribute (normal, italic, bold).
final
- ID → String
-
Unique identifier attribute for element referencing.
final
- K → String
-
Key attribute for tag-based matching.
final
- NONE → String
-
None value indicating absence of styling.
final
- POSITION → String
-
Position attribute for element placement.
final
- PRIORITY → String
-
Priority attribute for rendering order.
final
- R → String
-
Red color component attribute.
final
- RADIUS → String
-
Radius attribute for circular elements.
final
- REPEAT → String
-
Repeat attribute for pattern repetition.
final
- REPEAT_GAP → String
-
Gap between repeated elements.
final
- REPEAT_START → String
-
Starting position for repeated elements.
final
- ROTATE → String
-
Rotation angle attribute for element orientation.
final
- SCALE → String
-
Scale factor attribute for element sizing.
final
- SCALE_RADIUS → String
-
Scale radius attribute for circular scaling.
final
- SRC → String
-
Source attribute for external resources.
final
- STROKE → String
-
Stroke color attribute for line rendering.
final
- STROKE_DASHARRAY → String
-
Dash pattern attribute for line styling.
final
- STROKE_LINECAP → String
-
Line cap style attribute (round, square, butt).
final
- STROKE_LINEJOIN → String
-
Line join style attribute (round, miter, bevel).
final
- STROKE_WIDTH → String
-
Stroke width attribute for line thickness.
final
- SYMBOL_HEIGHT → String
-
Symbol height attribute for icon sizing.
final
- SYMBOL_ID → String
-
Symbol identifier attribute for icon referencing.
final
- SYMBOL_PERCENT → String
-
Symbol percentage attribute for proportional sizing.
final
- SYMBOL_SCALING → String
-
Symbol scaling mode attribute.
final
- SYMBOL_WIDTH → String
-
Symbol width attribute for icon sizing.
final