Codota Logo
Shadow.getOffset
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Shadow
private void myMethod () {
Shadow s =
  • Codota IconShadow.ShadowJSO jso;new Shadow(jso)
  • Codota IconAttributes attributes;attributes.getShadow()
  • Codota IconShape shape;shape.getAttributes().getShadow()
  • Smart code suggestions by Codota
}
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.typesShadowgetOffset

Javadoc

Returns the offset as a Point2D.

Popular methods of Shadow

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

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now