visad.java2d
Class GraphicsModeControlJ2D

java.lang.Object
  extended by visad.Control
      extended by visad.GraphicsModeControl
          extended by visad.java2d.GraphicsModeControlJ2D
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class GraphicsModeControlJ2D
extends GraphicsModeControl

GraphicsModeControlJ2D is the VisAD class for controlling various mode settings for rendering.

A GraphicsModeControlJ2D is not linked to any DisplayRealType or ScalarMap. It is linked to a DisplayImpl.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class visad.GraphicsModeControl
AVERAGE_COLOR_MODE, DASH_DOT_STYLE, DASH_STYLE, DOT_STYLE, SOLID_STYLE, SUM_COLOR_MODE
 
Constructor Summary
GraphicsModeControlJ2D(DisplayImpl d)
           
 
Method Summary
 java.lang.Object clone()
          a method to copy any data object
 boolean equals(java.lang.Object o)
           
 int getColorMode()
           
 int getCurvedSize()
           
 int getLineStyle()
           
 float getLineWidth()
           
 boolean getMissingTransparent()
           
 boolean getMode2D()
           
 boolean getPointMode()
           
 float getPointSize()
           
 int getPolygonMode()
           
 int getProjectionPolicy()
           
 boolean getScaleEnable()
           
 boolean getTextureEnable()
           
 int getTransparencyMode()
           
 void setColorMode(int mode)
          set the mode for merging color mappings The color modes are: GraphicsModeControl.AVERAGE_COLOR_MODE GraphicsModeControl.SUM_COLOR_MODE
 void setCurvedSize(int curved_size)
           
 void setLineStyle(int style)
          set the style of line rendering; this is over-ridden by ConstantMaps to Display.LineStyle The line styles are: GraphicsModeControl.SOLID_STYLE GraphicsModeControl.DASH_STYLE GraphicsModeControl.DOT_STYLE GraphicsModeControl.DASH_DOT_STYLE
 void setLineStyle(int style, boolean dummy)
           
 void setLineWidth(float width)
          set the width of line rendering; this is over-ridden by ConstantMaps to Display.LineWidth
 void setLineWidth(float width, boolean dummy)
           
 void setMissingTransparent(boolean missing)
           
 void setPointMode(boolean mode)
          if mode is true this will cause some rendering as points rather than lines or surfaces
 void setPointSize(float size)
          set the size for point rendering; this is over-ridden by ConstantMaps to Display.PointSize
 void setPointSize(float size, boolean dummy)
           
 void setPolygonMode(int mode)
           
 void setProjectionPolicy(int policy)
          sets a graphics-API-specific projection policy (e.g., PARALLEL_PROJECTION, PERSPECTIVE_PROJECTION)
 void setScaleEnable(boolean enable)
          if enable is true this will enable numerical scales along display spatial axes
 void setTextureEnable(boolean enable)
          if enable is true this will enable use of texture mapping, where appropriate
 void setTransparencyMode(int mode)
          sets a graphics-API-specific transparency mode (e.g., SCREEN_DOOR, BLENDED)
 void syncControl(Control rmt)
          copy the state of a remote control to this control
 java.lang.String toString()
           
 
Methods inherited from class visad.GraphicsModeControl
getSaveString, setSaveString
 
Methods inherited from class visad.Control
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphicsModeControlJ2D

public GraphicsModeControlJ2D(DisplayImpl d)
Method Detail

getMode2D

public boolean getMode2D()
Specified by:
getMode2D in class GraphicsModeControl

getLineWidth

public float getLineWidth()
Specified by:
getLineWidth in class GraphicsModeControl

setLineWidth

public void setLineWidth(float width)
                  throws VisADException,
                         java.rmi.RemoteException
Description copied from class: GraphicsModeControl
set the width of line rendering; this is over-ridden by ConstantMaps to Display.LineWidth

Specified by:
setLineWidth in class GraphicsModeControl
Throws:
VisADException
java.rmi.RemoteException

setLineWidth

public void setLineWidth(float width,
                         boolean dummy)
Specified by:
setLineWidth in class GraphicsModeControl

getPointSize

public float getPointSize()
Specified by:
getPointSize in class GraphicsModeControl

setPointSize

public void setPointSize(float size)
                  throws VisADException,
                         java.rmi.RemoteException
Description copied from class: GraphicsModeControl
set the size for point rendering; this is over-ridden by ConstantMaps to Display.PointSize

Specified by:
setPointSize in class GraphicsModeControl
Throws:
VisADException
java.rmi.RemoteException

setPointSize

public void setPointSize(float size,
                         boolean dummy)
Specified by:
setPointSize in class GraphicsModeControl

getLineStyle

public int getLineStyle()
Specified by:
getLineStyle in class GraphicsModeControl

setLineStyle

public void setLineStyle(int style)
                  throws VisADException,
                         java.rmi.RemoteException
Description copied from class: GraphicsModeControl
set the style of line rendering; this is over-ridden by ConstantMaps to Display.LineStyle The line styles are:
  • GraphicsModeControl.SOLID_STYLE
  • GraphicsModeControl.DASH_STYLE
  • GraphicsModeControl.DOT_STYLE
  • GraphicsModeControl.DASH_DOT_STYLE

    Specified by:
    setLineStyle in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

  • setLineStyle

    public void setLineStyle(int style,
                             boolean dummy)
    Specified by:
    setLineStyle in class GraphicsModeControl

    getColorMode

    public int getColorMode()
    Specified by:
    getColorMode in class GraphicsModeControl

    setColorMode

    public void setColorMode(int mode)
                      throws VisADException,
                             java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    set the mode for merging color mappings The color modes are:
  • GraphicsModeControl.AVERAGE_COLOR_MODE
  • GraphicsModeControl.SUM_COLOR_MODE

    Specified by:
    setColorMode in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

  • getPointMode

    public boolean getPointMode()
    Specified by:
    getPointMode in class GraphicsModeControl

    setPointMode

    public void setPointMode(boolean mode)
                      throws VisADException,
                             java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    if mode is true this will cause some rendering as points rather than lines or surfaces

    Specified by:
    setPointMode in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    setTextureEnable

    public void setTextureEnable(boolean enable)
                          throws VisADException,
                                 java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    if enable is true this will enable use of texture mapping, where appropriate

    Specified by:
    setTextureEnable in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    getTextureEnable

    public boolean getTextureEnable()
    Specified by:
    getTextureEnable in class GraphicsModeControl

    setScaleEnable

    public void setScaleEnable(boolean enable)
                        throws VisADException,
                               java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    if enable is true this will enable numerical scales along display spatial axes

    Specified by:
    setScaleEnable in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    getScaleEnable

    public boolean getScaleEnable()
    Specified by:
    getScaleEnable in class GraphicsModeControl

    getTransparencyMode

    public int getTransparencyMode()
    Specified by:
    getTransparencyMode in class GraphicsModeControl

    setTransparencyMode

    public void setTransparencyMode(int mode)
                             throws VisADException,
                                    java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    sets a graphics-API-specific transparency mode (e.g., SCREEN_DOOR, BLENDED)

    Specified by:
    setTransparencyMode in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    setProjectionPolicy

    public void setProjectionPolicy(int policy)
                             throws VisADException,
                                    java.rmi.RemoteException
    Description copied from class: GraphicsModeControl
    sets a graphics-API-specific projection policy (e.g., PARALLEL_PROJECTION, PERSPECTIVE_PROJECTION)

    Specified by:
    setProjectionPolicy in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    getProjectionPolicy

    public int getProjectionPolicy()
    Specified by:
    getProjectionPolicy in class GraphicsModeControl

    setPolygonMode

    public void setPolygonMode(int mode)
                        throws VisADException,
                               java.rmi.RemoteException
    Specified by:
    setPolygonMode in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    getPolygonMode

    public int getPolygonMode()
    Specified by:
    getPolygonMode in class GraphicsModeControl

    getMissingTransparent

    public boolean getMissingTransparent()
    Specified by:
    getMissingTransparent in class GraphicsModeControl

    setMissingTransparent

    public void setMissingTransparent(boolean missing)
                               throws VisADException,
                                      java.rmi.RemoteException
    Specified by:
    setMissingTransparent in class GraphicsModeControl
    Throws:
    VisADException
    java.rmi.RemoteException

    getCurvedSize

    public int getCurvedSize()
    Specified by:
    getCurvedSize in class GraphicsModeControl

    setCurvedSize

    public void setCurvedSize(int curved_size)
    Specified by:
    setCurvedSize in class GraphicsModeControl

    clone

    public java.lang.Object clone()
    Description copied from class: GraphicsModeControl
    a method to copy any data object

    Specified by:
    clone in class GraphicsModeControl

    syncControl

    public void syncControl(Control rmt)
                     throws VisADException
    copy the state of a remote control to this control

    Specified by:
    syncControl in class Control
    Throws:
    VisADException

    equals

    public boolean equals(java.lang.Object o)
    Overrides:
    equals in class Control

    toString

    public java.lang.String toString()
    Overrides:
    toString in class Control