JFReeChart coordinate setting method used

2010-03-27  来源:本站原创  分类:Java  人气:640 

JFReeChart coordinate settings in

2008-07-09 23:41

JFreeChart Class:
void setAntiAlias (boolean flag) fonts fuzzy boundary
void setBackgroundImage (Image image) background image
void setBackgroundImageAlignment (int alignment) the background image alignment (parameter type constants defined in org.jfree.ui.Align)
void setBackgroundImageAlpha (float alpha) background image transparency (0.0 to 1.0)
void setBackgroundPaint (Paint paint) the background color
void setBorderPaint (Paint paint) the border line color
void setBorderStroke (Stroke stroke) boundary line strokes
void setBorderVisible (boolean visible) boundary lines are visible

-------------------------------------------------- -------------------------------------------------- -------

TextTitle categories:
void setFont (Font font) caption fonts
void setPaint (Paint paint) title font color
void setText (String text) title content

-------------------------------------------------- -------------------------------------------------- -------

StandardLegend (Legend) categories:
void setBackgroundPaint (Paint paint) icon background color
void setTitle (String title) shows the title content
void setTitleFont (Font font) icon title font
void setBoundingBoxArcWidth (int arcWidth) shows wide rounded border
void setBoundingBoxArcHeight (int arcHeight) shows the high boundary corner
void setOutlinePaint (Paint paint) icon on the border line color
void setOutlineStroke (Stroke stroke) shows the boundary lines of strokes
void setDisplaySeriesLines (boolean flag) icon is displayed horizontal line item (line chart effective)
void setDisplaySeriesShapes (boolean flag) whether to display item icons shape (line chart effective)
void setItemFont (Font font) font icon items
void setItemPaint (Paint paint) icon item font color
void setAnchor (int anchor) icon displayed in the chart position (parameter constants defined in the Legend category)

-------------------------------------------------- -------------------------------------------------- -------

Axis type:
void setVisible (boolean flag) axis are visible
void setAxisLinePaint (Paint paint) color coordinate axis section (3D axis invalid)
void setAxisLineStroke (Stroke stroke) coordinate axis strokes Article (3D axis invalid)
void setAxisLineVisible (boolean visible) coordinate axis section is visible (3D axis invalid)
void setFixedDimension (double dimension) (for the composite table of the multi-axis settings)
void setLabel (String label) axis title
void setLabelFont (Font font) axis title font
void setLabelPaint (Paint paint) color of axis title
void setLabelAngle (double angle) `title rotation axis (the vertical axis can be rotated)
void setTickLabelFont (Font font) font axis scale value
void setTickLabelPaint (Paint paint) color axis scale value
void setTickLabelsVisible (boolean flag) axis scale value is displayed
void setTickMarkPaint (Paint paint) color scale axis
void setTickMarkStroke (Stroke stroke) stroke scale axis
void setTickMarksVisible (boolean flag) axis scale is shown

ValueAxis (Axis) categories:
void setAutoRange (boolean auto) automatically sets the data axis data range
void setAutoRangeMinimumSize (double size) automatically sets the range of data axis data range of the minimum span of data
void setAutoTickUnitSelection (boolean flag) data, the data axis labels are determined automatically (default true)
void setFixedAutoRange (double length) data-axis fixed data range (set to 100, then that shows that part of MAXVALUE to MAXVALUE-100 range of data)
void setInverted (boolean flag) whether the data reverse axis (default is false)
void setLowerMargin (double margin) under the data axis (left) margin
void setUpperMargin (double margin) data axis (right) margins
void setLowerBound (double min) data show the minimum axis
void setUpperBound (double max) data-axis shows the maximum
void setPositiveArrowVisible (boolean visible) indicate a positive arrows (3D axis invalid)
void setNegativeArrowVisible (boolean visible) indicate the reverse arrow (3D axis invalid)
void setVerticalTickLabels (boolean flag) data-axis data labels are rotated to the vertical
void setStandardTickUnits (TickUnitSource source) data-axis data labels (you can display only integer tags, you need to AutoTickUnitSelection set false)

NumberAxis (ValueAxis) categories:
void setAutoRangeIncludesZero (boolean flag) whether the mandatory scope of the automatic selection of the data contained in 0
void setAutoRangeStickyZero (boolean flag) is mandatory in the entire data axis contains 0, if 0 is not in the data range
void setNumberFormatOverride (NumberFormat formatter) data-axis data labels display format
void setTickUnit (NumberTickUnit unit) data-axis data labels (the need to AutoTickUnitSelection set false)

DateAxis (ValueAxis) categories:
void setMaximumDate (Date maximumDate) Date Date the minimum axis
void setMinimumDate (Date minimumDate) axis of the largest date date
void setRange (Date lower, Date upper) Date axis range
void setDateFormatOverride (DateFormat formatter) Date Date axis label display format
void setTickUnit (DateTickUnit unit) Date Date axis label (the need to AutoTickUnitSelection set false)
void setTickMarkPosition (DateTickMarkPosition position) the date labeling position (parameter type constants defined in org.jfree.chart.axis.DateTickMarkPosition)

CategoryAxis (Axis) categories:
void setCategoryMargin (double margin) classification margin axis
void setLowerMargin (double margin) under the category axis (left) margin
void setUpperMargin (double margin) Category axis (right) margins
void setVerticalCategoryLabels (boolean flag) classification is rotated to the vertical axis title
void setMaxCategoryLabelWidthRatio (float ratio) Category axes label the maximum width

-------------------------------------------------- -------------------------------------------------- -------
Plot type:
void setBackgroundImage (Image image) data area of the background image
void setBackgroundImageAlignment (int alignment) data area of the background image alignment (parameter type constants defined in org.jfree.ui.Align)
void setBackgroundPaint (Paint paint) Data area background color of the background image
void setBackgroundAlpha (float alpha) data area of the background transparency (0.0 to 1.0)
void setForegroundAlpha (float alpha) data area of the prospect of transparency (0.0 to 1.0)
void setDataAreaRatio (double ratio) data area percentage of the total chart area
void setOutLinePaint (Paint paint) the border line color data area
void setOutLineStroke (Stroke stroke) zone boundary lines of data stroke
void setNoDataMessage (String message) the message displayed when no data
void setNoDataMessageFont (Font font) no data message is displayed when the font
void setNoDataMessagePaint (Paint paint) no data message is displayed when the color

CategoryPlot (Plot) categories:
void setDataset (CategoryDataset dataset) data area of 2-D data table
void setColumnRenderingOrder (SortOrder order) to sort the data classification
void setAxisOffset (Spacer offset) axis to the data area of the pitch
void setOrientation (PlotOrientation orientation) direction of the data area (PlotOrientation.HORIZONTAL or PlotOrientation.VERTICAL)
void setDomainAxis (CategoryAxis axis) data area of the category axis
void setDomainAxisLocation (AxisLocation location) Category axis position (parameter type constants defined in org.jfree.chart.axis.AxisLocation)
void setDomainGridlinesVisible (boolean visible) Category axis grid is visible
void setDomainGridlinePaint (Paint paint) Category axis grid line color
void setDomainGridlineStroke (Stroke stroke) stroke classification axis grid lines
void setRangeAxis (ValueAxis axis) axis data area data
void setRangeAxisLocation (AxisLocation location) data-axis position (parameter type constants defined in org.jfree.chart.axis.AxisLocation)
void setRangeGridlinesVisible (boolean visible) data axis grid is visible
void setRangeGridlinePaint (Paint paint) data axis grid line color
void setRangeGridlineStroke (Stroke stroke) data axis grid line stroke
void setRenderer (CategoryItemRenderer renderer) data areas that are (see Renderer group)
void addAnnotation (CategoryAnnotation annotation) to add a comment data area
void addRangeMarker (Marker marker, Layer layer) to the data area plus a range of values area

PiePlot (Plot) categories:
void setDataset (PieDataset dataset) data area of a dimension table
void setIgnoreNullValues (boolean flag) ignored the value of the classification of non-
void setCircular (boolean flag) whether the pie must be perfect circle
void setStartAngle (double angle) pie initial angle
void setDirection (Rotation direction) direction of rotation of pie
void setExplodePercent (int section, double percent) taken of the piece (1-dimensional data classification table subscript), and extracted from (0.0 ~ 1.0), 3D pie invalid
void setLabelBackgroundPaint (Paint paint) the background color of Classification and Labelling
void setLabelFont (Font font) the font of Classification and Labelling
void setLabelPaint (Paint paint) classification label font color
void setLabelLinkMargin (double margin) classification of cable labeling and Figure margins
void setLabelLinkPaint (Paint paint) of Classification and Labelling and the connection line color chart
void setLabelLinkStroke (Stroke stroke) of Classification and Labelling and the map of cable strokes
void setLabelOutlinePaint (Paint paint) Category label border color
void setLabelOutlineStroke (Paint paint) brush border of Classification and Labelling
void setLabelShadowPaint (Paint paint) color of the shadow of Classification and Labelling
void setMaximumLabelWidth (double width) of Classification and Labelling of maximum length (0.0 to 1.0)
void setPieIndex (int index) pie chart of the index (used in composite pie)
void setSectionOutlinePaint (int section, Paint paint) specify the border color classification cake
void setSectionOutlineStroke (int section, Stroke stroke) cake specified category border strokes
void setSectionPaint (int section, Paint paint) color of the specified categories cake
void setShadowPaint (Paint paint) color of the shadow of pie
void setShadowXOffset (double offset) pie chart of the level of the shadow of the relative shift
void setShadowYOffset (double offset) pie chart the shadow of the relative vertical offset
void setLabelGenerator (PieSectionLabelGenerator generator) classification label format, set to null, then the whole tag, including cable not shown
void setToolTipGenerator (PieToolTipGenerator generator) MAP in the mouse move on the display format
void setURLGenerator (PieURLGenerator generator) MAP in the drill link format

PiePlot3D (PiePlot) categories:
void setDepthFactor (double factor) 3D pie chart of the Z-axis height (0.0 to 1.0)

MultiplePiePlot (Plot) categories:
void setLimit (double limit) data association between each pie (more complicated)
void setPieChart (JFreeChart pieChart) of each pie chart is displayed (see the JFreeChart class a PiePlot category)

-------------------------------------------------- -------------------------------------------------- -------
AbstractRenderer categories:
void setItemLabelAnchorOffset (double offset) data labels and data points of the offset
void setItemLabelsVisible (boolean visible) data tag is visible
void setItemLabelFont (Font font) the font data labels
void setItemLabelPaint (Paint paint) data label font color
void setItemLabelPosition (ItemLabelPosition position) position of data labels
void setPositiveItemLabelPosition (ItemLabelPosition position) is the number of labels location
void setNegativeItemLabelPosition (ItemLabelPosition position) position of negative labels
void setOutLinePaint (Paint paint) graphic border line color
void setOutLineStroke (Stroke stroke) graphic border line strokes
void setPaint (Paint paint) color graphics for all categories
void setShape (Shape shape) All graphic shapes (such as line charts of points)
void setStroke (Stroke stroke) All graphics strokes (such as the line chart of the line)
void setSeriesItemLabelsVisible (int series, boolean visible) the data specified category labels visible
void setSeriesItemLabelFont (int series, Font font) classification of the data labels specified the font
void setSeriesItemLabelPaint (int series, Paint paint) classification of the data labels specified the font color
void setSeriesItemLabelPosition (int series, ItemLabelPosition position) position of data labels
void setSeriesPositiveItemLabelPosition (int series, ItemLabelPosition position) is the number of labels location
void setSeriesNegativeItemLabelPosition (int series, ItemLabelPosition position) position of negative labels
void setSeriesOutLinePaint (int series, Paint paint) specified category border line color graphics
void setSeriesOutLineStroke (int series, Stroke stroke) specified category border lines of the graphic strokes
void setSeriesPaint (int series, Paint paint) color graphics specified category
void setSeriesShape (int series, Shape shape) specified category graphic shape (such as line charts of points)
void setSeriesStroke (int series, Stroke stroke) stroke graphics specified category (such as line graph Line)

AbstractCategoryItemRenderer (AbstractRenderer) categories:
void setLabelGenerator (CategoryLabelGenerator generator) format for data labels
void setToolTipGenerator (CategoryToolTipGenerator generator) MAP in the mouse move on the display format
void setItemURLGenerator (CategoryURLGenerator generator) MAP in the drill link format
void setSeriesLabelGenerator (int series, CategoryLabelGenerator generator) classification of the data labels specified the format of
void setSeriesToolTipGenerator (int series, CategoryToolTipGenerator generator) in the specified category Mouse on the MAP display format
void setSeriesItemURLGenerator (int series, CategoryURLGenerator generator), MAP specified category links in the drill format

BarRenderer (AbstractCategoryItemRenderer) categories:
void setDrawBarOutline (boolean draw) is drawn graphic border
void setItemMargin (double percent) the interval between each BAR
void setMaxBarWidth (double percent) the maximum width of each BAR
void setMinimumBarLength (double min) BAR shortest length, to avoid too small to show no value
void setPositiveItemLabelPositionFallback (ItemLabelPosition position) can not be displayed in BAR is the number of labels location
void setNegativeItemLabelPositionFallback (ItemLabelPosition position) can not be displayed in the BAR position of negative labels

BarRenderer3D (BarRenderer) categories:
void setWallPaint (Paint paint) 3D coordinate axis of the wall color

StackedBarRenderer (BarRenderer) categories:
No special settings

StackedBarRenderer3D (BarRenderer3D) categories:
No special settings

GroupedStackedBarRenderer (StackedBarRenderer) categories:
void setSeriesToGroupMap (KeyToGroupMap map) will be classified into several free mapping group (KeyToGroupMap.mapKeyToGroup (series, group))

LayeredBarRenderer (BarRenderer) categories:
void setSeriesBarWidth (int series, double width) Set the width of each category (note the settings do not make a certain category is covered)

WaterfallBarRenderer (BarRenderer) categories:
void setFirstBarPaint (Paint paint) color of the first column chart
void setLastBarPaint (Paint paint) color of the last column chart
void setPositiveBarPaint (Paint paint) positive column color chart
void setNegativeBarPaint (Paint paint) color negative column chart

IntervalBarRenderer (BarRenderer) categories:
Need to pass IntervalCategoryDataset as a data source

GanttBarRenderer (IntervalBarRenderer) categories:
void setCompletePaint (Paint paint) to complete the progress of color
void setIncompletePaint (Paint paint) did not complete the progress of the color
void setStartPercent (double percent) to set the progress bar in the whole of the starting position (0.0 to 1.0)
void setEndPercent (double percent) to set the progress bar in the whole of the end of the position (0.0 to 1.0)

StatisticBarRenderer (BarRenderer) categories:
Need to pass StatisticCategoryDataset as a data source

LineAndShapeRenderer (AbstractCategoryItemRenderer) categories:
void setDrawLines (boolean draw) whether the line between data points connected with lines
void setDrawShapes (boolean draw) whether the line of data points with different shapes according to the classification
void setShapesFilled (boolean filled) data points for all categories are filled with graphics
void setSeriesShapesFilled (int series, boolean filled) data points in the specified category is filled graphics
void setUseFillPaintForShapeOutline (boolean use) specify whether the data points fill Paint is also used to draw the shape of the frame of data points

LevelRenderer (AbstractCategoryItemRenderer) categories:
void setItemMargin (double percent) the interval between each category
void setMaxItemWidth (double percent) the maximum width of each category

CategoryStepRenderer (AbstractCategoryItemRenderer) categories:
void setStagger (boolean shouldStagger) are staggered in different categories of map

MinMaxCategoryRenderer (AbstractCategoryItemRenderer) categories:
void setDrawLines (boolean drawLines) is drawn in each category between the cable line
void setGroupPaint (Paint groupPaint) a set of color graphics cable
void setGroupStroke (Stroke groupStroke) a line graph connecting strokes
void setMaxIcon (Icon maxIcon) the maximum value of the ICON
void setMinIcon (Icon minIcon) the minimum value of the ICON
void setObjectIcon (Icon objectIcon) for all values of ICON

AreaRender (AbstractCategoryItemRenderer) categories:
No special settings

StackedAreaRender (AreaRender) categories:
No special settings

相关文章
  • JFReeChart coordinate setting method used 2010-03-27

    JFReeChart coordinate settings in 2008-07-09 23:41 JFreeChart Class: void setAntiAlias (boolean flag) fonts fuzzy boundary void setBackgroundImage (Image image) background image void setBackgroundImageAlignment (int alignment) the background image al

  • Apache load balancing setting method: mod_proxy 2008-12-05

    In general, load balancing is to divert the client's request to the back-end all the real servers to achieve load balancing purposes. Another way is to use two servers, one as the primary server (Master), another as a hot backup (Hot Standby), all pa

  • Windows7 Stereo Mix setting method (stereo mix) 2010-05-30

    Many friends Windows7 system installed, but need a microphone and background sound or music while the output when it came to a lot of trouble. Internet forums are also a lot of community help posts, but few can be a solution. There are many ways this

  • Google DNS and OpenDNS setting method (get rid of telecommunications DNS hijacking) 2010-06-27

    Transfer from: http://bbs.mydigit.cn/read.php?tid=144540 Google DNS and OpenDNS setting method (get rid of telecommunications DNS hijacking) Google DNS server IP addresses of two DNS are 8.8.8.8 and 8.8.4.4 OpenDNS server IP addresses are 208.67.220.

  • openSUSE static fixed IP setting method 2011-07-29

    called the most beautiful openSUSE Linux, but Chinese data is too small, here in VMmware Workstation 7.12 installed openSUSE 11.3 in a static fixed IP setting method. The first description of my environment, the following IP settings easily. Physical

  • Tomcat memory setting method 2009-01-11

    We all know that windows in, JAVA program will start JVM will allocate an initial memory and maximum memory to this application. The initial memory and maximum memory to some extent will affect the program's performance. For example, the application

  • Remove Setting Method 2010-03-23

    "Refactoring - Improving the design of existing code" 10.10 p300 Hibernate and spring may be subject to the effects that have been set method is a matter of course, is also very necessary. But sometimes think about, set methods there are some un

  • -jar argument when running the application classpath setting method 2010-03-18

    http://www.zeali.net/entry/15 When using java-jar yourJarExe.jar to run through a packaged application, you will find how to set-classpath parameter the application can not find the corresponding third-party class, reported ClassNotFound error. In pr

  • C + + dialog box background color setting method 2010-11-19

    A dialog-based MFC AppWizard application, how to change the background color of the dialog box it? For this problem, in fact, several different methods can be implemented, as follows (additions shown in bold italic code): ---- Method One: class membe

  • jfreechart garbled set method 2010-04-25

    Font datafont=new Font(" Tahoma ",Font.PLAIN,14); chart.getTitle().setFont(new Font(" Tahoma ", Font.BOLD, 16)); CategoryAxis axis=chart.getCategoryPlot().getDomainAxis(); axis.setLabelFont(datafont); axis.setTickLabelFont(datafont); V

  • Outlook minimized to the tray setting method 2011-05-05

    Recently been used FoxMail send and receive mail, yesterday opened a long time of no use OutLook, suddenly found to be minimized to the tray, so the Internet search, I address the following: 1. Open the registry: Start Menu - "Run, type" regedit

  • In IE View Source setting method Editplus 2011-03-14

    Open Editplus -> Tools -> Preferences -> Preferences -> General -> check the "use Editplus in IE View Source" no box -> click "Apply" button.

  • Outlook minimize to the tray setting method 2011-05-05

    Recently been used FoxMail send and receive mail, yesterday opened a long time useless OutLook, suddenly found to be minimized to the tray, so the Internet search, I address the following: 1 Open the registry: Start Menu -> Run, type "regedit"

  • [Turn] the basic bar code printer setting method 2011-09-19

    1, install the driver. 2, Printers and Faxes - Select "TEC B-SV4", right click - select "Properties." Following settings set on the relevant pages of paper are the use of 42mm * 18mm two paper labels, for example ★ port settings in the

  • Column generation using JFreeChart 2010-06-03

    Column generation using JFreeChart 14.2.1 Column data set plotted using DefaultCategoryDataset JFreeChart plugin by both general effects can generate bar chart, you can also generate 3D effects column. If you want to generate general results column,

  • Three Chinese JFreeChart help documentation 2010-10-29

    Examples can be obtained through the drawing area axis instance, and then set to draw the axes attributes; You can also set a good example axes instance passed to the drawing area. Common coordinate axis and its function See Table 5.8. Table 5.8 Comm

  • tomcat memory settings method 2009-03-28

    Tomcat memory setting method We all know that windows in, JAVA program will start JVM will allocate an initial memory and maximum memory to this application. The initial memory and maximum memory to some extent will affect the program's performance.

  • Heat setting mechanism 2010-02-16

    [1b] Keyword: [/ 1b] heat setting, mechanism 1, fibre shaped the concept of setting: the fiber stress relaxation phenomena occur, and to achieve a stable form of the process. The process of setting two steps: (1) of the interaction between macromolec

  • Google DNS and OpenDNS setting methods (get rid of telecommunications DNS hijacking) 2010-06-27

    Transfer from: http://bbs.mydigit.cn/read.php?tid=144540 Google DNS and OpenDNS setting method (get rid of telecommunications DNS hijacking) Google DNS server IP addresses of two DNS are 8.8.8.8 and 8.8.4.4 OpenDNS server IP addresses are 208.67.220.

  • mysql initial password setting 2010-07-14

    mysql root password setting method shell> mysql-u root mysql mysql> SET PASSWORD FOR root @ localhost = PASSWORD ('new_password'); If you know what you are doing, you can also directly manipulate the privilege tables: shell> mysql-u root mysql my