|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.drawing2d.Style
public class Style
Field Summary | |
---|---|
static int |
CENTERED
|
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_SENSITIVITY
|
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
|
Method Summary | |
---|---|
Style |
clone()
Returns a clone of this style |
void |
copyTo(Element targetElement)
Returns a clone of this style |
java.awt.Color |
getExtraColor()
|
java.awt.Paint |
getFillColor()
|
java.awt.Color |
getLineColor()
|
float |
getLineWidth()
|
int |
getRelativePosition()
|
int |
getSensitivity()
|
boolean |
isDrawingFill()
|
boolean |
isDrawingLines()
|
void |
setDrawingFill(boolean _drawsFill)
|
void |
setDrawingLines(boolean _drawsLines)
|
void |
setExtraColor(java.awt.Color _color)
|
void |
setFillColor(java.awt.Paint _fill)
|
void |
setLineColor(java.awt.Color _color)
|
void |
setLineWidth(float _width)
|
void |
setPaint(java.lang.String filename)
Paints the element using an image file |
void |
setPaint(java.lang.String filename,
double width,
double height)
Paints the element using an image file |
void |
setRelativePosition(int _position)
|
void |
setSensitivity(int _s)
Set the accuracy for the mouse to find a point on the screen |
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 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
Method Detail |
---|
public Style clone()
clone
in class java.lang.Object
public void copyTo(Element targetElement)
public final void setLineColor(java.awt.Color _color)
public final java.awt.Color getLineColor()
public final void setLineWidth(float _width)
public final float getLineWidth()
public final void setFillColor(java.awt.Paint _fill)
public final java.awt.Paint getFillColor()
public final void setExtraColor(java.awt.Color _color)
public final java.awt.Color getExtraColor()
public final boolean isDrawingFill()
public final void setDrawingFill(boolean _drawsFill)
public final boolean isDrawingLines()
public final void setDrawingLines(boolean _drawsLines)
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()
public final void setPaint(java.lang.String filename)
filename
- the source image filepublic final void setPaint(java.lang.String filename, double width, double height)
filename
- the source image filewidth
- the desired width of the imageheight
- the desired height of the image
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |