public void setGraphics(EGraphics graphics) { EGraphics.J3DTransparencyOption op = graphics.getTransparencyMode(); TransparencyAttributes ta = getTransparencyAttributes(); ta.setTransparency((float) graphics.getTransparencyFactor()); ta.setTransparencyMode(op.mode); setTransparencyAndRenderingAttributes(ta, op != EGraphics.J3DTransparencyOption.NONE); set3DColor(null, graphics.getColor()); }
public J3DAppearance(Layer layer, boolean visible) { super(); this.layer = layer; EGraphics graphics = layer.getGraphics(); setOtherAppearanceValues( graphics.getTransparencyMode().mode, (float) graphics.getTransparencyFactor(), graphics.getColor(), visible); }