|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.graphics.chart.ChartObjectAttributes
ChartObjectAttributes implements a chart attribute set where the
attribute values are stored in corresponding object member
variables. For more information about the attributes themselves,
please see ChartAttributes interface documentation.
This object storage method is neccessary when attributes are
manipulated and accessed during and before chart processing. When
storing or moving the attributes, use the toString() method
to convert the attributes into corresponding XML string
representation.
Chart,
ChartData,
ChartMultiAttributes,
ChartStringAttributes,
ChartXMLAttributes,
Serialized Form| Field Summary | |
protected int |
M_antialiasMode
Antialiasing mode (OFF, ON, or AUTO, defaults to AUTO). |
protected java.util.List |
M_axes
Chart axes, one or more. |
protected BackRenderAttributes |
M_back
Chart background area render attributes (may be null). |
protected java.lang.String |
M_chartType
Requested chart image encoding mime type (may be null). |
protected java.lang.String |
M_contentType
Requested chart image encoding mime type (may be null). |
protected com.davisor.graphics.codec.MimeInfo |
M_encoderInfo
Chart encode info, if available (may be null). |
protected java.lang.Number |
M_height
Chart height in millimeters (may be null). |
protected java.lang.String |
M_id
Attribute set identity (may be null). |
protected java.lang.String |
M_imageParams
Arbitrary image parameters. |
protected LegendAttributes |
M_legendAttributes
Legend attributes |
protected java.util.Locale |
M_locale
Chart locale (may be null). |
protected java.lang.Boolean |
M_multiSeriesMode
Multiseries mode (may be null) |
protected java.lang.String |
M_namespace
Shapes namespace. |
protected PlotRenderAttributes |
M_plot
Chart plot area render attributes (may be null). |
protected java.lang.Number |
M_resolution
Chart raster image pixels-per-millimeter resolution (may be null). |
protected java.net.URL |
M_urlContext
URL address context to complete partial URL addresses (may be null). |
protected java.lang.Number |
M_width
Chart width in millimeters (may be null). |
| Constructor Summary | |
ChartObjectAttributes()
Default constructor. |
|
ChartObjectAttributes(ChartObjectAttributes ca,
boolean deep)
Copy constructor with control over deep or shallow copy policy. |
|
ChartObjectAttributes(java.lang.Number width,
java.lang.Number height,
java.lang.Number resolution,
BackRenderAttributes back,
PlotRenderAttributes plot,
java.util.List axes,
java.util.Locale locale,
java.net.URL urlContext,
java.lang.String contentType,
java.lang.String chartType,
java.lang.Boolean multiSeriesMode)
Creates a new chart attributes set. |
|
| Method Summary | |
void |
addChannelAttributes(ChartData data)
Adding channels from the data This method delegates adding channel attributes to the plot render attributes. |
protected void |
appendXMLBodyTags(java.lang.StringBuffer xml)
Appends a XML body tags. |
protected void |
appendXMLEndTag(java.lang.StringBuffer xml)
Appends a XML tag that ends objects XML representation. |
protected void |
appendXMLStartTag(java.lang.StringBuffer xml)
Appends a XML tag that starts objects XML representation. |
java.lang.Object |
clone()
Makes a shallow copy of this object. |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
boolean |
equals(java.lang.Object object)
Test if these attributes equal to given attributes. |
int |
getAntialiasMode()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.util.List |
getAxes()
Implements a ChartAttributes interface method with a
concrete implementation. |
BackRenderAttributes |
getBack()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.String |
getChartType()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.String |
getContentType()
Implements a ChartAttributes interface method with a
concrete implementation. |
com.davisor.graphics.codec.MimeInfo |
getEncoderInfo()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.Number |
getHeight()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.String |
getID()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.String |
getImageParams()
Implements a ChartAttributes interface method with a
concrete implementation. |
LegendAttributes |
getLegend()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.util.Locale |
getLocale()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.Boolean |
getMultiSeriesMode()
Gets multiseries mode. |
java.lang.String |
getName(java.lang.String id)
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.String |
getNamespace()
Gets the namespace for shapes. |
PlotRenderAttributes |
getPlot()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.Number |
getResolution()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.net.URL |
getURLContext()
Implements a ChartAttributes interface method with a
concrete implementation. |
java.lang.Number |
getWidth()
Implements a ChartAttributes interface method with a
concrete implementation. |
boolean |
isArea(java.lang.String id,
PlotRenderAttributes plot)
Tests channel fill status. |
boolean |
isSeries(java.lang.String id)
Deprecated. Use ChartFactory#isMultiSeriesMode instead |
void |
setAntialiasMode(int antialiasMode)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setAntialiasMode(java.lang.String antialiasMode)
Sets chart antialiasing mode with a keyword. |
void |
setBack(BackRenderAttributes back)
Sets back area render attributes. |
void |
setChartType(java.lang.String chartType)
Sets chart factory type. |
void |
setContentType(java.lang.String contentType)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setHeight(java.lang.Number height,
boolean inherit)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setImageParams(java.lang.String imageParams)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setLegend(LegendAttributes legend)
Sets legend attributes. |
void |
setLocale(java.util.Locale locale)
Sets chart locale. |
void |
setLocale(java.lang.String locale)
Sets chart locale. |
void |
setMultiSeriesMode(java.lang.Boolean multiSeriesMode)
Sets multiseries mode. |
void |
setNamespace(java.lang.String namespace)
Set the namespace for shapes. |
void |
setPlot(PlotRenderAttributes plot)
Sets plot area render attributes. |
void |
setResolution(java.lang.Number resolution)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setURLContext(java.net.URL urlContext)
Implements a ChartAttributes interface method with a
concrete implementation. |
void |
setWidth(java.lang.Number width,
boolean inherit)
Implements a ChartAttributes interface method with a
concrete implementation.
|
java.lang.String |
toString()
Gets chart attributes XML representation. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int M_antialiasMode
protected java.util.List M_axes
protected BackRenderAttributes M_back
protected java.lang.String M_chartType
protected com.davisor.graphics.codec.MimeInfo M_encoderInfo
protected java.lang.String M_contentType
protected java.lang.Number M_height
protected java.lang.String M_id
protected java.lang.String M_imageParams
protected java.util.Locale M_locale
protected java.lang.Boolean M_multiSeriesMode
protected java.lang.String M_namespace
protected PlotRenderAttributes M_plot
protected java.lang.Number M_resolution
protected java.net.URL M_urlContext
protected java.lang.Number M_width
protected LegendAttributes M_legendAttributes
| Constructor Detail |
public ChartObjectAttributes()
public ChartObjectAttributes(ChartObjectAttributes ca,
boolean deep)
ChartAxis objects
with the original source object. Please note also, that after a
deep copy, the new chart axes plot render attribute instances are
made to inherit new general plot attribute values.
ca - attributes to be copieddeep - deep copy flagclone(),
dup()
public ChartObjectAttributes(java.lang.Number width,
java.lang.Number height,
java.lang.Number resolution,
BackRenderAttributes back,
PlotRenderAttributes plot,
java.util.List axes,
java.util.Locale locale,
java.net.URL urlContext,
java.lang.String contentType,
java.lang.String chartType,
java.lang.Boolean multiSeriesMode)
width - chart width, in millimeters (may be null)height - chart height, in millimeters (may be null)resolution - raster pixels-per-millimeter resolution (may be null)back - chart background rendering attributesplot - default plot area rendering attributesaxes - chart axes attributeslocale - chart locale (may be null)urlContext - base URL for partial address completition (may be null)contentType - intended chart image MIME type (may be null)chartType - intended chart factory type (may be null)multiSeriesMode - multiseries mode (may be null)MimeInfo| Method Detail |
public int getAntialiasMode()
ChartAttributes interface method with a
concrete implementation.
getAntialiasMode in interface ChartAttributesRenderAttributes antialias codeChartAttributes.getAntialiasMode()public java.util.List getAxes()
ChartAttributes interface method with a
concrete implementation.
getAxes in interface ChartAttributesChartAttributes.getAxes()public BackRenderAttributes getBack()
ChartAttributes interface method with a
concrete implementation.
getBack in interface ChartAttributesChartAttributes.getBack()public java.lang.String getChartType()
ChartAttributes interface method with a
concrete implementation.
getChartType in interface ChartAttributesnull if unsetChartAttributes.getChartType()public com.davisor.graphics.codec.MimeInfo getEncoderInfo()
ChartAttributes interface method with a
concrete implementation.
getEncoderInfo in interface ChartAttributesimage/png encoder information if encoder has not
been explicitly setChartAttributes.getEncoderInfo()public java.lang.String getContentType()
ChartAttributes interface method with a
concrete implementation.
getContentType in interface ChartAttributesChartAttributes.getContentType()public java.lang.Number getHeight()
ChartAttributes interface method with a
concrete implementation.
getHeight in interface ChartAttributesChartAttributes.getHeight()public java.lang.String getID()
ChartAttributes interface method with a
concrete implementation.
getID in interface ChartAttributesChartAttributes.getID()public java.lang.String getImageParams()
ChartAttributes interface method with a
concrete implementation.
getImageParams in interface ChartAttributesnull if unsetChartAttributes.getImageParams()public LegendAttributes getLegend()
ChartAttributes interface method with a
concrete implementation.
getLegend in interface ChartAttributesChartAttributes.getLegend()public java.util.Locale getLocale()
ChartAttributes interface method with a
concrete implementation.
getLocale in interface ChartAttributesnull if unsetChartAttributes.getLocale()public java.lang.Boolean getMultiSeriesMode()
getMultiSeriesMode in interface ChartAttributesnull if unsetpublic java.lang.String getName(java.lang.String id)
ChartAttributes interface method with a
concrete implementation.
getName in interface ChartAttributesnull if channel is unknown,
or channel name is unsetChartAttributes.getName(java.lang.String)public java.lang.String getNamespace()
getNamespace in interface ChartAttributesnull if namespace is unsetpublic PlotRenderAttributes getPlot()
ChartAttributes interface method with a
concrete implementation.
getPlot in interface ChartAttributesChartAttributes.getPlot()public java.lang.Number getResolution()
ChartAttributes interface method with a
concrete implementation.
getResolution in interface ChartAttributesChartAttributes.getResolution()public java.net.URL getURLContext()
ChartAttributes interface method with a
concrete implementation.
getURLContext in interface ChartAttributesnull if unsetChartAttributes.getURLContext()public java.lang.Number getWidth()
ChartAttributes interface method with a
concrete implementation.
getWidth in interface ChartAttributesChartAttributes.getWidth()
public boolean isArea(java.lang.String id,
PlotRenderAttributes plot)
isArea in interface ChartAttributesid - channel identityplot - plot attributes to use in the test
getPlot()public boolean isSeries(java.lang.String id)
ChartAttributes interface method with a
concrete implementation.
isSeries in interface ChartAttributesid - channel identityChartAttributes.isSeries(java.lang.String)public void setAntialiasMode(int antialiasMode)
ChartAttributes interface method with a
concrete implementation.
setAntialiasMode in interface ChartAttributesantialiasMode - RenderAttributes antialias codesetAntialiasMode(String),
ChartAttributes.setAntialiasMode(int)public void setContentType(java.lang.String contentType)
ChartAttributes interface method with a
concrete implementation.
setContentType in interface ChartAttributesChartAttributes.setContentType(java.lang.String)
public void setHeight(java.lang.Number height,
boolean inherit)
ChartAttributes interface method with a
concrete implementation.
setHeight in interface ChartAttributesheight - new chart height (may be null)inherit - should null value inherit or
override old valueChartAttributes.getHeight()public void setImageParams(java.lang.String imageParams)
ChartAttributes interface method with a
concrete implementation.
setImageParams in interface ChartAttributesChartAttributes.setImageParams(java.lang.String)public void setResolution(java.lang.Number resolution)
ChartAttributes interface method with a
concrete implementation.
setResolution in interface ChartAttributesChartAttributes.setResolution(java.lang.Number)public void setURLContext(java.net.URL urlContext)
ChartAttributes interface method with a
concrete implementation.
setURLContext in interface ChartAttributesChartAttributes.setURLContext(java.net.URL)
public void setWidth(java.lang.Number width,
boolean inherit)
ChartAttributes interface method with a
concrete implementation.
If encoder info is available, and it contains a width base value greater than '1', chart width, if given, is rounded up to be an even multiple of that width base value.
setWidth in interface ChartAttributeswidth - new chart width (may be null)inherit - should null value inherit or
override old valueChartAttributes.getWidth()public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupableclone(),
ChartObjectAttributes(ChartObjectAttributes,boolean)public java.lang.Object clone()
dup(),
ChartObjectAttributes(ChartObjectAttributes,boolean)public boolean equals(java.lang.Object object)
public java.lang.String toString()
ChartData.toString(),
BackRenderAttributes.toString(),
PlotRenderAttributes.toString(),
ChartAxes.toString(),
ChartXMLAttributespublic void setAntialiasMode(java.lang.String antialiasMode)
antialiasMode - RenderAttributes antialias keywordgetAntialiasMode(),
setAntialiasMode(int),
RenderAttributes.toAntialiasMode(String)public void setBack(BackRenderAttributes back)
public void setChartType(java.lang.String chartType)
public void setLegend(LegendAttributes legend)
public void setLocale(java.util.Locale locale)
locale - new locale (may be null)
public void setLocale(java.lang.String locale)
throws com.davisor.core.InvalidParameterException
locale - locale string as understood by LocaleParser.createLocale(String) (may be null)
com.davisor.core.InvalidParameterException - if given locale string is invalidpublic void setMultiSeriesMode(java.lang.Boolean multiSeriesMode)
multiSeriesMode - multi series mode (may be null)getMultiSeriesMode(),
ChartFactory.isMultiSeriesMode(com.davisor.graphics.chart.ChartData, com.davisor.graphics.chart.ChartAttributes)public void setNamespace(java.lang.String namespace)
public void setPlot(PlotRenderAttributes plot)
public void addChannelAttributes(ChartData data)
addChannelAttributes in interface ChartAttributesdata - from which channels are to be addedChannelAttributes.getID(),
ChannelAttributes.setDefaults(com.davisor.graphics.chart.ChannelAttributes)protected void appendXMLStartTag(java.lang.StringBuffer xml)
protected void appendXMLEndTag(java.lang.StringBuffer xml)
protected void appendXMLBodyTags(java.lang.StringBuffer xml)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||