|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.chart2djava.ChartAttribute
public class ChartAttribute
This class consolidates the common line and fill attributes into a single class.
Field Summary |
---|
Constructor Summary | |
---|---|
ChartAttribute()
This is the default ChartAttribute constructor. |
|
ChartAttribute(ChartAttribute attr)
This constructor creates a new ChartAttribute object as a copy of an existing ChartAttribute object. |
|
ChartAttribute(ChartPlot source,
int ngroup)
This constructor creates a new ChartAttribute object as a copy of the ChartAttribute object associated with a specific group in an DChartPlot object. |
|
ChartAttribute(java.awt.Color rgbcolor)
This constructor creates a new ChartAttribute object using the specified attributes. |
|
ChartAttribute(java.awt.Color rgbcolor,
double rlinewidth)
This constructor creates a new ChartAttribute object using the specified attributes. |
|
ChartAttribute(java.awt.Color rgbcolor,
double rlinewidth,
int nlinestyle)
This constructor creates a new ChartAttribute object using the specified attributes. |
|
ChartAttribute(java.awt.Color rgbcolor,
double rlinewidth,
int nlinestyle,
java.awt.Color rgbfillcolor)
This constructor creates a new ChartAttribute object using the specified attributes. |
|
ChartAttribute(GraphObj source)
This constructor creates a new ChartAttribute object as a copy of the ChartAttribute object stored in an GraphObj object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns an object that is a clone of this ChartAttribute object. |
void |
copy(ChartAttribute source)
Copies the source ChartAttribute object. |
int |
errorCheck(int nerror)
Checks the current plot object for common errors. |
boolean |
getAutoGradient()
Set/Get the auto gradient mode for filled objects. |
java.awt.Color |
getColor()
Returns the primary color of an ChartAttribute object. |
java.awt.BasicStroke |
getCustomStroke()
Returns the current stroke object. |
java.awt.Color |
getFillColor()
Returns the fill color of an ChartAttribute object. |
boolean |
getFillFlag()
Returns the fill flag of an ChartAttribute object. |
int |
getFillStyle()
Returns the fill style of an ChartAttribute object. |
ChartGradient |
getGradient()
The ChartGradient object controls the simple (2-color) and complex (multi-color) gradients. |
java.awt.Color |
getLineColor()
Returns the primary color of an ChartAttribute object. |
boolean |
getLineFlag()
Returns the line flag of an ChartAttribute object. |
int |
getLineStyle()
Returns the line style of an ChartAttribute object. |
double |
getLineWidth()
Returns the line width of an ChartAttribute object. |
java.awt.Color |
getPrimaryColor()
Returns the primary color of an ChartAttribute object. |
static double |
getResizeMultiplier()
Returns the resize multiplier. |
double |
getSymbolSize()
Returns the symbol size of an ChartAttribute object. |
static java.awt.BasicStroke |
makeStroke(double rlinewidth,
int nlinestyle)
A static function that returns a simple stroke object for use in dialogs. |
void |
setAutoGradient(boolean value)
Set/Get the auto gradient mode for filled objects. |
void |
setChartObjAttributes(java.awt.Graphics2D g2)
Sets the current attributes. |
void |
setColor(java.awt.Color rgbcolor)
Sets the primary color of an ChartAttribute object. |
void |
setCustomStroke(java.awt.BasicStroke stroke)
Overrides the current, calculated stroke object, substituting a user defined stroke defining line width, end caps, line miter and dash/dot characteristics. |
void |
setFillColor(java.awt.Color rgbfillcolor)
Sets the fill color of an ChartAttribute object. |
void |
setFillFlag(boolean bfillflag)
Sets the fill flag of an ChartAttribute object. |
void |
setFillStyle(int nfillstyle)
Sets the fill style of an ChartAttribute object. |
void |
setGradient(ChartGradient value)
The ChartGradient object controls the simple (2-color) and complex (multi-color) gradients. |
void |
setLineAttributes(java.awt.Color rgbcolor,
double rlinewidth,
int nlinestyle)
Sets the color, line width and line style of an ChartAttribute object. |
void |
setLineColor(java.awt.Color rgbcolor)
Sets the primary color of an ChartAttribute object. |
void |
setLineFlag(boolean blineflag)
Sets the line flag of an ChartAttribute object. |
void |
setLineStyle(int nlinestyle)
Sets the line style of an ChartAttribute object. |
void |
setLineWidth(double rlinewidth)
Sets the line width of an ChartAttribute object. |
void |
setPrimaryColor(java.awt.Color rgbcolor)
Sets the primary color of an ChartAttribute object. |
static void |
setResizeMultiplier(double multiplier)
Sets the resize multiplier. |
void |
setSymbolSize(double rsymbolsize)
Sets the symbol size of an ChartAttribute object. |
static java.util.Vector<ChartAttribute> |
TypeSafeVectorCopy(java.util.Vector<ChartAttribute> source)
Returns an object that is a typesafe copy of the source Vector |
void |
update()
Updates the simpleStroke object based on the current lineStyle and lineWidth fields. |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartAttribute()
public ChartAttribute(ChartAttribute attr)
attr
- The new ChartAttribute object is a copy of this object.public ChartAttribute(ChartPlot source, int ngroup)
source
- The new ChartAttribute object is a copy of the ChartAttribute
associated with a specific group in an DChartPlot object.ngroup
- The ChartAttribute object associated with this group is copied.public ChartAttribute(java.awt.Color rgbcolor)
rgbcolor
- The primary line and text color, sets the field primaryColor.public ChartAttribute(java.awt.Color rgbcolor, double rlinewidth)
rgbcolor
- The primary line and text color, sets the field primaryColor.rlinewidth
- The line width for all lines, sets the field lineWidth.public ChartAttribute(java.awt.Color rgbcolor, double rlinewidth, int nlinestyle)
rgbcolor
- The primary line and text color, sets the field primaryColor.rlinewidth
- The line width for all lines, sets the field lineWidth.nlinestyle
- The line style for all lines, sets the field lineStyle.public ChartAttribute(java.awt.Color rgbcolor, double rlinewidth, int nlinestyle, java.awt.Color rgbfillcolor)
rgbcolor
- The primary line and text color, sets the field primaryColor.rlinewidth
- The line width for all lines, sets the field lineWidth.nlinestyle
- The line style for all lines, sets the field lineStyle.rgbfillcolor
- The fill color for solid objects, sets the field fillColorpublic ChartAttribute(GraphObj source)
source
- The new ChartAttribute object is a copy of the ChartAttribute
object stored in this GraphObj object.Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public void copy(ChartAttribute source)
source
- The source object.public int errorCheck(int nerror)
errorCheck
in class ChartObj
nerror
- Current error state.
public boolean getAutoGradient()
public java.awt.Color getColor()
public java.awt.BasicStroke getCustomStroke()
public java.awt.Color getFillColor()
public boolean getFillFlag()
public int getFillStyle()
public ChartGradient getGradient()
public java.awt.Color getLineColor()
public boolean getLineFlag()
public int getLineStyle()
public double getLineWidth()
public java.awt.Color getPrimaryColor()
public static double getResizeMultiplier()
setResizeMultiplier(double)
public double getSymbolSize()
public static java.awt.BasicStroke makeStroke(double rlinewidth, int nlinestyle)
rlinewidth
- The line width for all lines, sets the field lineWidth.nlinestyle
- The line style for all lines, sets the field lineStyle.
public void setAutoGradient(boolean value)
public void setChartObjAttributes(java.awt.Graphics2D g2)
g2
- The graphics context.public void setColor(java.awt.Color rgbcolor)
rgbcolor
- The primary line, fill and text color, sets the field primaryColor.public void setCustomStroke(java.awt.BasicStroke stroke)
stroke
- This stroke is used for all line drawing and sets the field customStroke.public void setFillColor(java.awt.Color rgbfillcolor)
rgbfillcolor
- The fill color, sets the field fillColor.public void setFillFlag(boolean bfillflag)
bfillflag
- The value true fills solid objects using the fillColor,
sets the field fillFlag.public void setFillStyle(int nfillstyle)
nfillstyle
- Sets the fill style for solid objects,
sets the field fillStyle.public void setGradient(ChartGradient value)
public void setLineAttributes(java.awt.Color rgbcolor, double rlinewidth, int nlinestyle)
rgbcolor
- The primary line and text color, sets the field primaryColor.rlinewidth
- The line width for all lines, sets the field lineWidth.nlinestyle
- The line style for all lines, sets the field lineStyle.public void setLineColor(java.awt.Color rgbcolor)
rgbcolor
- The primary line and text color, sets the field primaryColor.public void setLineFlag(boolean blineflag)
blineflag
- The value true outlines solid objects using the primaryColor,
sets the field lineFlag.public void setLineStyle(int nlinestyle)
nlinestyle
- The line style for all lines, sets the field lineStyle.public void setLineWidth(double rlinewidth)
rlinewidth
- The line width for all lines, sets the field lineWidth.public void setPrimaryColor(java.awt.Color rgbcolor)
rgbcolor
- The primary line and text color, sets the field primaryColor.public static void setResizeMultiplier(double multiplier)
multiplier
- Sets the resize multiplier.public void setSymbolSize(double rsymbolsize)
rsymbolsize
- The symbol size, measured in Java user coordinates,
sets the field symbolSize.public static java.util.Vector<ChartAttribute> TypeSafeVectorCopy(java.util.Vector<ChartAttribute> source)
source
- The source object.
public void update()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |