本文整理了Java中com.ait.lienzo.client.core.shape.Attributes.getOuterRadius()
方法的一些代码示例,展示了Attributes.getOuterRadius()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getOuterRadius()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Attributes
类名称:Attributes
方法名:getOuterRadius
暂无
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns the {@link Star} outer radius.
*
* @return double
*/
public double getOuterRadius()
{
return getAttributes().getOuterRadius();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Draws this slice.
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double ord = attr.getOuterRadius();
final double ird = attr.getInnerRadius();
if ((ord > 0) && (ird > 0) && (ord > ird))
{
context.beginPath();
context.arc(0, 0, ord, 0, Math.PI * 2, false);
context.arc(0, 0, ird, 0, Math.PI * 2, true);
context.closePath();
return true;
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Draws this slice.
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double ord = attr.getOuterRadius();
final double ird = attr.getInnerRadius();
if ((ord > 0) && (ird > 0) && (ord > ird))
{
context.beginPath();
context.arc(0, 0, ord, 0, Math.PI * 2, false);
context.arc(0, 0, ird, 0, Math.PI * 2, true);
context.closePath();
return true;
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Draws this slice.
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double ord = attr.getOuterRadius();
final double ird = attr.getInnerRadius();
if ((ord > 0) && (ird > 0) && (ord > ird))
{
context.beginPath();
context.arc(0, 0, ord, 0, Math.PI * 2, false);
context.arc(0, 0, ird, 0, Math.PI * 2, true);
context.closePath();
return true;
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Draws this slice.
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double ord = attr.getOuterRadius();
final double ird = attr.getInnerRadius();
if ((ord > 0) && (ird > 0) && (ord > ird))
{
context.beginPath();
context.arc(0, 0, ord, 0, Math.PI * 2, false);
context.arc(0, 0, ird, 0, Math.PI * 2, true);
context.closePath();
return true;
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Draws this slice.
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double end = attr.getEndAngle();
final double beg = attr.getStartAngle();
if (beg == end)
{
return false;
}
final double ord = attr.getOuterRadius();
final double ird = attr.getInnerRadius();
final boolean ccw = attr.isCounterClockwise();
if ((ord > 0) && (ird > 0))
{
context.beginPath();
context.arc(0, 0, ord, beg, end, ccw);
context.arc(0, 0, ird, end, beg, (false == ccw));
context.closePath();
return true;
}
return false;
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
protected void stroke(final Context2D context, final Attributes attr, final double alpha, final boolean filled)
{
if (setStrokeParams(context, attr, alpha, filled))
{
if ((attr.hasShadow()) && (false == context.isSelection()))
{
doApplyShadow(context, attr);
}
context.beginPath();
context.arc(0, 0, attr.getOuterRadius(), 0, Math.PI * 2, false);
context.closePath();
context.stroke();
context.beginPath();
context.arc(0, 0, attr.getInnerRadius(), 0, Math.PI * 2, true);
context.closePath();
context.stroke();
context.restore();
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
protected void stroke(final Context2D context, final Attributes attr, final double alpha, final boolean filled)
{
if (setStrokeParams(context, attr, alpha, filled))
{
if ((attr.hasShadow()) && (false == context.isSelection()))
{
doApplyShadow(context, attr);
}
context.beginPath();
context.arc(0, 0, attr.getOuterRadius(), 0, Math.PI * 2, false);
context.closePath();
context.stroke();
context.beginPath();
context.arc(0, 0, attr.getInnerRadius(), 0, Math.PI * 2, true);
context.closePath();
context.stroke();
context.restore();
}
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
protected void stroke(final Context2D context, final Attributes attr, final double alpha, final boolean filled)
{
if (setStrokeParams(context, attr, alpha, filled))
{
if ((attr.hasShadow()) && (false == context.isSelection()))
{
doApplyShadow(context, attr);
}
context.beginPath();
context.arc(0, 0, attr.getOuterRadius(), 0, Math.PI * 2, false);
context.closePath();
context.stroke();
context.beginPath();
context.arc(0, 0, attr.getInnerRadius(), 0, Math.PI * 2, true);
context.closePath();
context.stroke();
context.restore();
}
}
内容来源于网络,如有侵权,请联系作者删除!