org.opensourcephysics.displayejs
Class Style

java.lang.Object
  extended by org.opensourcephysics.displayejs.Style

public class Style
extends java.lang.Object

A class that holds all the information possibly required by a Drawable3D when the moment comes to display itself on the screen. Actual Drawables3D may use or not all the information provided.


Field Summary
static int CENTERED
           
static float[] DASHED_STROKE
           
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
           
 
Constructor Summary
Style(Drawable3D _drawable)
           
Style(Style _style)
           
 
Method Summary
 void copyFrom(Style _style)
           
 double getAngle()
           
 java.lang.Object getDisplayObject()
           
 java.awt.Color getEdgeColor()
           
 java.awt.Stroke getEdgeStroke()
           
 java.awt.Paint getFillPattern()
           
 java.awt.Font getFont()
           
 int getPosition()
           
 void setAngle(double _angle)
           
 void setDisplayObject(java.lang.Object _object)
           
 void setEdgeColor(java.awt.Color _color)
           
 void setEdgeStroke(java.awt.Stroke _stroke)
           
 void setFillPattern(java.awt.Paint _pattern)
           
 void setFont(java.awt.Font _font)
           
 void setPosition(int _position)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTERED

public static final int CENTERED
See Also:
Constant Field Values

NORTH

public static final int NORTH
See Also:
Constant Field Values

SOUTH

public static final int SOUTH
See Also:
Constant Field Values

EAST

public static final int EAST
See Also:
Constant Field Values

WEST

public static final int WEST
See Also:
Constant Field Values

NORTH_EAST

public static final int NORTH_EAST
See Also:
Constant Field Values

NORTH_WEST

public static final int NORTH_WEST
See Also:
Constant Field Values

SOUTH_EAST

public static final int SOUTH_EAST
See Also:
Constant Field Values

SOUTH_WEST

public static final int SOUTH_WEST
See Also:
Constant Field Values

DASHED_STROKE

public static final float[] DASHED_STROKE
Constructor Detail

Style

public Style(Drawable3D _drawable)

Style

public Style(Style _style)
Method Detail

copyFrom

public void copyFrom(Style _style)

setPosition

public void setPosition(int _position)

getPosition

public int getPosition()

setAngle

public void setAngle(double _angle)

getAngle

public double getAngle()

setEdgeColor

public void setEdgeColor(java.awt.Color _color)

getEdgeColor

public java.awt.Color getEdgeColor()

setEdgeStroke

public void setEdgeStroke(java.awt.Stroke _stroke)

getEdgeStroke

public java.awt.Stroke getEdgeStroke()

setFillPattern

public void setFillPattern(java.awt.Paint _pattern)

getFillPattern

public java.awt.Paint getFillPattern()

setFont

public void setFont(java.awt.Font _font)

getFont

public java.awt.Font getFont()

setDisplayObject

public void setDisplayObject(java.lang.Object _object)

getDisplayObject

public java.lang.Object getDisplayObject()