Search in sources :

Example 21 with Rectangle

use of com.ait.lienzo.client.core.shape.Rectangle in project drools-wb by kiegroup.

the class ScenarioGridColumnRenderer method applyBackgroundColor.

protected void applyBackgroundColor(ScenarioGridCell cell, GridBodyCellRenderContext context, Group group, ScenarioGridRendererTheme theme) {
    if (cell.isErrorMode()) {
        final Rectangle bodyErrorBackground = theme.getBodyErrorBackground(cell);
        bodyErrorBackground.setWidth(context.getCellWidth());
        bodyErrorBackground.setHeight(context.getCellHeight());
        group.add(bodyErrorBackground);
    }
}
Also used : Rectangle(com.ait.lienzo.client.core.shape.Rectangle)

Aggregations

Rectangle (com.ait.lienzo.client.core.shape.Rectangle)21 Group (com.ait.lienzo.client.core.shape.Group)10 Test (org.junit.Test)5 Text (com.ait.lienzo.client.core.shape.Text)3 Before (org.junit.Before)3 SVGContainer (org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer)3 IDrawable (com.ait.lienzo.client.core.shape.IDrawable)2 IPathClipper (com.ait.lienzo.client.core.shape.IPathClipper)2 SVGPrimitiveShape (org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape)2 GridColumn (org.uberfire.ext.wires.core.grids.client.model.GridColumn)2 AnimationProperties (com.ait.lienzo.client.core.animation.AnimationProperties)1 IAnimation (com.ait.lienzo.client.core.animation.IAnimation)1 IAnimationCallback (com.ait.lienzo.client.core.animation.IAnimationCallback)1 IAnimationHandle (com.ait.lienzo.client.core.animation.IAnimationHandle)1 MultiPath (com.ait.lienzo.client.core.shape.MultiPath)1 Triangle (com.ait.lienzo.client.core.shape.Triangle)1 BoundingBox (com.ait.lienzo.client.core.types.BoundingBox)1 Point2D (com.ait.lienzo.client.core.types.Point2D)1 Transform (com.ait.lienzo.client.core.types.Transform)1 GuidedDecisionTableRenderer (org.drools.workbench.screens.guided.dtable.client.widget.table.themes.GuidedDecisionTableRenderer)1