Search in sources :

Example 1 with FixedColor

use of org.eclipse.sirius.viewpoint.description.FixedColor in project sirius-components by eclipse-sirius.

the class ContainerMappingStyleProviderTests method createFlatStyle.

private FlatContainerStyleDescription createFlatStyle(int red, int green, int blue) {
    FlatContainerStyleDescription containerStyleDescription = StyleFactory.eINSTANCE.createFlatContainerStyleDescription();
    FixedColor fixedColor = org.eclipse.sirius.viewpoint.description.DescriptionFactory.eINSTANCE.createFixedColor();
    fixedColor.setRed(red);
    fixedColor.setGreen(green);
    fixedColor.setBlue(blue);
    containerStyleDescription.setBorderColor(fixedColor);
    return containerStyleDescription;
}
Also used : FlatContainerStyleDescription(org.eclipse.sirius.diagram.description.style.FlatContainerStyleDescription) FixedColor(org.eclipse.sirius.viewpoint.description.FixedColor)

Example 2 with FixedColor

use of org.eclipse.sirius.viewpoint.description.FixedColor in project sirius-components by eclipse-sirius.

the class EdgeMappingStyleProviderTests method createStyle.

private EdgeStyleDescription createStyle(int red, int green, int blue) {
    EdgeStyleDescription nodeStyleDescription = StyleFactory.eINSTANCE.createEdgeStyleDescription();
    FixedColor fixedColor = org.eclipse.sirius.viewpoint.description.DescriptionFactory.eINSTANCE.createFixedColor();
    fixedColor.setRed(red);
    fixedColor.setGreen(green);
    fixedColor.setBlue(blue);
    nodeStyleDescription.setStrokeColor(fixedColor);
    return nodeStyleDescription;
}
Also used : EdgeStyleDescription(org.eclipse.sirius.diagram.description.style.EdgeStyleDescription) ConditionalEdgeStyleDescription(org.eclipse.sirius.diagram.description.ConditionalEdgeStyleDescription) FixedColor(org.eclipse.sirius.viewpoint.description.FixedColor)

Example 3 with FixedColor

use of org.eclipse.sirius.viewpoint.description.FixedColor in project sirius-components by eclipse-sirius.

the class NodeMappingSizeProviderTests method createSquareStyle.

private SquareDescription createSquareStyle(int red, int green, int blue) {
    SquareDescription squareDescription = StyleFactory.eINSTANCE.createSquareDescription();
    FixedColor fixedColor = org.eclipse.sirius.viewpoint.description.DescriptionFactory.eINSTANCE.createFixedColor();
    fixedColor.setRed(red);
    fixedColor.setGreen(green);
    fixedColor.setBlue(blue);
    squareDescription.setBorderColor(fixedColor);
    return squareDescription;
}
Also used : SquareDescription(org.eclipse.sirius.diagram.description.style.SquareDescription) FixedColor(org.eclipse.sirius.viewpoint.description.FixedColor)

Example 4 with FixedColor

use of org.eclipse.sirius.viewpoint.description.FixedColor in project sirius-components by eclipse-sirius.

the class NodeMappingStyleProviderTests method createSquareStyle.

private NodeStyleDescription createSquareStyle(int red, int green, int blue) {
    NodeStyleDescription nodeStyleDescription = StyleFactory.eINSTANCE.createSquareDescription();
    FixedColor fixedColor = org.eclipse.sirius.viewpoint.description.DescriptionFactory.eINSTANCE.createFixedColor();
    fixedColor.setRed(red);
    fixedColor.setGreen(green);
    fixedColor.setBlue(blue);
    nodeStyleDescription.setBorderColor(fixedColor);
    return nodeStyleDescription;
}
Also used : ConditionalNodeStyleDescription(org.eclipse.sirius.diagram.description.ConditionalNodeStyleDescription) NodeStyleDescription(org.eclipse.sirius.diagram.description.style.NodeStyleDescription) FixedColor(org.eclipse.sirius.viewpoint.description.FixedColor)

Example 5 with FixedColor

use of org.eclipse.sirius.viewpoint.description.FixedColor in project sirius-components by eclipse-sirius.

the class ContainerMappingSizeProviderTests method createFlatStyle.

private FlatContainerStyleDescription createFlatStyle(int red, int green, int blue) {
    FlatContainerStyleDescription containerStyleDescription = StyleFactory.eINSTANCE.createFlatContainerStyleDescription();
    FixedColor fixedColor = org.eclipse.sirius.viewpoint.description.DescriptionFactory.eINSTANCE.createFixedColor();
    fixedColor.setRed(red);
    fixedColor.setGreen(green);
    fixedColor.setBlue(blue);
    containerStyleDescription.setBorderColor(fixedColor);
    return containerStyleDescription;
}
Also used : FlatContainerStyleDescription(org.eclipse.sirius.diagram.description.style.FlatContainerStyleDescription) FixedColor(org.eclipse.sirius.viewpoint.description.FixedColor)

Aggregations

FixedColor (org.eclipse.sirius.viewpoint.description.FixedColor)8 FlatContainerStyleDescription (org.eclipse.sirius.diagram.description.style.FlatContainerStyleDescription)2 AQLInterpreter (org.eclipse.sirius.components.interpreter.AQLInterpreter)1 ConditionalEdgeStyleDescription (org.eclipse.sirius.diagram.description.ConditionalEdgeStyleDescription)1 ConditionalNodeStyleDescription (org.eclipse.sirius.diagram.description.ConditionalNodeStyleDescription)1 EdgeStyleDescription (org.eclipse.sirius.diagram.description.style.EdgeStyleDescription)1 NodeStyleDescription (org.eclipse.sirius.diagram.description.style.NodeStyleDescription)1 SquareDescription (org.eclipse.sirius.diagram.description.style.SquareDescription)1 ComputedColor (org.eclipse.sirius.viewpoint.description.ComputedColor)1 Test (org.junit.jupiter.api.Test)1