org.opensourcephysics.display3d.core
Interface Style

All Known Implementing Classes:
Style

public interface Style

Title: Style

Description: A class that holds display suggestions for 3D Elements. Actual Elements may use or not all of the suggestions provided.

Version:
March 2005
Author:
Francisco Esquembre

Nested Class Summary
static class Style.Loader
           
 
Field Summary
static int CENTERED
           
static int EAST
           
static int NORTH
           
static int NORTH_EAST
           
static int NORTH_WEST
           
static int SOUTH
           
static int SOUTH_EAST
           
static int SOUTH_WEST
           
static int WEST
           
 
Method Summary
 void copyTo(Style target)
           
 boolean getCombine()
           
 double getDepthFactor()
           
 java.awt.Color getFillColor()
           
 java.awt.Color getLineColor()
           
 float getLineWidth()
           
 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)
           
 

Field Detail

CENTERED

static final int CENTERED
See Also:
Constant Field Values

NORTH

static final int NORTH
See Also:
Constant Field Values

SOUTH

static final int SOUTH
See Also:
Constant Field Values

EAST

static final int EAST
See Also:
Constant Field Values

WEST

static final int WEST
See Also:
Constant Field Values

NORTH_EAST

static final int NORTH_EAST
See Also:
Constant Field Values

NORTH_WEST

static final int NORTH_WEST
See Also:
Constant Field Values

SOUTH_EAST

static final int SOUTH_EAST
See Also:
Constant Field Values

SOUTH_WEST

static final int SOUTH_WEST
See Also:
Constant Field Values
Method Detail

setLineColor

void setLineColor(java.awt.Color _color)

getLineColor

java.awt.Color getLineColor()

setLineWidth

void setLineWidth(float _width)

getLineWidth

float getLineWidth()

setFillColor

void setFillColor(java.awt.Color _color)

getFillColor

java.awt.Color getFillColor()

setResolution

void setResolution(Resolution _res)

getResolution

Resolution getResolution()

isDrawingFill

boolean isDrawingFill()

setDrawingFill

void setDrawingFill(boolean drawsFill)

isDrawingLines

boolean isDrawingLines()

setDrawingLines

void setDrawingLines(boolean drawsLines)

setDepthFactor

void setDepthFactor(double factor)

getDepthFactor

double getDepthFactor()

setTexture

void setTexture(java.lang.String file1,
                java.lang.String file2,
                double transparency,
                boolean combine)

getTextures

java.lang.String[] getTextures()

getTransparency

double getTransparency()

getCombine

boolean getCombine()

setRelativePosition

void setRelativePosition(int _position)

getRelativePosition

int getRelativePosition()

copyTo

void copyTo(Style target)