All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.JCBorderStyle
java.lang.Object
|
+----jclass.chart.JCBorderStyle
- public class JCBorderStyle
- extends Object
- implements JCSerializable
JCBorderStyle handles drawing borders of a particular
style. It contains a number of internal
methods that will render a border using
the specified style.
Properties
Name |
Method |
Type
|
The Type property determines how the border is drawn. The supported
types are determined by the shadow types supported by BWT. Valid values
include SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_FRAME_IN,
SHADOW_FRAME_OUT, SHADOW_IN, SHADOW_OUT, SHADOW_PLAIN or SHADOW_NONE. Default value is BWTEnum.SHADOW_FRAME_IN.
|
Width
|
The Width property determines the width of the border. Default value is 2.
|
-
JCBorderStyle()
-
-
draw(Graphics, int, int, int, int, Color, Color)
- Draws the specified border style.
-
getType()
- Gets the Type property of JCBorderStyle, which determines
how the border is drawn.
-
getWidth()
- Gets the Width property of JCBorderStyle, which determines the
width of the border.
-
setType(int)
- Sets the Type property of JCBorderStyle, which determines
how the border is drawn.
-
setWidth(int)
- Sets the Width property of JCBorderStyle, which determines the
width of the border.
JCBorderStyle
public JCBorderStyle()
draw
public void draw(Graphics gc,
int x,
int y,
int w,
int h,
Color f,
Color b)
- Draws the specified border style. This method calls
methods specific to a border style in order to accomplish
the drawing.
- Parameters:
- gc - graphics context in which to draw
- x - x value of origin of border (in pixels)
- y - y value of origin of border (in pixels)
- width - width of border (in pixels)
- height - height of border (in pixels)
- rect - rectangle that defines the border to be drawn
getType
public int getType()
- Gets the Type property of JCBorderStyle, which determines
how the border is drawn. The supported types are determined
by the shadow types supported by BWT.
- Returns:
- one of SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_FRAME_IN,
SHADOW_FRAME_OUT, SHADOW_IN, SHADOW_OUT, SHADOW_PLAIN or SHADOW_NONE
- See Also:
- Shadow
setType
public synchronized void setType(int tp)
- Sets the Type property of JCBorderStyle, which determines
how the border is drawn. The supported types are determined
by the shadow types supported by BWT.
- Returns:
- one of SHADOW_ETCHED_IN, SHADOW_ETCHED_OUT, SHADOW_FRAME_IN,
SHADOW_FRAME_OUT, SHADOW_IN, SHADOW_OUT, SHADOW_PLAIN or SHADOW_NONE
- Throws: IllegalArgumentException
- If Type isn't one of SHADOW_ETCHED_IN,
SHADOW_ETCHED_OUT, SHADOW_FRAME_IN, SHADOW_FRAME_OUT, SHADOW_IN,
SHADOW_OUT, SHADOW_PLAIN or SHADOW_NONE.
- See Also:
- Shadow
getWidth
public int getWidth()
- Gets the Width property of JCBorderStyle, which determines the
width of the border.
- Returns:
- width of the border. A value of zero indicates that no border is to be drawn.
setWidth
public synchronized void setWidth(int w)
- Sets the Width property of JCBorderStyle, which determines the
width of the border.
- Parameters:
- w - width of the border. A value of zero indicates that no border is to be drawn.
All Packages Class Hierarchy This Package Previous Next Index