public class NGRectangle extends NGShape
NGShape.Mode
NGNode.DirtyFlag, NGNode.RenderRootResult
drawPaint, drawStroke, fillPaint, mode, shapeRep
childDirty, contentBounds, cullingBits, dirty, DIRTY_CHILDREN_ACCUMULATED_THRESHOLD, dirtyChildrenAccumulated, TEMP_TRANSFORM, transformedBounds
Constructor and Description |
---|
NGRectangle() |
Modifier and Type | Method and Description |
---|---|
protected RectBounds |
computeOpaqueRegion(RectBounds opaqueRegion)
Computes and returns the opaque region for this node.
|
protected ShapeRep |
createShapeRep(Graphics g) |
Shape |
getShape() |
protected boolean |
hasOpaqueRegion()
Called only on NGNode subclasses which override
NGNode.supportsOpaqueRegions() to return
true, this method will return whether or not this NGNode is in a state where it has
an opaque region to actually return. |
protected boolean |
isRectClip(BaseTransform xform,
boolean permitRoundedRectangle)
Returns whether a clip represented by this node can be rendered using
axis aligned rect clip.
|
protected void |
renderEffect(Graphics g) |
protected boolean |
supportsOpaqueRegions()
Gets whether this NGNode supports opaque regions at all.
|
void |
updateRectangle(float x,
float y,
float width,
float height,
float arcWidth,
float arcHeight) |
geometryChanged, getFillPaint, getMode, getStrokeShape, hasOverlappingContents, isSmooth, renderContent, renderContent2D, setDrawPaint, setDrawStroke, setDrawStroke, setFillPaint, setMode, setSmooth, visualsChanged
accumulateDirtyRegions, applyClip, applyEffect, applyTransform, clearDirty, clearDirtyTree, clearPainted, computePadding, doPreCulling, doRender, drawDirtyOpts, effectChanged, getCacheFilter, getClipNode, getClippedBounds, getCompleteBounds, getContentBounds, getEffect, getEffectBounds, getEffectFilter, getName, getNodeBlendMode, getOpacity, getOpaqueRegion, getParent, getRenderRoot, getTransform, hasVisuals, invalidateCache, invalidateCacheByTranslation, invalidateOpaqueRegion, isClean, isContentBounds2D, isDepthTest, isVisible, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderForcedContent, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, toString
public void updateRectangle(float x, float y, float width, float height, float arcWidth, float arcHeight)
protected boolean supportsOpaqueRegions()
NGNode
supportsOpaqueRegions
in class NGNode
protected boolean hasOpaqueRegion()
NGNode
NGNode.supportsOpaqueRegions()
to return
true, this method will return whether or not this NGNode is in a state where it has
an opaque region to actually return. If this method returns true, a subsequent call to
NGNode.computeOpaqueRegion(com.sun.javafx.geom.RectBounds)
must return
a non-null result. Any state used in the computation of this method, when it changes, must
result in a call to NGNode.invalidateOpaqueRegion()
.hasOpaqueRegion
in class NGShape
protected RectBounds computeOpaqueRegion(RectBounds opaqueRegion)
NGNode
computeOpaqueRegion
in class NGNode
protected void renderEffect(Graphics g)
renderEffect
in class NGNode
protected ShapeRep createShapeRep(Graphics g)
createShapeRep
in class NGShape
protected final boolean isRectClip(BaseTransform xform, boolean permitRoundedRectangle)
isRectClip
in class NGNode
Copyright © 2020. All rights reserved.