|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing3d.utils.Style
public class Style
Field Summary | |
---|---|
static int |
CENTERED
|
static int |
CHANGED_DEPTH_FACTOR
|
static int |
CHANGED_DRAWING_FILL
|
static int |
CHANGED_DRAWING_LINES
|
static int |
CHANGED_EXTRA_COLOR
|
static int |
CHANGED_FILL_COLOR
|
static int |
CHANGED_LINE_COLOR
|
static int |
CHANGED_LINE_WIDTH
|
static int |
CHANGED_RELATIVE_POSITION
|
static int |
CHANGED_RESOLUTION
|
static int |
CHANGED_SENSITIVITY
|
static int |
CHANGED_TEXTURES
|
static int |
DEFAULT_SENSITIVITY
|
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(Element _element)
Package-private constructor User must obtain Style objects from elements, by using the getStyle() method |
Method Summary | |
---|---|
Style |
clone()
Returns a clone of this style |
void |
copyTo(Style target)
Copies this style onto another |
double |
getAmbientFactor()
|
boolean |
getCombine()
|
double |
getDepthFactor()
|
Element |
getElement()
|
java.awt.Color |
getExtraColor()
|
java.awt.Paint |
getFillColor()
|
java.awt.Color |
getLineColor()
|
java.awt.Stroke |
getLineStroke()
Gets the Stroke derived from the line width |
float |
getLineWidth()
|
int |
getRelativePosition()
|
Resolution |
getResolution()
|
int |
getSensitivity()
|
java.lang.Object[] |
getTextures()
|
double |
getTransparency()
|
boolean |
isDrawingFill()
|
boolean |
isDrawingLines()
|
void |
setAmbientFactor(double _factor)
|
void |
setDepthFactor(double factor)
|
void |
setDrawingFill(boolean _drawsFill)
|
void |
setDrawingLines(boolean _drawsLines)
|
void |
setExtraColor(java.awt.Color _color)
|
void |
setFillColor(java.awt.Paint _color)
|
void |
setLineColor(java.awt.Color _color)
|
void |
setLineWidth(float _width)
|
void |
setRelativePosition(int _position)
|
void |
setResolution(Resolution _resolution)
|
void |
setSensitivity(int _s)
Set the accuracy for the mouse to find a point on the screen |
void |
setTexture(java.lang.Object texture1,
java.lang.Object texture2,
double transparency,
boolean combine)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_SENSITIVITY
public static final int CHANGED_LINE_COLOR
public static final int CHANGED_LINE_WIDTH
public static final int CHANGED_FILL_COLOR
public static final int CHANGED_DRAWING_FILL
public static final int CHANGED_DRAWING_LINES
public static final int CHANGED_RELATIVE_POSITION
public static final int CHANGED_SENSITIVITY
public static final int CHANGED_EXTRA_COLOR
public static final int CHANGED_DEPTH_FACTOR
public static final int CHANGED_RESOLUTION
public static final int CHANGED_TEXTURES
public static final int CENTERED
public static final int NORTH
public static final int SOUTH
public static final int EAST
public static final int WEST
public static final int NORTH_EAST
public static final int NORTH_WEST
public static final int SOUTH_EAST
public static final int SOUTH_WEST
Constructor Detail |
---|
public Style(Element _element)
_element
- ElementMethod Detail |
---|
public Element getElement()
public Style clone()
clone
in class java.lang.Object
public void copyTo(Style target)
target
- public void setLineColor(java.awt.Color _color)
public final java.awt.Color getLineColor()
public void setLineWidth(float _width)
public final float getLineWidth()
public final java.awt.Stroke getLineStroke()
Stroke
public void setFillColor(java.awt.Paint _color)
public final java.awt.Paint getFillColor()
public final void setExtraColor(java.awt.Color _color)
public final java.awt.Color getExtraColor()
public void setResolution(Resolution _resolution)
public final Resolution getResolution()
public boolean isDrawingFill()
public void setDrawingFill(boolean _drawsFill)
public boolean isDrawingLines()
public void setDrawingLines(boolean _drawsLines)
public void setDepthFactor(double factor)
public double getDepthFactor()
public void setTexture(java.lang.Object texture1, java.lang.Object texture2, double transparency, boolean combine)
public java.lang.Object[] getTextures()
public double getTransparency()
public boolean getCombine()
public void setAmbientFactor(double _factor)
public double getAmbientFactor()
public final void setRelativePosition(int _position)
public final int getRelativePosition()
public final void setSensitivity(int _s)
_s
- sensitive pixels around the hot spot. 0 for the full areapublic final int getSensitivity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |