Class KRenderingExtensions
java.lang.Object
de.cau.cs.kieler.klighd.krendering.extensions.KRenderingExtensions
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!
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 Summary
FieldsModifier and TypeFieldDescriptionfinal PositionReferenceYfinal HorizontalAlignmentfinal HorizontalAlignmentfinal HorizontalAlignmentfinal PositionReferenceXfinal PositionReferenceXfinal PositionReferenceYfinal VerticalAlignmentfinal VerticalAlignmentfinal VerticalAlignment -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KArcprotected KArcprotected KArcprotected KEllipse_addEllipse(KLabel label) protected KEllipse_addEllipse(KNode node) protected KEllipse_addEllipse(KPort port) protected KContainerRenderingprotected KContainerRenderingprotected KContainerRenderingprotected KPolygon_addPolygon(KNode node) protected KPolygon_addPolygon(KPort port) protected KRectangle_addRectangle(KLabel label) protected KRectangle_addRectangle(KNode node) Adds a rectangle to the node.protected KRectangle_addRectangle(KPort port) protected KRoundedRectangle_addRoundedRectangle(KLabel label, float cWidth, float cHeight) protected KRoundedRectangle_addRoundedRectangle(KLabel label, float cWidth, float cHeight, float lineWidth) protected KRoundedRectangle_addRoundedRectangle(KNode node, float cWidth, float cHeight) protected KRoundedRectangle_addRoundedRectangle(KNode node, float cWidth, float cHeight, float lineWidth) <T extends KRendering>
T<T extends KRendering>
TaddAction(T rendering, Trigger trigger, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated.<T extends KRendering>
TaddAction(T rendering, Trigger trigger, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed) addArc(EMapPropertyHolder label) <T extends KRendering>
TaddDoubleClickAction(T rendering, String actionId) Configures the action being registered in KLighD withactionIdto be executed after a double (or triple, ...) click onrendering.<T extends KRendering>
TaddDoubleClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated.<T extends KRendering>
TaddDoubleClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed) Configures the action being registered in KLighD withactionIdto be executed after a double (or triple, ...) click onrenderingif the modifier keys are in the given state.addEllipse(EMapPropertyHolder label) addPolygon(EMapPropertyHolder node) addRectangle(EMapPropertyHolder label) addRoundedRectangle(EMapPropertyHolder label, float cWidth, float cHeight) addRoundedRectangle(EMapPropertyHolder label, float cWidth, float cHeight, float lineWidth) <T extends KRendering>
TaddSelectionStyleRef(T rendering, KStyleHolder styleHolder) <T extends KRendering>
TaddSelectionStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes) <T extends KRendering>
TaddSelectionStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes) <T extends KRendering>
TaddSingleClickAction(T rendering, String actionId) Configures the action being registered in KLighD withactionIdto be executed after a single (!) click onrendering.<T extends KRendering>
TaddSingleClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated.<T extends KRendering>
TaddSingleClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed) Configures the action being registered in KLighD withactionIdto be executed after a single (!) click onrendering.<T extends KRendering>
TaddSingleOrMultiClickAction(T rendering, String actionId) Configures the action being registered in KLighD withactionIdto be executed after a single click onrenderingregardless of whether more clicks follow within the system wide double click time.<T extends KRendering>
TaddSingleOrMultiClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated.<T extends KRendering>
TaddSingleOrMultiClickAction(T rendering, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed) Configures the action being registered in KLighD withactionIdto be executed after a single click onrenderingregardless of whether more clicks follow within the system wide double click time, if the modifier keys are in the given state.<T extends KRendering>
TaddStyleRef(T rendering, KStyleHolder styleHolder) <T extends KRendering>
TaddStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes) <T extends KRendering>
TaddStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes) at(KPointPlacementData ppd, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) at(KPointPlacementData ppd, KPosition pos) createKPosition(PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) from(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) from(KAreaPlacementData placementData, KPosition topLeft) from(KGridPlacement placement, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) from(KGridPlacement placement, KPosition topLeft) from(KPolyline polyline, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) getBackground(KRendering rendering) getFontBold(KRendering rendering) booleangetFontBoldValue(KRendering rendering) getFontItalic(KRendering rendering) booleangetFontItalicValue(KRendering rendering) getFontName(KRendering rendering) getFontNameValue(KRendering rendering) getFontSize(KRendering rendering) intgetFontSizeValue(KRendering rendering) getForeground(KRendering rendering) getHorizontalAlignment(KRendering rendering) getInvisible(KRendering rendering) booleangetInvisibleValue(KRendering rendering) Reveals the KRendering of a KGraphElement, e.g.getLineCap(KRendering rendering) getLineCapValue(KRendering rendering) getLineJoin(KRendering rendering) getLineJoinValue(KRendering rendering) getLineStyle(KRendering rendering) getLineStyleValue(KRendering rendering) getLineWidth(KRendering rendering) floatgetLineWidthValue(KRendering rendering) getRotation(KRendering rendering) floatgetRotationValue(KRendering rendering) getShadow(KRendering rendering) getTextStrikeout(KRendering rendering) getTextStrikeoutColorValue(KRendering rendering) booleangetTextStrikeoutValue(KRendering rendering) getTextUnderline(KRendering rendering) getTextUnderlineColorValue(KRendering rendering) getTextUnderlineValue(KRendering rendering) getVerticalAlignment(KRendering rendering) setAlignment(KPointPlacementData ppd, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment) setAreaPlacementData(KRendering rendering) <T extends KRendering>
TsetAreaPlacementData(T rendering, KPosition topLeft, KPosition bottomRight) <T extends KRendering>
TsetBackground(T rendering, Colors color) <T extends KRendering>
TsetBackground(T rendering, Colors color, int alpha) <T extends KRendering>
TsetBackground(T rendering, KColor color) <T extends KRendering>
TsetBackground(T rendering, KColoring<?> coloring) <T extends KRendering>
TsetBackground(T rendering, KColor color, int alpha) <T extends KRendering>
TsetBackgroundColor(T rendering, int red, int green, int blue) <T extends KRendering>
TsetBackgroundColor(T rendering, int red, int green, int blue, int alpha) <T extends KRendering>
TsetBackgroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle) <T extends KRendering>
TsetBackgroundGradient(T rendering, Colors color1, Colors color2, float angle) <T extends KRendering>
TsetBackgroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle) <T extends KRendering>
TsetBackgroundGradient(T rendering, KColor color1, KColor color2, float angle) <T extends KRendering>
TsetBackgroundInvisible(T rendering, boolean invisible) setCornerSize(KRoundedRectangle rect, float cWidth, float cHeight) <T extends KRendering>
TsetDecoratorPlacementData(T rendering, float width, float height, float posAbsolute, float posRelative, boolean rotateWithLine) <T extends KRendering>
TsetFontBold(T rendering, boolean bold) <T extends KRendering>
TsetFontItalic(T rendering, boolean italic) <T extends KRendering>
TsetFontName(T rendering, String name) <T extends KRendering>
TsetFontSize(T rendering, int size) <T extends KRendering>
TsetForeground(T rendering, Colors color) <T extends KRendering>
TsetForeground(T rendering, Colors color, int alpha) <T extends KRendering>
TsetForeground(T rendering, KColor color) <T extends KRendering>
TsetForeground(T rendering, KColoring<?> coloring) <T extends KRendering>
TsetForeground(T rendering, KColor color, int alpha) <T extends KRendering>
TsetForegroundColor(T rendering, int red, int green, int blue) <T extends KRendering>
TsetForegroundColor(T rendering, int red, int green, int blue, int alpha) <T extends KRendering>
TsetForegroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle) <T extends KRendering>
TsetForegroundGradient(T rendering, Colors color1, Colors color2, float angle) <T extends KRendering>
TsetForegroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle) <T extends KRendering>
TsetForegroundGradient(T rendering, KColor color1, KColor color2, float angle) <T extends KRendering>
TsetForegroundInvisible(T rendering, boolean invisible) setGridPlacementData(KRendering rendering) Adds a grid placement to the rendering element with the specified spacing.setGridPlacementData(KRendering rendering, float minCellWidth, float minCellHeight) Adds a grid placement to the rendering element with the specified spacing.<T extends KRendering>
TsetGridPlacementData(T rendering, float minCellWidth, float minCellHeight, KPosition topLeft, KPosition bottomRight) Adds a grid placement to the rendering element with the specified spacing.<T extends KRendering>
TsetHorizontalAlignment(T rendering, HorizontalAlignment ha) <T extends KRendering>
TsetInvisible(T rendering, boolean invisible) <T extends KRendering>
TsetLeftBottomAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin) <T extends KRendering>
TsetLeftBottomAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight) <T extends KRendering>
TsetLeftTopAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin) <T extends KRendering>
TsetLeftTopAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight) <T extends KRendering>
TsetLineCap(T rendering, LineCap style) <T extends KRendering>
TsetLineJoin(T rendering, LineJoin style) <T extends KRendering>
TsetLineJoin(T rendering, LineJoin style, float miterLimit) <T extends KRendering>
TsetLineStyle(T rendering, LineStyle style) <T extends KRendering>
TsetLineWidth(T rendering, float width) setMargins(KPointPlacementData ppd, float horizontalMargin, float verticalMargin) setMinimalSize(KPointPlacementData ppd, float minWidth, float minHeight) <T extends KRendering>
KPointPlacementDatasetPointPlacementData(T rendering) <T extends KRendering>
TsetPointPlacementData(T rendering, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) <T extends KRendering>
TsetPointPlacementData(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) <T extends KRendering>
TsetPointPlacementData(T rendering, KPosition referencePoint, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, float horizontalMargin, float verticalMargin, float minWidth, float minHeight) <T extends KRendering>
TsetRightBottomAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin) <T extends KRendering>
TsetRightBottomAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight) <T extends KRendering>
TsetRightTopAlignedPointPlacementData(T rendering, float leftMargin, float topMargin, float rightMargin, float bottomMargin) <T extends KRendering>
TsetRightTopAlignedPointPlacementData(T rendering, float absoluteLR, float relativeLR, float absoluteTB, float relativeTB, float horizontalMargin, float verticalMargin, float minWidth, float minHeight) <T extends KRendering>
TsetRotation(T rendering, Float rotation) <T extends KRendering>
TsetSelectionBackground(T rendering, Colors color) <T extends KRendering>
TsetSelectionBackground(T rendering, Colors color, int alpha) <T extends KRendering>
TsetSelectionBackground(T rendering, KColor color) <T extends KRendering>
TsetSelectionBackground(T rendering, KColoring<?> coloring) <T extends KRendering>
TsetSelectionBackground(T rendering, KColor color, int alpha) <T extends KRendering>
TsetSelectionBackgroundColor(T rendering, int red, int green, int blue) <T extends KRendering>
TsetSelectionBackgroundColor(T rendering, int red, int green, int blue, int alpha) <T extends KRendering>
TsetSelectionBackgroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle) <T extends KRendering>
TsetSelectionBackgroundGradient(T rendering, Colors color1, Colors color2, float angle) <T extends KRendering>
TsetSelectionBackgroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle) <T extends KRendering>
TsetSelectionBackgroundGradient(T rendering, KColor color1, KColor color2, float angle) <T extends KRendering>
TsetSelectionFontBold(T rendering, boolean bold) <T extends KRendering>
TsetSelectionForeground(T rendering, Colors color) <T extends KRendering>
TsetSelectionForeground(T rendering, Colors color, int alpha) <T extends KRendering>
TsetSelectionForeground(T rendering, KColor color) <T extends KRendering>
TsetSelectionForeground(T rendering, KColor color, int alpha) <T extends KRendering>
TsetSelectionForegroundColor(T rendering, int red, int green, int blue) <T extends KRendering>
TsetSelectionForegroundColor(T rendering, int red, int green, int blue, int alpha) <T extends KRendering>
TsetSelectionForegroundGradient(T rendering, Colors color1, int alpha1, Colors color2, int alpha2, float angle) <T extends KRendering>
TsetSelectionForegroundGradient(T rendering, Colors color1, Colors color2, float angle) <T extends KRendering>
TsetSelectionForegroundGradient(T rendering, KColor color1, int alpha1, KColor color2, int alpha2, float angle) <T extends KRendering>
TsetSelectionForegroundGradient(T rendering, KColor color1, KColor color2, float angle) <T extends KRendering>
TsetSelectionInvisible(T rendering, boolean invisible) <T extends KRendering>
TsetSelectionLineCap(T rendering, LineCap style) <T extends KRendering>
TsetSelectionLineJoin(T rendering, LineJoin style) <T extends KRendering>
TsetSelectionLineJoin(T rendering, LineJoin style, float miterLimit) <T extends KRendering>
TsetSelectionLineStyle(T rendering, LineStyle style) <T extends KRendering>
TsetSelectionLineWidth(T rendering, float width) <T extends KRendering>
TsetSelectionRotation(T rendering, Float rotation) <T extends KRendering>
TsetSelectionStyleRef(T rendering, KStyleHolder styleHolder) <T extends KRendering>
TsetSelectionStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes) <T extends KRendering>
TsetSelectionStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes) <T extends KRendering>
TsetSelectionTextStrikeout(T rendering, boolean struckOut) <T extends KRendering>
TsetSelectionTextStrikeoutColor(T rendering, KColor color) <T extends KRendering>
TsetSelectionTextUnderline(T rendering, Underline underline) <T extends KRendering>
TsetSelectionTextUnderlineColor(T rendering, KColor color) <T extends KRendering>
T<T extends KRendering>
T<T extends KRendering>
T<T extends KRendering>
T<T extends KRendering>
T<T extends KRendering>
T<T extends KRendering>
TsetStyleRef(T rendering, KStyleHolder styleHolder) <T extends KRendering>
TsetStyleRef(T rendering, KStyleHolder styleHolder, Class<KStyle>... styleTypes) <T extends KRendering>
TsetStyleRef(T rendering, KStyleHolder styleHolder, org.eclipse.emf.ecore.EClass... styleTypes) <T extends KRendering>
TsetSurroundingSpace(T rendering, float abs, float rel) <T extends KRendering>
TsetSurroundingSpace(T rendering, float hAbs, float hRel, float vAbs, float vRel) <T extends KRendering>
TsetSurroundingSpaceGrid(T rendering, float abs, float rel) <T extends KRendering>
TsetSurroundingSpaceGrid(T rendering, float hAbs, float hRel, float vAbs, float vRel) <T extends KRendering>
TsetTextStrikeout(T rendering, boolean struckOut) <T extends KRendering>
TsetTextStrikeoutColor(T rendering, KColor color) <T extends KRendering>
TsetTextUnderline(T rendering, Underline underline) <T extends KRendering>
TsetTextUnderlineColor(T rendering, KColor color) <T extends KRendering>
TsetVerticalAlignment(T rendering, VerticalAlignment va) to(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) to(KAreaPlacementData placementData, KPosition bottomRight) to(KGridPlacement placement, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) to(KGridPlacement placement, KPosition bottomRight) to(KPolyline polyline, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) <T extends KRendering>
Twith(T rendering, KPlacementData pd) <T extends KRendering>
T<T extends KRendering>
TwithCopyOf(T rendering, KStyle style)
-
Field Details
-
H_LEFT
-
H_CENTRAL
-
H_RIGHT
-
V_TOP
-
V_CENTRAL
-
V_BOTTOM
-
LEFT
-
RIGHT
-
TOP
-
BOTTOM
-
-
Constructor Details
-
KRenderingExtensions
public KRenderingExtensions()
-
-
Method Details
-
getKRendering
Reveals the KRendering of a KGraphElement, e.g. for the purpose of highlighting. -
getKContainerRendering
-
_addInvisibleContainerRendering
-
_addInvisibleContainerRendering
-
_addInvisibleContainerRendering
-
_addEllipse
-
_addEllipse
-
_addEllipse
-
_addArc
-
_addArc
-
_addArc
-
_addPolygon
-
_addPolygon
-
_addRectangle
Adds a rectangle to the node.- Extension Category:
- composition
- Code Example:
- node.addRectangle => [ it.background = "green".color ]
-
_addRectangle
-
_addRectangle
-
_addRoundedRectangle
- Extension Category:
- composition
-
_addRoundedRectangle
-
_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
-
addText
-
addAction
-
addAction
public <T extends KRendering> T addAction(T rendering, Trigger trigger, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated. -
addAction
public <T extends KRendering> T addAction(T rendering, Trigger trigger, String actionId, ModifierState altPressed, ModifierState ctrlCmdPressed, ModifierState shiftPressed) -
addSingleClickAction
Configures the action being registered in KLighD withactionIdto be executed after a single (!) click onrendering. 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) Deprecated.Configures the action being registered in KLighD withactionIdto be executed after a single (!) click onrendering. 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 withactionIdto be executed after a single (!) click onrendering. 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
Configures the action being registered in KLighD withactionIdto be executed after a double (or triple, ...) click onrendering.- Extension Category:
- actions
-
addDoubleClickAction
public <T extends KRendering> T addDoubleClickAction(T rendering, String actionId, boolean altPressed, boolean ctrlCmdPressed, boolean shiftPressed) Deprecated.Configures the action being registered in KLighD withactionIdto be executed after a double (or triple, ...) click onrenderingif 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 withactionIdto be executed after a double (or triple, ...) click onrenderingif the modifier keys are in the given state.- Extension Category:
- actions
-
addSingleOrMultiClickAction
Configures the action being registered in KLighD withactionIdto be executed after a single click onrenderingregardless 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) Deprecated.Configures the action being registered in KLighD withactionIdto be executed after a single click onrenderingregardless 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 withactionIdto be executed after a single click onrenderingregardless 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
-
with
-
withCopyOf
-
setStyleRef
-
setSelectionStyleRef
-
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
-
addSelectionStyleRef
-
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
-
getInvisibleValue
-
setInvisible
-
setSelectionInvisible
-
getLineWidth
-
getLineWidthValue
-
setLineWidth
- Extension Category:
- style
-
setSelectionLineWidth
-
getLineStyle
- Extension Category:
- style
-
getLineStyleValue
-
setLineStyle
-
setSelectionLineStyle
-
getLineCap
-
getLineCapValue
-
setLineCap
-
setSelectionLineCap
-
getLineJoin
-
getLineJoinValue
-
setLineJoin
-
setSelectionLineJoin
-
setLineJoin
-
setSelectionLineJoin
-
getRotation
-
getRotationValue
-
setRotation
-
setSelectionRotation
-
getBackground
-
setBackground
-
setSelectionBackground
-
setBackground
-
setSelectionBackground
-
setBackground
-
setSelectionBackground
-
setBackground
-
setSelectionBackground
-
setBackground
-
setSelectionBackground
-
setBackgroundColor
-
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
-
getForeground
-
setForeground
-
setForeground
-
setSelectionForeground
-
setForeground
-
setSelectionForeground
-
setForeground
-
setSelectionForeground
-
setForeground
-
setSelectionForeground
-
setForegroundColor
-
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
-
getShadow
-
setShadow
-
setShadow
-
setShadow
-
setShadow
-
setShadow
-
setShadow
-
getFontSize
-
getFontSizeValue
-
setFontSize
-
getFontName
-
getFontNameValue
-
setFontName
-
getFontBold
-
getFontBoldValue
-
setFontBold
-
setSelectionFontBold
-
getFontItalic
-
getFontItalicValue
-
setFontItalic
-
getTextUnderline
-
getTextUnderlineValue
-
getTextUnderlineColorValue
-
setTextUnderline
-
setSelectionTextUnderline
-
setTextUnderlineColor
-
setSelectionTextUnderlineColor
-
getTextStrikeout
-
getTextStrikeoutValue
-
getTextStrikeoutColorValue
-
setTextStrikeout
-
setSelectionTextStrikeout
-
setTextStrikeoutColor
-
setSelectionTextStrikeoutColor
-
getHorizontalAlignment
-
setHorizontalAlignment
-
getVerticalAlignment
-
setVerticalAlignment
-
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
-
from
-
from
public KAreaPlacementData from(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) -
to
-
to
public KRendering to(KAreaPlacementData placementData, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) -
setSurroundingSpace
-
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
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
-
setSurroundingSpaceGrid
public <T extends KRendering> T setSurroundingSpaceGrid(T rendering, float hAbs, float hRel, float vAbs, float vRel) -
from
-
from
public KGridPlacement from(KGridPlacement placement, PositionReferenceX px, float absoluteLR, float relativeLR, PositionReferenceY py, float absoluteTB, float relativeTB) -
to
-
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
-
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
-
finish
-
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
-
addEllipse
-
addArc
-
addPolygon
-
addRectangle
-
addRoundedRectangle
-
addRoundedRectangle
public KRoundedRectangle addRoundedRectangle(EMapPropertyHolder label, float cWidth, float cHeight, float lineWidth)
-
addAction(KRendering, Trigger, String, ModifierState, ModifierState, ModifierState)instead.