本文整理了Java中com.ait.lienzo.client.core.shape.Line.setPoints()
方法的一些代码示例,展示了Line.setPoints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.setPoints()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Line
类名称:Line
方法名:setPoints
[英]Sets the end-points of this line. The points should be a 2-element Point2DArray
[中]设置此直线的端点。这些点应该是一个2元素的Point2D数组
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
@Override
public Line setPoint2DArray(Point2DArray points)
{
return setPoints(points);
}
代码示例来源:origin: com.ahome-it/lienzo-core
@Override
public Line setPoint2DArray(final Point2DArray points)
{
return setPoints(points);
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
public Line setPoint2DArray(final Point2DArray points)
{
return setPoints(points);
}
代码示例来源:origin: ahome-it/lienzo-core
@Override
public Line setPoint2DArray(final Point2DArray points)
{
return setPoints(points);
}
代码示例来源:origin: com.ahome-it/lienzo-core
public Line(final Point2D p1, final Point2D p2)
{
super(ShapeType.LINE);
setPoints(new Point2DArray(p1, p2));
}
代码示例来源:origin: ahome-it/lienzo-core
public Line(final Point2D p1, final Point2D p2)
{
super(ShapeType.LINE);
setPoints(new Point2DArray(p1, p2));
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
public Line(final Point2D p1, final Point2D p2)
{
super(ShapeType.LINE);
setPoints(new Point2DArray(p1, p2));
}
代码示例来源:origin: ahome-it/lienzo-core
public Line(final Point2D p1, final Point2D p2)
{
super(ShapeType.LINE);
setPoints(new Point2DArray(p1, p2));
}
代码示例来源:origin: com.ahome-it/lienzo-charts
@Override
protected void doAnimateValuesAxisIntervals(final Line valueAxisInterval, final double p00, final double p01, final double p10, final double p11)
{
if (valueAxisInterval != null) valueAxisInterval.setPoints(new Point2DArray(new Point2D(p00, p01), new Point2D(p10, p11)));
}
代码示例来源:origin: com.ahome-it/lienzo-charts
@Override
protected void doAnimateValuesAxisIntervals(final Line valueAxisInterval, final double p00, final double p01, final double p10, final double p11)
{
if (valueAxisInterval != null) valueAxisInterval.setPoints(new Point2DArray(new Point2D(p00, p01), new Point2D(p10, p11)));
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
private void updateGridWidgetConnectors() {
for (Map.Entry<GridWidgetConnector, Line> e : gridWidgetConnectors.entrySet()) {
final GridWidgetConnector connector = e.getKey();
final Line line = e.getValue();
final GridColumn<?> sourceGridColumn = connector.getSourceColumn();
final GridColumn<?> targetGridColumn = connector.getTargetColumn();
final GridWidget sourceGridWidget = getLinkedGridWidget(sourceGridColumn);
final GridWidget targetGridWidget = getLinkedGridWidget(targetGridColumn);
final Point2D sp = new Point2D(sourceGridWidget.getX() + sourceGridWidget.getWidth() / 2,
sourceGridWidget.getY() + sourceGridWidget.getHeight() / 2);
final Point2D ep = new Point2D(targetGridWidget.getX() + targetGridWidget.getWidth() / 2,
targetGridWidget.getY() + targetGridWidget.getHeight() / 2);
line.setPoints(new Point2DArray(sp,
ep));
}
}
代码示例来源:origin: kiegroup/appformer
private void updateGridWidgetConnectors() {
for (Map.Entry<GridWidgetConnector, Line> e : gridWidgetConnectors.entrySet()) {
final GridWidgetConnector connector = e.getKey();
final Line line = e.getValue();
final GridColumn<?> sourceGridColumn = connector.getSourceColumn();
final GridColumn<?> targetGridColumn = connector.getTargetColumn();
final GridWidget sourceGridWidget = getLinkedGridWidget(sourceGridColumn);
final GridWidget targetGridWidget = getLinkedGridWidget(targetGridColumn);
final Point2D sp = new Point2D(sourceGridWidget.getX() + sourceGridWidget.getWidth() / 2,
sourceGridWidget.getY() + sourceGridWidget.getHeight() / 2);
final Point2D ep = new Point2D(targetGridWidget.getX() + targetGridWidget.getWidth() / 2,
targetGridWidget.getY() + targetGridWidget.getHeight() / 2);
line.setPoints(new Point2DArray(sp,
ep));
}
}
代码示例来源:origin: org.uberfire/uberfire-wires-core-grids
@Override
public RendererCommand renderHeaderBodyDivider(final double width) {
return (RenderHeaderGridLinesCommand) (rc) -> {
if (!rc.isSelectionLayer()) {
final Line divider = theme.getGridHeaderBodyDivider();
divider.setPoints(new Point2DArray(new Point2D(0,
getHeaderHeight() + 0.5),
new Point2D(width,
getHeaderHeight() + 0.5)));
rc.getGroup().add(divider);
}
};
}
代码示例来源:origin: kiegroup/appformer
@Override
public RendererCommand renderHeaderBodyDivider(final double width) {
return (RenderHeaderGridLinesCommand) (rc) -> {
if (!rc.isSelectionLayer()) {
final Line divider = theme.getGridHeaderBodyDivider();
divider.setPoints(new Point2DArray(new Point2D(0,
getHeaderHeight() + 0.5),
new Point2D(width,
getHeaderHeight() + 0.5)));
rc.getGroup().add(divider);
}
};
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void drawHorizontalLine(final double pos, final double left, final double right, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(left, pos, right, pos);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(left, pos), new Point2D(right, pos)));
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
代码示例来源:origin: com.ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
代码示例来源:origin: ahome-it/lienzo-core
private void drawVerticalLine(final double pos, final double top, final double bottom, final int index)
{
Line line = (Line) m_lines[index];
if (line == null)
{
line = new Line(pos, top, pos, bottom);
line.setStrokeWidth(m_strokeWidth);
line.setStrokeColor(m_strokeColor);
line.setDashArray(m_dashArray);
getOverLayer().add(line);
m_lines[index] = line;
}
else
{
line.setPoints(new Point2DArray(new Point2D(pos, top), new Point2D(pos, bottom)));
}
}
}
内容来源于网络,如有侵权,请联系作者删除!