public class LienzoShapeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SOURCE_MAGNET |
static int |
DEFAULT_TARGET_MAGNET |
| Constructor and Description |
|---|
LienzoShapeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Magnet[] |
getDefaultMagnets(Shape sourceShape,
Shape targetShape) |
static Magnet[] |
getDefaultMagnets(com.ait.lienzo.client.core.shape.wires.WiresShape sourceShape,
com.ait.lienzo.client.core.shape.wires.WiresShape targetShape)
Obtain the magnet indexes on the source and target shapes.
|
static com.ait.lienzo.client.core.types.LinearGradient |
getLinearGradient(String startColor,
String endColor,
Double width,
Double height) |
static com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout |
getWiresLayout(HasChildren.Layout layout) |
static void |
scalePicture(com.ait.lienzo.client.core.shape.Picture picture,
double width,
double height) |
public static final int DEFAULT_SOURCE_MAGNET
public static final int DEFAULT_TARGET_MAGNET
public static void scalePicture(com.ait.lienzo.client.core.shape.Picture picture,
double width,
double height)
public static com.ait.lienzo.client.core.shape.wires.LayoutContainer.Layout getWiresLayout(HasChildren.Layout layout)
public static com.ait.lienzo.client.core.types.LinearGradient getLinearGradient(String startColor, String endColor, Double width, Double height)
public static Magnet[] getDefaultMagnets(com.ait.lienzo.client.core.shape.wires.WiresShape sourceShape, com.ait.lienzo.client.core.shape.wires.WiresShape targetShape)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.