public final double getDouble(String name) { if (m_jso.typeOf(name) == NativeInternalType.NUMBER) { return m_jso.getDouble(name); } return 0; }
public final double getViewDomain() { final double domain = m_jso.getDouble(Attribute.VIEW_DOMAIN.getProperty()); if (domain < 1) { return 0; } return domain; }
public final double getDouble(String name) { if (m_jso.typeOf(name) == NativeInternalType.NUMBER) { return m_jso.getDouble(name); } return 0; }
public final double getTailOffset() { if (typeOf(Attribute.TAIL_OFFSET) == NativeInternalType.NUMBER) { double offset = m_jso.getDouble(Attribute.TAIL_OFFSET.getProperty()); if (offset >= 0) { return offset; } } return 0; }
public final double getHeadOffset() { if (typeOf(Attribute.HEAD_OFFSET) == NativeInternalType.NUMBER) { double offset = m_jso.getDouble(Attribute.HEAD_OFFSET.getProperty()); if (offset >= 0) { return offset; } } return 0; }
public final double getStrokeAlpha() { if (typeOf(Attribute.STROKE_ALPHA) == NativeInternalType.NUMBER) { double alpha = m_jso.getDouble(Attribute.STROKE_ALPHA.getProperty()); if (alpha < 0) { alpha = 0; } else if (alpha > 1) { alpha = 1; } return alpha; } return 1; }
public final double getFillAlpha() { if (typeOf(Attribute.FILL_ALPHA) == NativeInternalType.NUMBER) { double alpha = m_jso.getDouble(Attribute.FILL_ALPHA.getProperty()); if (alpha < 0) { alpha = 0; } else if (alpha > 1) { alpha = 1; } return alpha; } return 1; }
public final double getAlpha() { if (typeOf(Attribute.ALPHA) == NativeInternalType.NUMBER) { double alpha = m_jso.getDouble(Attribute.ALPHA.getProperty()); if (alpha < 0) { alpha = 0; } else if (alpha > 1) { alpha = 1; } return alpha; } return 1; }
public final double getAngleFactor() { if (typeOf(Attribute.ANGLE_FACTOR) == NativeInternalType.NUMBER) { double factor = m_jso.getDouble(Attribute.ANGLE_FACTOR.getProperty()); if (factor < 0) { factor = 0; } else if (factor > 1) { factor = 1; } return factor; } return 0; }
public final double getVolume() { if (typeOf(Attribute.VOLUME) == NativeInternalType.NUMBER) { double volume = m_jso.getDouble(Attribute.VOLUME.getProperty()); if (volume < 0) { volume = 0; } else if (volume > 1) { volume = 1; } return volume; } return 0.5; }
public final double getCurveFactor() { if (typeOf(Attribute.CURVE_FACTOR) == NativeInternalType.NUMBER) { double factor = m_jso.getDouble(Attribute.CURVE_FACTOR.getProperty()); if (factor <= 0) { factor = 0.5; } else if (factor > 1) { factor = 1; } return factor; } return 0.5; }
public final double getCorrectionOffset() { if (typeOf(Attribute.CORRECTION_OFFSET) == NativeInternalType.NUMBER) { double offset = m_jso.getDouble(Attribute.CORRECTION_OFFSET.getProperty()); if (offset >= 0) { return offset; } } return LienzoCore.get().getDefaultConnectorOffset(); }