Java Doc for AxisLabelLayout.java in  » Database-Client » prefuse » prefuse » action » layout » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » prefuse » prefuse.action.layout 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


prefuse.action.layout.Layout
   prefuse.action.layout.AxisLabelLayout

AxisLabelLayout
public class AxisLabelLayout extends Layout (Code)
Layout Action that positions axis grid lines and labels for a given range model.
author:
   jeffrey heer


Field Summary
final public static  StringFRAC
    
final public static  StringLABEL
    
final public static  StringVALUE
    

Constructor Summary
public  AxisLabelLayout(String group, int axis, ValuedRangeModel values)
     Create a new AxisLabelLayout layout.
public  AxisLabelLayout(String group, int axis, ValuedRangeModel values, Rectangle2D bounds)
     Create a new AxisLabelLayout layout.
public  AxisLabelLayout(String group, AxisLayout layout)
     Create a new AxisLabelLayout layout.
public  AxisLabelLayout(String group, AxisLayout layout, Rectangle2D bounds)
     Create a new AxisLabelLayout layout.
public  AxisLabelLayout(String group, AxisLayout layout, Rectangle2D bounds, double spacing)
     Create a new AxisLabelLayout layout.

Method Summary
protected  doubleadjust(double v)
     Adjust a value according to the current scale type.
protected  voidgarbageCollect(VisualTable labels)
     Remove axis labels no longer being used.
protected  doublegetBreadth(Rectangle2D b)
     Get the "breadth" of a rectangle, based on the axis type.
protected  doublegetLinearStep(double span, double scale)
     Compute a linear step between axis marks.
public  NumberFormatgetNumberFormat()
     Get the formatter used to format labels for numerical values.
protected  intgetOrdinalStep(double span, double scale)
     Compute an ordinal step between axis marks.
public  intgetScale()
     Returns the scale type used for the axis.
public  doublegetSpacing()
     Get the required minimum spacing between axis labels.
protected  VisualTablegetTable()
     Create a new table for representing axis labels.
public  booleanisAscending()
     Indicates if the axis values should be presented in ascending order along the axis.
protected  voidlinearLayout(VisualTable labels)
     Calculates a quantitative, linearly scaled layout.
protected  voidlogLayout(VisualTable labels)
     Calculates a quantitative, logarithmically-scaled layout.
protected  voidordinalLayout(VisualTable labels)
     Compute an ordinal layout of axis marks.
protected  voidreset(VisualItem item)
    
public  voidrun(double frac)
    
protected  voidset(VisualItem item, double xOrY, Rectangle2D b)
     Set the layout values for an axis label item.
public  voidsetAscending(boolean asc)
     Sets if the axis values should be presented in ascending order along the axis.
public  voidsetNumberFormat(NumberFormat nf)
     Set the formatter used to format labels for numerical values.
public  voidsetRangeModel(ValuedRangeModel model)
     Sets the range model used to layout this axis.
public  voidsetScale(int scale)
     Sets the scale type used for the axis.
public  voidsetSpacing(double spacing)
     Set the required minimum spacing between axis labels.
protected  voidsqrtLayout(VisualTable labels)
     Calculates a quantitative, square root scaled layout.

Field Detail
FRAC
final public static String FRAC(Code)



LABEL
final public static String LABEL(Code)



VALUE
final public static String VALUE(Code)




Constructor Detail
AxisLabelLayout
public AxisLabelLayout(String group, int axis, ValuedRangeModel values)(Code)
Create a new AxisLabelLayout layout.
Parameters:
  group - the data group of the axis lines and labels
Parameters:
  axis - the axis type, either prefuse.Constants.X_AXISor prefuse.Constants.Y_AXIS.
Parameters:
  values - the range model that defines the span of the axis



AxisLabelLayout
public AxisLabelLayout(String group, int axis, ValuedRangeModel values, Rectangle2D bounds)(Code)
Create a new AxisLabelLayout layout.
Parameters:
  group - the data group of the axis lines and labels
Parameters:
  axis - the axis type, either prefuse.Constants.X_AXISor prefuse.Constants.Y_AXIS.
Parameters:
  values - the range model that defines the span of the axis
Parameters:
  bounds - the layout bounds within which to place the axis marks



AxisLabelLayout
public AxisLabelLayout(String group, AxisLayout layout)(Code)
Create a new AxisLabelLayout layout.
Parameters:
  group - the data group of the axis lines and labels
Parameters:
  layout - an AxisLayout instance to model this layout after.The axis type and range model of the provided instance will be used.



AxisLabelLayout
public AxisLabelLayout(String group, AxisLayout layout, Rectangle2D bounds)(Code)
Create a new AxisLabelLayout layout.
Parameters:
  group - the data group of the axis lines and labels
Parameters:
  layout - an AxisLayout instance to model this layout after.The axis type and range model of the provided instance will be used.
Parameters:
  bounds - the layout bounds within which to place the axis marks



AxisLabelLayout
public AxisLabelLayout(String group, AxisLayout layout, Rectangle2D bounds, double spacing)(Code)
Create a new AxisLabelLayout layout.
Parameters:
  group - the data group of the axis lines and labels
Parameters:
  layout - an AxisLayout instance to model this layout after.The axis type and range model of the provided instance will be used.
Parameters:
  bounds - the layout bounds within which to place the axis marks
Parameters:
  spacing - the minimum spacing between axis labels




Method Detail
adjust
protected double adjust(double v)(Code)
Adjust a value according to the current scale type.



garbageCollect
protected void garbageCollect(VisualTable labels)(Code)
Remove axis labels no longer being used.



getBreadth
protected double getBreadth(Rectangle2D b)(Code)
Get the "breadth" of a rectangle, based on the axis type.



getLinearStep
protected double getLinearStep(double span, double scale)(Code)
Compute a linear step between axis marks.



getNumberFormat
public NumberFormat getNumberFormat()(Code)
Get the formatter used to format labels for numerical values. the NumberFormat used to format numerical labels.



getOrdinalStep
protected int getOrdinalStep(double span, double scale)(Code)
Compute an ordinal step between axis marks.



getScale
public int getScale()(Code)
Returns the scale type used for the axis. This setting only applies for numerical data types (i.e., when axis values are from a NumberValuedRange). the scale type. One ofprefuse.Constants.LINEAR_SCALE, prefuse.Constants.SQRT_SCALE, orConstants.LOG_SCALE.



getSpacing
public double getSpacing()(Code)
Get the required minimum spacing between axis labels. the axis label spacing



getTable
protected VisualTable getTable()(Code)
Create a new table for representing axis labels.



isAscending
public boolean isAscending()(Code)
Indicates if the axis values should be presented in ascending order along the axis. true if data values increase as pixel coordinates increase,false if data values decrease as pixel coordinates increase.



linearLayout
protected void linearLayout(VisualTable labels)(Code)
Calculates a quantitative, linearly scaled layout.



logLayout
protected void logLayout(VisualTable labels)(Code)
Calculates a quantitative, logarithmically-scaled layout. TODO: This method is currently not working correctly.



ordinalLayout
protected void ordinalLayout(VisualTable labels)(Code)
Compute an ordinal layout of axis marks.



reset
protected void reset(VisualItem item)(Code)
Reset an axis label VisualItem



run
public void run(double frac)(Code)

See Also:   prefuse.action.GroupAction.run(double)



set
protected void set(VisualItem item, double xOrY, Rectangle2D b)(Code)
Set the layout values for an axis label item.



setAscending
public void setAscending(boolean asc)(Code)
Sets if the axis values should be presented in ascending order along the axis.
Parameters:
  asc - true if data values should increase as pixel coordinatesincrease, false if data values should decrease as pixel coordinatesincrease.



setNumberFormat
public void setNumberFormat(NumberFormat nf)(Code)
Set the formatter used to format labels for numerical values.
Parameters:
  nf - the NumberFormat used to format numerical labels.



setRangeModel
public void setRangeModel(ValuedRangeModel model)(Code)
Sets the range model used to layout this axis.
Parameters:
  model - the range model



setScale
public void setScale(int scale)(Code)
Sets the scale type used for the axis. This setting only applies for numerical data types (i.e., when axis values are from a NumberValuedRange).
Parameters:
  scale - the scale type. One ofprefuse.Constants.LINEAR_SCALE, prefuse.Constants.SQRT_SCALE, orConstants.LOG_SCALE.



setSpacing
public void setSpacing(double spacing)(Code)
Set the required minimum spacing between axis labels.
Parameters:
  spacing - the axis label spacing to use



sqrtLayout
protected void sqrtLayout(VisualTable labels)(Code)
Calculates a quantitative, square root scaled layout.



Fields inherited from prefuse.action.layout.Layout
protected Point2D m_anchor(Code)(Java Doc)
protected Rectangle2D m_bounds(Code)(Java Doc)
protected double[] m_bpts(Code)(Java Doc)
protected Insets m_insets(Code)(Java Doc)
protected boolean m_margin(Code)(Java Doc)
protected Point2D m_tmpa(Code)(Java Doc)
protected Rectangle2D m_tmpb(Code)(Java Doc)

Methods inherited from prefuse.action.layout.Layout
public Point2D getLayoutAnchor()(Code)(Java Doc)
public Rectangle2D getLayoutBounds()(Code)(Java Doc)
public void setLayoutAnchor(Point2D a)(Code)(Java Doc)
public void setLayoutBounds(Rectangle2D b)(Code)(Java Doc)
public void setMargin(int top, int left, int bottom, int right)(Code)(Java Doc)
public void setX(VisualItem item, VisualItem referrer, double x)(Code)(Java Doc)
public void setY(VisualItem item, VisualItem referrer, double y)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.