org.opensourcephysics.display3d.simple3d
Class Style

java.lang.Object
  extended by org.opensourcephysics.display3d.simple3d.Style
All Implemented Interfaces:
Style

public class Style
extends java.lang.Object
implements Style


Nested Class Summary
protected static class Style.StyleLoader
           
 
Nested classes/interfaces inherited from interface org.opensourcephysics.display3d.core.Style
Style.Loader
 
Field Summary
 
Fields inherited from interface org.opensourcephysics.display3d.core.Style
CENTERED, EAST, NORTH, NORTH_EAST, NORTH_WEST, SOUTH, SOUTH_EAST, SOUTH_WEST, WEST
 
Method Summary
 void copyTo(Style target)
           
 boolean getCombine()
           
 double getDepthFactor()
           
 java.awt.Color getFillColor()
           
 java.awt.Color getLineColor()
           
 float getLineWidth()
           
static XML.ObjectLoader getLoader()
           
 int getRelativePosition()
           
 Resolution getResolution()
           
 java.lang.String[] getTextures()
           
 double getTransparency()
           
 boolean isDrawingFill()
           
 boolean isDrawingLines()
           
 void setDepthFactor(double factor)
           
 void setDrawingFill(boolean _drawsFill)
           
 void setDrawingLines(boolean _drawsLines)
           
 void setFillColor(java.awt.Color _color)
           
 void setLineColor(java.awt.Color _color)
           
 void setLineWidth(float _width)
           
 void setRelativePosition(int _position)
           
 void setResolution(Resolution _res)
           
 void setTexture(java.lang.String file1, java.lang.String file2, double transparency, boolean combine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLineColor

public void setLineColor(java.awt.Color _color)
Specified by:
setLineColor in interface Style

getLineColor

public final java.awt.Color getLineColor()
Specified by:
getLineColor in interface Style

setLineWidth

public void setLineWidth(float _width)
Specified by:
setLineWidth in interface Style

getLineWidth

public final float getLineWidth()
Specified by:
getLineWidth in interface Style

setFillColor

public void setFillColor(java.awt.Color _color)
Specified by:
setFillColor in interface Style

getFillColor

public final java.awt.Color getFillColor()
Specified by:
getFillColor in interface Style

setResolution

public void setResolution(Resolution _res)
Specified by:
setResolution in interface Style

getResolution

public final Resolution getResolution()
Specified by:
getResolution in interface Style

isDrawingFill

public boolean isDrawingFill()
Specified by:
isDrawingFill in interface Style

setDrawingFill

public void setDrawingFill(boolean _drawsFill)
Specified by:
setDrawingFill in interface Style

isDrawingLines

public boolean isDrawingLines()
Specified by:
isDrawingLines in interface Style

setDrawingLines

public void setDrawingLines(boolean _drawsLines)
Specified by:
setDrawingLines in interface Style

setDepthFactor

public void setDepthFactor(double factor)
Specified by:
setDepthFactor in interface Style

getDepthFactor

public double getDepthFactor()
Specified by:
getDepthFactor in interface Style

setTexture

public void setTexture(java.lang.String file1,
                       java.lang.String file2,
                       double transparency,
                       boolean combine)
Specified by:
setTexture in interface Style

getTextures

public java.lang.String[] getTextures()
Specified by:
getTextures in interface Style

getTransparency

public double getTransparency()
Specified by:
getTransparency in interface Style

getCombine

public boolean getCombine()
Specified by:
getCombine in interface Style

setRelativePosition

public final void setRelativePosition(int _position)
Specified by:
setRelativePosition in interface Style

getRelativePosition

public final int getRelativePosition()
Specified by:
getRelativePosition in interface Style

copyTo

public void copyTo(Style target)
Specified by:
copyTo in interface Style

getLoader

public static XML.ObjectLoader getLoader()