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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations