com.sun.electric.plugins.j3d.utils
Class J3DAppearance

java.lang.Object
  extended by Appearance
      extended by com.sun.electric.plugins.j3d.utils.J3DAppearance
All Implemented Interfaces:
java.util.Observer

public class J3DAppearance
extends Appearance
implements java.util.Observer

Support class for 3D viewing.


Nested Class Summary
static class J3DAppearance.J3DTransparencyOption
           
 
Field Summary
static J3DAppearance[] axisApps
          Appearance for axes
static J3DAppearance cellApp
          cell has a unique appearance
static J3DAppearance highlightApp
          highlight appearance
 
Constructor Summary
J3DAppearance(J3DAppearance app)
           
 
Method Summary
static J3DAppearance getAppearance(EGraphics graphics)
          Method to get 3D appearance stored in EGraphics class.
 EGraphics getGraphics()
           
 void set3DColor(java.lang.Object material, java.awt.Color color)
          Method to set color in 3D.
static void setAxesVisibility(boolean value)
          Set visibility of appearance assigned to the axes
static void setAxisAppearanceValues(java.lang.Object initValue)
          Method to access appearance of axes in 3D
static void setCellAppearanceValues(java.lang.Object initValue)
          Method to access appearance for cells in 3D
static void setCellVisibility(boolean value)
          Set visibility of appearance assigned to cell bounding box
 void setGraphics(EGraphics graphics)
           
static void setHighlightedAppearanceValues(java.lang.Object initValue)
          Method to access appearance of highlighted nodes in 3D
 void setTransparencyAndRenderingAttributes(TransparencyAttributes transparencyAttributes, boolean rendering)
           
 void update(java.util.Observable o, java.lang.Object arg)
          Observer method to update 3D appearance if 2D
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellApp

public static J3DAppearance cellApp
cell has a unique appearance


highlightApp

public static J3DAppearance highlightApp
highlight appearance


axisApps

public static J3DAppearance[] axisApps
Appearance for axes

Constructor Detail

J3DAppearance

public J3DAppearance(J3DAppearance app)
Method Detail

setGraphics

public void setGraphics(EGraphics graphics)

getGraphics

public EGraphics getGraphics()

setCellVisibility

public static void setCellVisibility(boolean value)
Set visibility of appearance assigned to cell bounding box

Parameters:
value -

setAxesVisibility

public static void setAxesVisibility(boolean value)
Set visibility of appearance assigned to the axes

Parameters:
value -

getAppearance

public static J3DAppearance getAppearance(EGraphics graphics)
Method to get 3D appearance stored in EGraphics class. It will create object if doesn't exist.

Parameters:
graphics -
Returns:

setTransparencyAndRenderingAttributes

public void setTransparencyAndRenderingAttributes(TransparencyAttributes transparencyAttributes,
                                                  boolean rendering)

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Observer method to update 3D appearance if 2D

Specified by:
update in interface java.util.Observer
Parameters:
o -
arg -

set3DColor

public void set3DColor(java.lang.Object material,
                       java.awt.Color color)
Method to set color in 3D. Since it must set 3 different colors, it is a function called by setOtherAppearanceValues.

Parameters:
material - material to change if available
color -

setAxisAppearanceValues

public static void setAxisAppearanceValues(java.lang.Object initValue)
Method to access appearance of axes in 3D

Parameters:
initValue - false if appearance has to be changed according to user value

setHighlightedAppearanceValues

public static void setHighlightedAppearanceValues(java.lang.Object initValue)
Method to access appearance of highlighted nodes in 3D

Parameters:
initValue - false if appearance has to be changed according to user value

setCellAppearanceValues

public static void setCellAppearanceValues(java.lang.Object initValue)
Method to access appearance for cells in 3D

Parameters:
initValue - no null if appearance has to be changed according to user value. Using this mechanism to avoid the creation of new Boolean() just for the checking