|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.style.AbstractStyle com.jidesoft.chart.style.LineStyle
public class LineStyle
The style for a line of the chart
Field Summary | |
---|---|
static BasicStroke |
DEFAULT_STROKE
The default stroke is a solid line of default width, with CAP_SQUARE and JOIN_BEVEL |
static int |
DEFAULT_WIDTH
The default width is 1 pixel. |
Constructor Summary | |
---|---|
LineStyle()
Create a Line Style using a default stroke and default width. |
|
LineStyle(BasicStroke stroke)
Create a Line Style using the supplied stroke |
|
LineStyle(Color color,
BasicStroke stroke)
Create a line style using the supplied color, width and stroke settings |
|
LineStyle(Color color,
int width)
Create a line style using the supplied color and width |
|
LineStyle(int width)
Create a Line Style using a default stroke and the supplied width. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Paint |
getFill()
|
LineFillExtent |
getFillExtent()
Returns the boundary to which the line is filled (if a fill is applied) |
Orientation |
getFillOrientation()
|
BasicStroke |
getStroke()
Returns the stroke of the lines |
int |
getWidth()
Returns the currently specified width of the lines |
int |
hashCode()
|
void |
setFill(Paint fill)
When set, this specifies a fill to use between the line of the model and the x axis. |
void |
setFillExtent(LineFillExtent fillExtent)
Specify which boundary to fill the line to; by default fills to zero on the axis indicated by the choice of fill orientation |
void |
setFillOrientation(Orientation fillOrientation)
|
void |
setStroke(BasicStroke stroke)
Specify the stroke of the lines |
void |
setWidth(int width)
Specify the width to use for the lines |
String |
toString()
|
Methods inherited from class com.jidesoft.chart.style.AbstractStyle |
---|
getColor, getPaint, setColor, setPaint |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_WIDTH
public static final BasicStroke DEFAULT_STROKE
Constructor Detail |
---|
public LineStyle()
public LineStyle(int width)
width
- the width of the linespublic LineStyle(BasicStroke stroke)
stroke
- the stroke to use for styling the linespublic LineStyle(Color color, int width)
color
- the color of the linewidth
- the width of the line in pixelspublic LineStyle(Color color, BasicStroke stroke)
color
- the color of the linestroke
- the stroke to use for painting the lineMethod Detail |
---|
public Paint getFill()
public void setFill(Paint fill)
fill
- a paint - often a GradientPaintpublic void setFillOrientation(Orientation fillOrientation)
public Orientation getFillOrientation()
public LineFillExtent getFillExtent()
public void setFillExtent(LineFillExtent fillExtent)
fillExtent
- the boundary to fill the line topublic void setWidth(int width)
width
- the new width of the linespublic int getWidth()
public BasicStroke getStroke()
public void setStroke(BasicStroke stroke)
stroke
- the new stroke to use for the linespublic int hashCode()
hashCode
in class AbstractStyle
public boolean equals(Object obj)
equals
in class AbstractStyle
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |