Example #1
0
 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());
 }
Example #2
0
 public J3DAppearance(Layer layer, boolean visible) {
   super();
   this.layer = layer;
   EGraphics graphics = layer.getGraphics();
   setOtherAppearanceValues(
       graphics.getTransparencyMode().mode,
       (float) graphics.getTransparencyFactor(),
       graphics.getColor(),
       visible);
 }