public class IlvLegendSeparator extends Object implements Border, Serializable
Constructor and Description |
---|
IlvLegendSeparator()
Creates a legend separator with a thickness equal to
1 ,
a null color, and no margin. |
IlvLegendSeparator(Color color,
int thickness)
Creates a legend separator with the specified color and thickness
|
IlvLegendSeparator(Color color,
int thickness,
int insideMargin,
int outsideMargin)
Creates a new legend separator.
|
IlvLegendSeparator(int thickness)
Creates a legend separator with the specified thickness,
a
null color, and no margin. |
IlvLegendSeparator(int thickness,
int insideMargin,
int outsideMargin)
Creates a legend separator with a
null color. |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border.
|
Color |
getColor()
Returns the color of the separator.
|
int |
getInsideMargin()
Returns the inside margin.
|
int |
getOutsideMargin()
Returns the outside margin.
|
int |
getThickness()
Returns the thickness of the separator.
|
boolean |
isBorderOpaque()
Returns whether or not the border is opaque.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the
specified position and size.
|
public IlvLegendSeparator()
1
,
a null
color, and no margin.public IlvLegendSeparator(int thickness)
null
color, and no margin.thickness
- The thickness of the separator.public IlvLegendSeparator(Color color, int thickness)
color
- The color of the separator. If null
, the foreground
of the legend is used.thickness
- The thickness of the separator.public IlvLegendSeparator(int thickness, int insideMargin, int outsideMargin)
null
color.thickness
- The thickness of the separator.insideMargin
- The margin between the legend and the separator.outsideMargin
- The margin between the separator and the chart area.
This margin is only taken into account if the legend is docked to the
chart (that is, the position is not absolute).public IlvLegendSeparator(Color color, int thickness, int insideMargin, int outsideMargin)
color
- The color of the separator. If null
, the foreground
of the legend is used.thickness
- The thickness of the separator.insideMargin
- The margin between the legend and the separator.outsideMargin
- The margin between the separator and the chart area.
This margin is only taken into account if the legend is docked to the
chart (that is, the position is not absolute).public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderpublic Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
c
- The component for which this border insets value applies.public boolean isBorderOpaque()
isBorderOpaque
in interface Border
public int getOutsideMargin()
public int getInsideMargin()
public Color getColor()
null
, the foreground
of the legend is used.public int getThickness()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.