/** * Gets the point size for this appearance component object. * @return the size, in pixels, of point primitives * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public float getPointSize() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_SIZE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes1")); return ((PointAttributesRetained)this.retained).getPointSize(); }
/** * Retrieves the state of the point antialiasing flag. * @return true if point antialiasing is enabled, * false if point antialiasing is disabled * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public boolean getPointAntialiasingEnable() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_ANTIALIASING_READ)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes3")); return ((PointAttributesRetained)this.retained).getPointAntialiasingEnable(); }
/** * Sets the point size for this appearance component object. * @param pointSize the size, in pixels, of point primitives * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setPointSize(float pointSize) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_SIZE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes0")); if (isLive()) ((PointAttributesRetained)this.retained).setPointSize(pointSize); else ((PointAttributesRetained)this.retained).initPointSize(pointSize); }
/** * Enables or disables point antialiasing * for this appearance component object. * <p> * If antialiasing is enabled, the points are considered transparent * for rendering purposes. They are rendered with all the other * transparent objects and adhere to the other transparency settings * such as the View transparency sorting policy and the View depth * buffer freeze transparent enable. * </p> * @param state true or false to enable or disable point antialiasing * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * @see View */ public void setPointAntialiasingEnable(boolean state) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_ANTIALIASING_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes2")); if (isLive()) ((PointAttributesRetained)this.retained).setPointAntialiasingEnable(state); else ((PointAttributesRetained)this.retained).initPointAntialiasingEnable(state); }