|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.Control
visad.GraphicsModeControl
visad.java2d.GraphicsModeControlJ2D
public class GraphicsModeControlJ2D
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.
| 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 |
|---|
public GraphicsModeControlJ2D(DisplayImpl d)
| Method Detail |
|---|
public boolean getMode2D()
getMode2D in class GraphicsModeControlpublic float getLineWidth()
getLineWidth in class GraphicsModeControl
public void setLineWidth(float width)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setLineWidth in class GraphicsModeControlVisADException
java.rmi.RemoteException
public void setLineWidth(float width,
boolean dummy)
setLineWidth in class GraphicsModeControlpublic float getPointSize()
getPointSize in class GraphicsModeControl
public void setPointSize(float size)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setPointSize in class GraphicsModeControlVisADException
java.rmi.RemoteException
public void setPointSize(float size,
boolean dummy)
setPointSize in class GraphicsModeControlpublic int getLineStyle()
getLineStyle in class GraphicsModeControl
public void setLineStyle(int style)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setLineStyle in class GraphicsModeControlVisADException
java.rmi.RemoteException
public void setLineStyle(int style,
boolean dummy)
setLineStyle in class GraphicsModeControlpublic int getColorMode()
getColorMode in class GraphicsModeControl
public void setColorMode(int mode)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setColorMode in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic boolean getPointMode()
getPointMode in class GraphicsModeControl
public void setPointMode(boolean mode)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setPointMode in class GraphicsModeControlVisADException
java.rmi.RemoteException
public void setTextureEnable(boolean enable)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setTextureEnable in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic boolean getTextureEnable()
getTextureEnable in class GraphicsModeControl
public void setScaleEnable(boolean enable)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setScaleEnable in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic boolean getScaleEnable()
getScaleEnable in class GraphicsModeControlpublic int getTransparencyMode()
getTransparencyMode in class GraphicsModeControl
public void setTransparencyMode(int mode)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setTransparencyMode in class GraphicsModeControlVisADException
java.rmi.RemoteException
public void setProjectionPolicy(int policy)
throws VisADException,
java.rmi.RemoteException
GraphicsModeControl
setProjectionPolicy in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic int getProjectionPolicy()
getProjectionPolicy in class GraphicsModeControl
public void setPolygonMode(int mode)
throws VisADException,
java.rmi.RemoteException
setPolygonMode in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic int getPolygonMode()
getPolygonMode in class GraphicsModeControlpublic boolean getMissingTransparent()
getMissingTransparent in class GraphicsModeControl
public void setMissingTransparent(boolean missing)
throws VisADException,
java.rmi.RemoteException
setMissingTransparent in class GraphicsModeControlVisADException
java.rmi.RemoteExceptionpublic int getCurvedSize()
getCurvedSize in class GraphicsModeControlpublic void setCurvedSize(int curved_size)
setCurvedSize in class GraphicsModeControlpublic java.lang.Object clone()
GraphicsModeControl
clone in class GraphicsModeControl
public void syncControl(Control rmt)
throws VisADException
syncControl in class ControlVisADExceptionpublic boolean equals(java.lang.Object o)
equals in class Controlpublic java.lang.String toString()
toString in class Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||