public class NGPath extends NGShape
NGShape.Mode
NGNode.DirtyFlag, NGNode.RenderRootResult
Modifier and Type | Field and Description |
---|---|
private Path2D |
p |
drawPaint, drawStroke, fillPaint, mode, shapeRep, THRESHOLD
childDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, DIRTY_REGION_CONTAINS_NODE_BOUNDS, DIRTY_REGION_CONTAINS_OR_INTERSECTS_NODE_BOUNDS, DIRTY_REGION_INTERSECTS_NODE_BOUNDS, dirtyBounds, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds
Constructor and Description |
---|
NGPath() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsPath2dOnUpdate() |
void |
addArcTo(float arcX,
float arcY,
float arcW,
float arcH,
float arcStart,
float arcExtent,
float xAxisRotation) |
void |
addClosePath() |
void |
addCubicTo(float ctrlx1,
float ctrly1,
float ctrlx2,
float ctrly2,
float x,
float y) |
void |
addLineTo(float x,
float y) |
void |
addMoveTo(float x,
float y) |
void |
addQuadTo(float ctrlx,
float ctrly,
float x,
float y) |
float |
getCurrentX() |
float |
getCurrentY() |
Path2D |
getGeometry() |
Shape |
getShape() |
void |
reset() |
void |
setFillRule(FillRule fillRule) |
private int |
toWindingRule(FillRule rule) |
void |
update() |
void |
updateWithPath2d(Path2D path) |
createShapeRep, geometryChanged, getFillPaint, getMode, getStrokeShape, hasOpaqueRegion, hasOverlappingContents, isSmooth, renderContent, renderContent2D, setDrawPaint, setDrawStroke, setDrawStroke, setFillPaint, setMode, setSmooth, visualsChanged
accumulateDirtyRegions, accumulateGroupDirtyRegion, accumulateNodeDirtyRegion, applyClip, applyEffect, applyTransform, checkBoundsInQuad, clearDirty, clearDirtyTree, clearPainted, computeNodeRenderRoot, computeOpaqueRegion, computePadding, computeRenderRoot, doPreCulling, doRender, drawDirtyOpts, effectChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getFilterContext, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isOpaqueRegionInvalid, isReadbackSupported, isRectClip, isShape3D, isVisible, markCullRegions, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderClip, renderEffect, renderForcedContent, renderForClip, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, supportsOpaqueRegions, toString
private Path2D p
public void reset()
public void update()
private int toWindingRule(FillRule rule)
public void setFillRule(FillRule fillRule)
public float getCurrentX()
public float getCurrentY()
public void addClosePath()
public void addMoveTo(float x, float y)
public void addLineTo(float x, float y)
public void addQuadTo(float ctrlx, float ctrly, float x, float y)
public void addCubicTo(float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x, float y)
public void addArcTo(float arcX, float arcY, float arcW, float arcH, float arcStart, float arcExtent, float xAxisRotation)
public Path2D getGeometry()
public boolean acceptsPath2dOnUpdate()
public void updateWithPath2d(Path2D path)