Tabnine Logo
Shadow.getBlur
Code IndexAdd Tabnine to your IDE (free)

How to use
getBlur
method
in
com.ait.lienzo.client.core.types.Shadow

Best Java code snippets using com.ait.lienzo.client.core.types.Shadow.getBlur (Showing top 2 results out of 315)

origin: org.kie.workbench.stunner/kie-wb-common-stunner-lienzo

private void updateShadow(final HasShadow shape) {
  if (isStateSelected(handler.getShapeState())) {
    shape.setShadow(SHADOW_SELECTED.getColor(),
            SHADOW_SELECTED.getBlur(),
            SHADOW_SELECTED.getOffset().getX(),
            SHADOW_SELECTED.getOffset().getY());
  } else if (isStateHighlight(handler.getShapeState())) {
    shape.setShadow(SHADOW_HIGHLIGHT.getColor(),
            SHADOW_HIGHLIGHT.getBlur(),
            SHADOW_HIGHLIGHT.getOffset().getX(),
            SHADOW_HIGHLIGHT.getOffset().getY());
  } else {
    removeShadow(shape);
  }
}
origin: org.kie.workbench.stunner/kie-wb-common-stunner-svg-client

@Test
public void testShadow() {
  Shape<?> instance = mock(Shape.class);
  tested = new SVGPrimitiveShape(instance);
  tested.setShadow("c1",
           1,
           2,
           3);
  ArgumentCaptor<Shadow> shadowArgumentCaptor = ArgumentCaptor.forClass(Shadow.class);
  verify(instance, times(1)).setShadow(shadowArgumentCaptor.capture());
  Shadow shadow = shadowArgumentCaptor.getValue();
  assertEquals("c1", shadow.getColor());
  assertEquals(1, shadow.getBlur());
  assertEquals(2, shadow.getOffset().getX(), 0);
  assertEquals(3, shadow.getOffset().getY(), 0);
}
com.ait.lienzo.client.core.typesShadowgetBlur

Javadoc

Returns the blur.

Popular methods of Shadow

  • <init>
    Constructs a Shadow from a color (as a String), a blur and an offset (offx, offy).
  • getJSO
  • normalizeShadowColor
  • toJSONString
  • getColor
    Returns the color as a string.
  • getOffset
    Returns the offset as a Point2D.

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now