| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private RTTexture | cached3D
We cache a representation of this shape into an image if we are rendering the shape with a 3D transform. |
| private double | |
| private double | |
| protected Paint | |
| protected BasicStroke | |
| protected Paint | |
| protected NGShape. | |
| protected ShapeRep | |
| private boolean | |
| pack-priv static final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ShapeRep | |
| protected void | |
| public Paint | |
| public NGShape. | |
| public abstract Shape | |
| protected Shape | |
| protected boolean | hasOpaqueRegion()
Overrides com. Called only on NGNode subclasses which override |
| protected boolean | |
| private static double | |
| public boolean | |
| protected void | |
| protected void | renderContent2D(Graphics
The graphics object to render with g, boolean printing)Renders the content as though it is 2D in all cases. |
| public void | |
| public void | |
| public void | setDrawStroke(float strokeWidth, StrokeType strokeType, StrokeLineCap lineCap, StrokeLineJoin lineJoin, float strokeMiterLimit, float[] strokeDashArray, float strokeDashOffset)
|
| public void | |
| public void | |
| public void | |
| protected void | visualsChanged()
Overrides com. Invoked by subclasses whenever some change to the geometry or visuals has occurred. |
| cached3D | back to summary |
|---|---|
| private RTTexture cached3D We cache a representation of this shape into an image if we are rendering the shape with a 3D transform. We attempt to keep this cached image from render to render, and invalidate it if this NGShape changes either in geometry or visuals. | |
| cachedH | back to summary |
|---|---|
| private double cachedH | |
| cachedW | back to summary |
|---|---|
| private double cachedW | |
| drawPaint | back to summary |
|---|---|
| protected Paint drawPaint | |
| drawStroke | back to summary |
|---|---|
| protected BasicStroke drawStroke | |
| fillPaint | back to summary |
|---|---|
| protected Paint fillPaint | |
| mode | back to summary |
|---|---|
| protected NGShape. | |
| shapeRep | back to summary |
|---|---|
| protected ShapeRep shapeRep | |
| smooth | back to summary |
|---|---|
| private boolean smooth | |
| THRESHOLD | back to summary |
|---|---|
| pack-priv static final double THRESHOLD | |
| NGShape | back to summary |
|---|---|
| public NGShape() | |
| createShapeRep | back to summary |
|---|---|
| protected ShapeRep createShapeRep(Graphics g) | |
| geometryChanged | back to summary |
|---|---|
| protected void geometryChanged() Overrides com.
| |
| getFillPaint | back to summary |
|---|---|
| public Paint getFillPaint() | |
| getMode | back to summary |
|---|---|
| public NGShape. | |
| getShape | back to summary |
|---|---|
| public abstract Shape getShape() | |
| getStrokeShape | back to summary |
|---|---|
| protected Shape getStrokeShape() | |
| hasOpaqueRegion | back to summary |
|---|---|
| protected boolean hasOpaqueRegion() Overrides com. Doc from com. Called only on NGNode subclasses which override
| |
| hasOverlappingContents | back to summary |
|---|---|
| protected boolean hasOverlappingContents() Implements abstract com.
| |
| hypot | back to summary |
|---|---|
| private static double hypot(double x, double y, double z) | |
| isSmooth | back to summary |
|---|---|
| public boolean isSmooth() | |
| renderContent | back to summary |
|---|---|
| protected void renderContent(Graphics g) Implements abstract com.
| |
| renderContent2D | back to summary |
|---|---|
| protected void renderContent2D(Graphics g, boolean printing) Renders the content as though it is 2D in all cases. In the case that a 3D transform is in use at the time an NGShape is rendered, it will render as 2D into a texture and then transform in 3D that texture.
| |
| setDrawPaint | back to summary |
|---|---|
| public void setDrawPaint(Object drawPaint) | |
| setDrawStroke | back to summary |
|---|---|
| public void setDrawStroke(BasicStroke drawStroke) | |
| setDrawStroke | back to summary |
|---|---|
| public void setDrawStroke(float strokeWidth, StrokeType strokeType, StrokeLineCap lineCap, StrokeLineJoin lineJoin, float strokeMiterLimit, float[] strokeDashArray, float strokeDashOffset) | |
| setFillPaint | back to summary |
|---|---|
| public void setFillPaint(Object fillPaint) | |
| setMode | back to summary |
|---|---|
| public void setMode(NGShape. | |
| setSmooth | back to summary |
|---|---|
| public void setSmooth(boolean smooth) | |
| visualsChanged | back to summary |
|---|---|
| protected void visualsChanged() Overrides com. Doc from com. Invoked by subclasses whenever some change to the geometry or visuals has occurred. This will mark the node as dirty and invalidate the cache.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final NGShape. | |
| public static final NGShape. | |
| public static final NGShape. | |
| public static final NGShape. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NGShape. | |
| public static NGShape. |
| EMPTY | back to summary |
|---|---|
| public static final NGShape. | |
| FILL | back to summary |
|---|---|
| public static final NGShape. | |
| STROKE | back to summary |
|---|---|
| public static final NGShape. | |
| STROKE_FILL | back to summary |
|---|---|
| public static final NGShape. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| valueOf | back to summary |
|---|---|
| public static NGShape. | |
| values | back to summary |
|---|---|
| public static NGShape. | |