public class NGRectangle extends NGShape
NGShape.ModeNGNode.DirtyFlag, NGNode.RenderRootResult| Modifier and Type | Field and Description |
|---|---|
(package private) static float |
HALF_MINUS_HALF_SQRT_HALF |
private RoundRectangle2D |
rrect |
private static double |
SQRT_2 |
drawPaint, drawStroke, fillPaint, mode, shapeRep, THRESHOLDchildDirty, 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 |
|---|
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. |
private static boolean |
hasRightAngleMiterAndNoDashes(BasicStroke bs) |
protected boolean |
isRectClip(BaseTransform xform,
boolean permitRoundedRectangle)
Returns whether a clip represented by this node can be rendered using
axis aligned rect clip.
|
(package private) boolean |
isRounded() |
(package private) static boolean |
rectContains(float x,
float y,
NGShape node,
RectangularShape r) |
protected void |
renderEffect(Graphics g) |
private boolean |
renderEffectDirectly(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, visualsChangedaccumulateDirtyRegions, accumulateGroupDirtyRegion, accumulateNodeDirtyRegion, applyClip, applyEffect, applyTransform, checkBoundsInQuad, clearDirty, clearDirtyTree, clearPainted, computeNodeRenderRoot, 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, isShape3D, isVisible, markCullRegions, markDirty, markTreeDirty, markTreeDirtyNoIncrement, needsBlending, printDirtyOpts, release, render, renderClip, renderForcedContent, renderForClip, setCachedAsBitmap, setClipNode, setContentBounds, setDepthTest, setEffect, setName, setNodeBlendMode, setOpacity, setParent, setTransformedBounds, setTransformMatrix, setVisible, toStringprivate RoundRectangle2D rrect
static final float HALF_MINUS_HALF_SQRT_HALF
private static final double SQRT_2
public void updateRectangle(float x,
float y,
float width,
float height,
float arcWidth,
float arcHeight)
protected boolean supportsOpaqueRegions()
NGNodesupportsOpaqueRegions in class NGNodeprotected boolean hasOpaqueRegion()
NGNodeNGNode.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 NGShapeprotected RectBounds computeOpaqueRegion(RectBounds opaqueRegion)
NGNodecomputeOpaqueRegion in class NGNodeboolean isRounded()
protected void renderEffect(Graphics g)
renderEffect in class NGNodeprivate boolean renderEffectDirectly(Graphics g)
protected ShapeRep createShapeRep(Graphics g)
createShapeRep in class NGShapeprivate static boolean hasRightAngleMiterAndNoDashes(BasicStroke bs)
static boolean rectContains(float x,
float y,
NGShape node,
RectangularShape r)
protected final boolean isRectClip(BaseTransform xform, boolean permitRoundedRectangle)
isRectClip in class NGNode