Class KRenderingExtensions

java.lang.Object
de.cau.cs.kieler.klighd.krendering.extensions.KRenderingExtensions

public class KRenderingExtensions extends Object
This class contains lots of convenient helper functions for configuring KRendering-based view models, and it does not claim to be complete ;-).
In order to be consistent with the further extension classes the extension methods are non-static ones requiring this class to be instantiated. Since this class doesn't declare any fields (i.e. required memory) the instantiation should not be a problem. The instantiation may be done directly by calling 'new KRenderingExtensions()' or by delegating that to a dependency injection framework.

NOTE: Do NOT introduce create extensions or other continuous memory in that class!
This class contains Xtend extension methods.
  • Field Details

  • Constructor Details

    • KRenderingExtensions

      public KRenderingExtensions()
  • Method Details

    • getKRendering

      public KRendering getKRendering(KGraphElement kge)
      Reveals the KRendering of a KGraphElement, e.g. for the purpose of highlighting.
    • getKContainerRendering

      public KContainerRendering getKContainerRendering(KGraphElement kge)
    • _addInvisibleContainerRendering

      protected KContainerRendering _addInvisibleContainerRendering(KNode node)
    • _addInvisibleContainerRendering

      protected KContainerRendering _addInvisibleContainerRendering(KPort port)
    • _addInvisibleContainerRendering

      protected KContainerRendering _addInvisibleContainerRendering(KLabel label)
    • _addEllipse

      protected KEllipse _addEllipse(KNode node)
    • _addEllipse

      protected KEllipse _addEllipse(KPort port)
    • _addEllipse

      protected KEllipse _addEllipse(KLabel label)
    • _addArc

      protected KArc _addArc(KNode node)
    • _addArc

      protected KArc _addArc(KPort port)
    • _addArc

      protected KArc _addArc(KLabel label)
    • _addPolygon

      protected KPolygon _addPolygon(KNode node)
    • _addPolygon

      protected KPolygon _addPolygon(KPort port)
    • _addRectangle

      protected KRectangle _addRectangle(KNode node)
      Adds a rectangle to the node.
      Extension Category:
      composition
      Code Example:
      node.addRectangle => [ it.background = "green".color ]
    • _addRectangle

      protected KRectangle _addRectangle(KPort port)
    • _addRectangle

      protected KRectangle _addRectangle(KLabel label)
    • _addRoundedRectangle

      protected KRoundedRectangle _addRoundedRectangle(KNode node, float cWidth, float cHeight)
      Extension Category:
      composition
    • _addRoundedRectangle

      protected KRoundedRectangle _addRoundedRectangle(KLabel label, float cWidth, float cHeight)
    • _addRoundedRectangle

      protected KRoundedRectangle _addRoundedRectangle(KNode node, float cWidth, float cHeight, float lineWidth)
    • _addRoundedRectangle

      protected KRoundedRectangle _addRoundedRectangle(KLabel label, float cWidth, float cHeight, float lineWidth)
    • setCornerSize

      public KRoundedRectangle setCornerSize(KRoundedRectangle rect, float cWidth, float cHeight)
    • addText

      public KText addText(KNode node, String text)
    • addAction

      public <T extends KRendering> T addAction(T rendering, Trigger trigger, String actionId)
    • addAction

      public <T extends KRendering> T addAction(T rendering, Trigger trigger, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed)
    • addAction

      public <T extends KRendering> T addAction(T rendering, Trigger trigger, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed)
    • addSingleClickAction

      public <T extends KRendering> T addSingleClickAction(T rendering, String actionId)
      Configures the action being registered in KLighD with actionId to be executed after a single (!) click on rendering. The action triggered with a delay if and only if no subsequent click occurs within the system wide double click time.
      Extension Category:
      actions
    • addSingleClickAction

      public <T extends KRendering> T addSingleClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a single (!) click on rendering. The action triggered with a delay if and only if no subsequent click occurs within the system wide double click time, and if the required modifier keys are pressed. If the modifiers here are false, it is ignored if they are pressed.
      Extension Category:
      actions
    • addSingleClickAction

      public <T extends KRendering> T addSingleClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a single (!) click on rendering. The action triggered with a delay if and only if no subsequent click occurs within the system wide double click time, and if the modifier keys are in the given state.
      Extension Category:
      actions
    • addDoubleClickAction

      public <T extends KRendering> T addDoubleClickAction(T rendering, String actionId)
      Configures the action being registered in KLighD with actionId to be executed after a double (or triple, ...) click on rendering.
      Extension Category:
      actions
    • addDoubleClickAction

      public <T extends KRendering> T addDoubleClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a double (or triple, ...) click on rendering if the required modifier keys are pressed. If the modifiers here are false, it is ignored if they are pressed.
      Extension Category:
      actions
    • addDoubleClickAction

      public <T extends KRendering> T addDoubleClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a double (or triple, ...) click on rendering if the modifier keys are in the given state.
      Extension Category:
      actions
    • addSingleOrMultiClickAction

      public <T extends KRendering> T addSingleOrMultiClickAction(T rendering, String actionId)
      Configures the action being registered in KLighD with actionId to be executed after a single click on rendering regardless of whether more clicks follow within the system wide double click time. In contrast to #addSingleClickAction, there's no delay between the event receipt and the action execution.
      Extension Category:
      actions
    • addSingleOrMultiClickAction

      public <T extends KRendering> T addSingleOrMultiClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a single click on rendering regardless of whether more clicks follow within the system wide double click time, if the required modifier keys are pressed. In contrast to #addSingleClickAction, there's no delay between the event receipt and the action execution.
      Extension Category:
      actions
    • addSingleOrMultiClickAction

      public <T extends KRendering> T addSingleOrMultiClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed)
      Configures the action being registered in KLighD with actionId to be executed after a single click on rendering regardless of whether more clicks follow within the system wide double click time, if the modifier keys are in the given state. In contrast to #addSingleClickAction, there's no delay between the event receipt and the action execution.
      Extension Category:
      actions
    • with

      public <T extends KRendering> T with(T rendering, KPlacementData pd)
    • with

      public <T extends KRendering> T with(T rendering, KStyle style)
    • withCopyOf

      public <T extends KRendering> T withCopyOf(T rendering, KStyle style)
    • setStyleRef

      public <T extends KRendering> T setStyleRef(T rendering, KStyleHolder styleHolder)
    • setSelectionStyleRef

      public <T extends KRendering> T setSelectionStyleRef(T rendering, KStyleHolder styleHolder)
    • setStyleRef

      public <T extends KRendering> T setStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes)
    • setSelectionStyleRef

      public <T extends KRendering> T setSelectionStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes)
    • setStyleRef

      public <T extends KRendering> T setStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes)
    • setSelectionStyleRef

      public <T extends KRendering> T setSelectionStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes)
    • addStyleRef

      public <T extends KRendering> T addStyleRef(T rendering, KStyleHolder styleHolder)
    • addSelectionStyleRef

      public <T extends KRendering> T addSelectionStyleRef(T rendering, KStyleHolder styleHolder)
    • addStyleRef

      public <T extends KRendering> T addStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes)
    • addSelectionStyleRef

      public <T extends KRendering> T addSelectionStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes)
    • addStyleRef

      public <T extends KRendering> T addStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes)
    • addSelectionStyleRef

      public <T extends KRendering> T addSelectionStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes)
    • getInvisible

      public KInvisibility getInvisible(KRendering rendering)
    • getInvisibleValue

      public boolean getInvisibleValue(KRendering rendering)
    • setInvisible

      public <T extends KRendering> T setInvisible(T rendering, boolean invisible)
    • setSelectionInvisible

      public <T extends KRendering> T setSelectionInvisible(T rendering, boolean invisible)
    • getLineWidth

      public KLineWidth getLineWidth(KRendering rendering)
    • getLineWidthValue

      public float getLineWidthValue(KRendering rendering)
    • setLineWidth

      public <T extends KRendering> T setLineWidth(T rendering, float width)
      Extension Category:
      style
    • setSelectionLineWidth

      public <T extends KRendering> T setSelectionLineWidth(T rendering, float width)
    • getLineStyle

      public KLineStyle getLineStyle(KRendering rendering)
      Extension Category:
      style
    • getLineStyleValue

      public LineStyle getLineStyleValue(KRendering rendering)
    • setLineStyle

      public <T extends KRendering> T setLineStyle(T rendering, LineStyle style)
    • setSelectionLineStyle

      public <T extends KRendering> T setSelectionLineStyle(T rendering, LineStyle style)
    • getLineCap

      public KLineCap getLineCap(KRendering rendering)
    • getLineCapValue

      public LineCap getLineCapValue(KRendering rendering)
    • setLineCap

      public <T extends KRendering> T setLineCap(T rendering, LineCap style)
    • setSelectionLineCap

      public <T extends KRendering> T setSelectionLineCap(T rendering, LineCap style)
    • getLineJoin

      public KLineJoin getLineJoin(KRendering rendering)
    • getLineJoinValue

      public LineJoin getLineJoinValue(KRendering rendering)
    • setLineJoin

      public <T extends KRendering> T setLineJoin(T rendering, LineJoin style)
    • setSelectionLineJoin

      public <T extends KRendering> T setSelectionLineJoin(T rendering, LineJoin style)
    • setLineJoin

      public <T extends KRendering> T setLineJoin(T rendering, LineJoin style, float miterLimit)
    • setSelectionLineJoin

      public <T extends KRendering> T setSelectionLineJoin(T rendering, LineJoin style, float miterLimit)
    • getRotation

      public KRotation getRotation(KRendering rendering)
    • getRotationValue

      public float getRotationValue(KRendering rendering)
    • setRotation

      public <T extends KRendering> T setRotation(T rendering, Float rotation)
    • setSelectionRotation

      public <T extends KRendering> T setSelectionRotation(T rendering, Float rotation)
    • getBackground

      public KBackground getBackground(KRendering rendering)
    • setBackground

      public <T extends KRendering> T setBackground(T rendering, KColoring<?> coloring)
    • setSelectionBackground

      public <T extends KRendering> T setSelectionBackground(T rendering, KColoring<?> coloring)
    • setBackground

      public <T extends KRendering> T setBackground(T rendering, KColor color)
    • setSelectionBackground

      public <T extends KRendering> T setSelectionBackground(T rendering, KColor color)
    • setBackground

      public <T extends KRendering> T setBackground(T rendering, KColor color, int alpha)
    • setSelectionBackground

      public <T extends KRendering> T setSelectionBackground(T rendering, KColor color, int alpha)
    • setBackground

      public <T extends KRendering> T setBackground(T rendering, Colors color)
    • setSelectionBackground

      public <T extends KRendering> T setSelectionBackground(T rendering, Colors color)
    • setBackground

      public <T extends KRendering> T setBackground(T rendering, Colors color, int alpha)
    • setSelectionBackground

      public <T extends KRendering> T setSelectionBackground(T rendering, Colors color, int alpha)
    • setBackgroundColor

      public <T extends KRendering> T setBackgroundColor(T rendering, int red, int green, int blue)
    • setSelectionBackgroundColor

      public <T extends KRendering> T setSelectionBackgroundColor(T rendering, int red, int green, int blue)
    • setBackgroundColor

      public <T extends KRendering> T setBackgroundColor(T rendering, int red, int green, int blue, int alpha)
    • setSelectionBackgroundColor

      public <T extends KRendering> T setSelectionBackgroundColor(T rendering, int red, int green, int blue, int alpha)
    • setBackgroundGradient

      public <T extends KRendering> T setBackgroundGradient(T rendering, KColor color1, KColor color2, float angle)
    • setSelectionBackgroundGradient

      public <T extends KRendering> T setSelectionBackgroundGradient(T rendering, KColor color1, KColor color2, float angle)
    • setBackgroundGradient

      public <T extends KRendering> T setBackgroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle)
    • setSelectionBackgroundGradient

      public <T extends KRendering> T setSelectionBackgroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle)
    • setBackgroundGradient

      public <T extends KRendering> T setBackgroundGradient(T rendering, Colors color1, Colors color2, float angle)
    • setSelectionBackgroundGradient

      public <T extends KRendering> T setSelectionBackgroundGradient(T rendering, Colors color1, Colors color2, float angle)
    • setBackgroundGradient

      public <T extends KRendering> T setBackgroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle)
    • setSelectionBackgroundGradient

      public <T extends KRendering> T setSelectionBackgroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle)
    • setBackgroundInvisible

      public <T extends KRendering> T setBackgroundInvisible(T rendering, boolean invisible)
    • getForeground

      public KForeground getForeground(KRendering rendering)
    • setForeground

      public <T extends KRendering> T setForeground(T rendering, KColoring<?> coloring)
    • setForeground

      public <T extends KRendering> T setForeground(T rendering, KColor color)
    • setSelectionForeground

      public <T extends KRendering> T setSelectionForeground(T rendering, KColor color)
    • setForeground

      public <T extends KRendering> T setForeground(T rendering, KColor color, int alpha)
    • setSelectionForeground

      public <T extends KRendering> T setSelectionForeground(T rendering, KColor color, int alpha)
    • setForeground

      public <T extends KRendering> T setForeground(T rendering, Colors color)
    • setSelectionForeground

      public <T extends KRendering> T setSelectionForeground(T rendering, Colors color)
    • setForeground

      public <T extends KRendering> T setForeground(T rendering, Colors color, int alpha)
    • setSelectionForeground

      public <T extends KRendering> T setSelectionForeground(T rendering, Colors color, int alpha)
    • setForegroundColor

      public <T extends KRendering> T setForegroundColor(T rendering, int red, int green, int blue)
    • setSelectionForegroundColor

      public <T extends KRendering> T setSelectionForegroundColor(T rendering, int red, int green, int blue)
    • setForegroundColor

      public <T extends KRendering> T setForegroundColor(T rendering, int red, int green, int blue, int alpha)
    • setSelectionForegroundColor

      public <T extends KRendering> T setSelectionForegroundColor(T rendering, int red, int green, int blue, int alpha)
    • setForegroundGradient

      public <T extends KRendering> T setForegroundGradient(T rendering, KColor color1, KColor color2, float angle)
    • setSelectionForegroundGradient

      public <T extends KRendering> T setSelectionForegroundGradient(T rendering, KColor color1, KColor color2, float angle)
    • setForegroundGradient

      public <T extends KRendering> T setForegroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle)
    • setSelectionForegroundGradient

      public <T extends KRendering> T setSelectionForegroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle)
    • setForegroundGradient

      public <T extends KRendering> T setForegroundGradient(T rendering, Colors color1, Colors color2, float angle)
    • setSelectionForegroundGradient

      public <T extends KRendering> T setSelectionForegroundGradient(T rendering, Colors color1, Colors color2, float angle)
    • setForegroundGradient

      public <T extends KRendering> T setForegroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle)
    • setSelectionForegroundGradient

      public <T extends KRendering> T setSelectionForegroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle)
    • setForegroundInvisible

      public <T extends KRendering> T setForegroundInvisible(T rendering, boolean invisible)
    • getShadow

      public KShadow getShadow(KRendering rendering)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, Colors color)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, Colors color, float size)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, Colors color, float xOffset, float yOffset)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, KColor color)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, KColor color, float size)
    • setShadow

      public <T extends KRendering> T setShadow(T rendering, KColor color, float xOffset, float yOffset)
    • getFontSize

      public KFontSize getFontSize(KRendering rendering)
    • getFontSizeValue

      public int getFontSizeValue(KRendering rendering)
    • setFontSize

      public <T extends KRendering> T setFontSize(T rendering, int size)
    • getFontName

      public KFontName getFontName(KRendering rendering)
    • getFontNameValue

      public String getFontNameValue(KRendering rendering)
    • setFontName

      public <T extends KRendering> T setFontName(T rendering, String name)
    • getFontBold

      public KFontBold getFontBold(KRendering rendering)
    • getFontBoldValue

      public boolean getFontBoldValue(KRendering rendering)
    • setFontBold

      public <T extends KRendering> T setFontBold(T rendering, boolean bold)
    • setSelectionFontBold

      public <T extends KRendering> T setSelectionFontBold(T rendering, boolean bold)
    • getFontItalic

      public KFontItalic getFontItalic(KRendering rendering)
    • getFontItalicValue

      public boolean getFontItalicValue(KRendering rendering)
    • setFontItalic

      public <T extends KRendering> T setFontItalic(T rendering, boolean italic)
    • getTextUnderline

      public KTextUnderline getTextUnderline(KRendering rendering)
    • getTextUnderlineValue

      public Underline getTextUnderlineValue(KRendering rendering)
    • getTextUnderlineColorValue

      public KColor getTextUnderlineColorValue(KRendering rendering)
    • setTextUnderline

      public <T extends KRendering> T setTextUnderline(T rendering, Underline underline)
    • setSelectionTextUnderline

      public <T extends KRendering> T setSelectionTextUnderline(T rendering, Underline underline)
    • setTextUnderlineColor

      public <T extends KRendering> T setTextUnderlineColor(T rendering, KColor color)
    • setSelectionTextUnderlineColor

      public <T extends KRendering> T setSelectionTextUnderlineColor(T rendering, KColor color)
    • getTextStrikeout

      public KTextStrikeout getTextStrikeout(KRendering rendering)
    • getTextStrikeoutValue

      public boolean getTextStrikeoutValue(KRendering rendering)
    • getTextStrikeoutColorValue

      public KColor getTextStrikeoutColorValue(KRendering rendering)
    • setTextStrikeout

      public <T extends KRendering> T setTextStrikeout(T rendering, boolean struckOut)
    • setSelectionTextStrikeout

      public <T extends KRendering> T setSelectionTextStrikeout(T rendering, boolean struckOut)
    • setTextStrikeoutColor

      public <T extends KRendering> T setTextStrikeoutColor(T rendering, KColor color)
    • setSelectionTextStrikeoutColor

      public <T extends KRendering> T setSelectionTextStrikeoutColor(T rendering, KColor color)
    • getHorizontalAlignment

      public KHorizontalAlignment getHorizontalAlignment(KRendering rendering)
    • setHorizontalAlignment

      public <T extends KRendering> T setHorizontalAlignment(T rendering, HorizontalAlignment ha)
    • getVerticalAlignment

      public KVerticalAlignment getVerticalAlignment(KRendering rendering)
    • setVerticalAlignment

      public <T extends KRendering> T setVerticalAlignment(T rendering, VerticalAlignment va)
    • from

      public KPolyline from(KPolyline polyline, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • to

      public KPolyline to(KPolyline polyline, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • setAreaPlacementData

      public <T extends KRendering> T setAreaPlacementData(T rendering, KPosition topLeft, KPosition bottomRight)
    • setAreaPlacementData

      public KAreaPlacementData setAreaPlacementData(KRendering rendering)
    • from

      public KAreaPlacementData from(KAreaPlacementData placementData, KPosition topLeft)
    • from

      public KAreaPlacementData from(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • to

      public KRendering to(KAreaPlacementData placementData, KPosition bottomRight)
    • to

      public KRendering to(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • setSurroundingSpace

      public <T extends KRendering> T setSurroundingSpace(T rendering, float abs, float rel)
    • setSurroundingSpace

      public <T extends KRendering> T setSurroundingSpace(T rendering, float hAbs, float hRel, float vAbs, float vRel)
    • setGridPlacementData

      public <T extends KRendering> T setGridPlacementData(T rendering, float minCellWidth, float minCellHeight, KPosition topLeft, KPosition bottomRight)
      Adds a grid placement to the rendering element with the specified spacing.
    • setGridPlacementData

      public KGridPlacementData setGridPlacementData(KRendering rendering)
      Adds a grid placement to the rendering element with the specified spacing.
      Code Example:
      rectangle.setGridPlacementData => [ cell | cell.from(LEFT, padding, 0, TOP, padding - 2, 0).to(RIGHT, padding, 0, BOTTOM, 0, 0) cell.minCellHeight = propBarHeight cell.flexibleHeight = false ]
    • setGridPlacementData

      public KGridPlacementData setGridPlacementData(KRendering rendering, float minCellWidth, float minCellHeight)
      Adds a grid placement to the rendering element with the specified spacing.
    • setSurroundingSpaceGrid

      public <T extends KRendering> T setSurroundingSpaceGrid(T rendering, float abs, float rel)
    • setSurroundingSpaceGrid

      public <T extends KRendering> T setSurroundingSpaceGrid(T rendering, float hAbs, float hRel, float vAbs, float vRel)
    • from

      public KGridPlacement from(KGridPlacement placement, KPosition topLeft)
    • from

      public KGridPlacement from(KGridPlacement placement, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • to

      public KContainerRendering to(KGridPlacement placement, KPosition bottomRight)
    • to

      public KContainerRendering to(KGridPlacement placement, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • setLeftTopAlignedPointPlacementData

      public <T extends KRendering> T setLeftTopAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin)
    • setLeftTopAlignedPointPlacementData

      public <T extends KRendering> T setLeftTopAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setLeftBottomAlignedPointPlacementData

      public <T extends KRendering> T setLeftBottomAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin)
    • setLeftBottomAlignedPointPlacementData

      public <T extends KRendering> T setLeftBottomAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setRightTopAlignedPointPlacementData

      public <T extends KRendering> T setRightTopAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin)
    • setRightTopAlignedPointPlacementData

      public <T extends KRendering> T setRightTopAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setRightBottomAlignedPointPlacementData

      public <T extends KRendering> T setRightBottomAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin)
    • setRightBottomAlignedPointPlacementData

      public <T extends KRendering> T setRightBottomAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setPointPlacementData

      public <T extends KRendering> T setPointPlacementData(T rendering, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • setPointPlacementData

      public <T extends KRendering> KPointPlacementData setPointPlacementData(T rendering)
    • at

    • at

      public KPointPlacementData at(KPointPlacementData ppd, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • setAlignment

      public KPointPlacementData setAlignment(KPointPlacementData ppd, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
    • setMargins

      public KPointPlacementData setMargins(KPointPlacementData ppd, float horizontalMargin, float verticalMargin)
    • setMinimalSize

      public KPointPlacementData setMinimalSize(KPointPlacementData ppd, float minWidth, float minHeight)
    • finish

      public KRendering finish(KPointPlacementData ppd)
    • setPointPlacementData

      public <T extends KRendering> T setPointPlacementData(T rendering, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setPointPlacementData

      public <T extends KRendering> T setPointPlacementData(T rendering, KPosition referencePoint, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, float horizontalMargin, float verticalMargin, float minWidth, float minHeight)
    • setDecoratorPlacementData

      public <T extends KRendering> T setDecoratorPlacementData(T rendering, float width, float height, float posAbsolute, float posRelative, boolean rotateWithLine)
    • createKPosition

      public KPosition createKPosition(PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB)
    • addInvisibleContainerRendering

      public KContainerRendering addInvisibleContainerRendering(EMapPropertyHolder label)
    • addEllipse

      public KEllipse addEllipse(EMapPropertyHolder label)
    • addArc

      public KArc addArc(EMapPropertyHolder label)
    • addPolygon

      public KPolygon addPolygon(EMapPropertyHolder node)
    • addRectangle

      public KRectangle addRectangle(EMapPropertyHolder label)
    • addRoundedRectangle

      public KRoundedRectangle addRoundedRectangle(EMapPropertyHolder label, float cWidth, float cHeight)
    • addRoundedRectangle

      public KRoundedRectangle addRoundedRectangle(EMapPropertyHolder label, float cWidth, float cHeight, float lineWidth)