|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Area
|
+--net.sourceforge.chart2d.FontArea
|
+--net.sourceforge.chart2d.TextListArea
|
+--net.sourceforge.chart2d.VerticalTextListArea
A set of text labels layed out vertially with bullets on either the left or
right of the labels. The bullets can be layed out so that they are aligned
with the center of each label, or aligned with the middle of the space
between each label (vertically). It
was designed to be used as a legend and for making a y axis in a chart
program. Adjustments include
bullets/no bullets, labels/no labels, bullet sizes, bullet colors, labels
font color, size, style, and type; plus it allows for all the functionality
of the the bordered area class including borders, spacing within borders,
auto horizontal and vertical justification, auto sizing, and auto growing and
shrinking of components.
Note: This class does not accept null values. Pass zero length arrays or
empty strings instead.
| Fields inherited from class net.sourceforge.chart2d.Area |
BETWEEN, BOTTOM, CENTER, CENTERED, CONTINUOUS, DASHED, DOTTED, FLOAT, HEIGHT, HORIZONTAL, INTEGER, LABELSBOTTOM, LABELSLEFT, LEFT, LEFTBOTTOM, LEFTRIGHT, LEFTTOP, LESSER, MAX, MAXMODEL, MIN, RIGHT, RIGHTBOTTOM, RIGHTTOP, TOP, TOPBOTTOM, VERTICAL, WIDTH |
| Constructor Summary | |
(package private) |
VerticalTextListArea()
Constructs a new vertical text list area with the following default values: setLabelsExistence (true); setBulletsExistence (true); setBulletsSizeModel (new Dimension (9, 9)); setBulletsOutline (true); setBetweenLabelsGapExistence (true); setBetweenLabelsGapThicknessModel (3); setBetweenBulletsGapExistence (true); setBetweenBulletsGapThicknessModel (3); setBetweenBulletsAndLabelsGapExistence (true); setBetweenBulletsAndLabelsGapThicknessModel (3); setBulletsAlignment (CENTERED); setBulletsRelation (LEFT); setAllowSelfSize (true); resetVerticalTextListAreaModel (true); |
| Method Summary | |
(package private) int |
getBetweenBulletsAndLabelsGapThicknessModel()
Returns the model minimum thickness of the gap between the labels and the bullets. |
(package private) int |
getBetweenBulletsGapThicknessModel()
Returns the model thickness of the minimum gap between bullets. |
(package private) int |
getBetweenLabelsGapThicknessModel()
Returns the model thickness of the minimum gap between labels. |
(package private) java.awt.Color[] |
getBulletColors()
Returns the colors of the bullets. |
(package private) java.awt.Rectangle[] |
getBullets(java.awt.Graphics2D g2D)
Returns the bounds for each bullet. |
(package private) int |
getBulletsAlignment()
Returns the vertical alignment of the bullets respective to the labels. |
(package private) boolean |
getBulletsOutline()
Specifies whether the bullets should have a small outline. |
(package private) java.awt.Color |
getBulletsOutlineColor()
Specifies the color of the bullets outline. |
(package private) java.awt.Dimension |
getBulletsSizeModel()
Returns the model size (width and height) of the bullets. |
(package private) TextArea[] |
getLabels(java.awt.Graphics2D g2D)
Returns the labels. |
(package private) boolean |
getLabelsExistence()
Returns true if the labels of the text list exist; false otherwise. |
(package private) java.lang.String[] |
getLabelStrings()
Returns the label strings of this text list. |
int |
getNumBullets()
Returns the number of bullets this text list has. |
(package private) boolean |
getVerticalTextListAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints all the components of this class. |
(package private) void |
resetVerticalTextListAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
setAllowSelfSize(boolean allow)
Allows this text list area to determine its minimum size and reset its own size. |
(package private) void |
setBetweenBulletsAndLabelsGapExistence(boolean existence)
Specifies the existence of a minimum gap between the labels and the bullets. |
(package private) void |
setBetweenBulletsAndLabelsGapThicknessModel(int model)
Specifies the model minimum thickness of the gap between the labels and the bullets. |
(package private) void |
setBetweenBulletsGapExistence(boolean existence)
Specifies the existence of a minimum gap between each bullets. |
(package private) void |
setBetweenBulletsGapThicknessModel(int model)
Specifies the model minimum thickness of the gap between each bullet. |
(package private) void |
setBetweenLabelsGapExistence(boolean existence)
Specifies whether the minimum amount of space between each label, the gap, shall be enforced. |
(package private) void |
setBetweenLabelsGapThicknessModel(int model)
Specifies the model minimum thickness of the gap between the labels. |
(package private) void |
setBulletColors(java.awt.Color[] colors)
Specifies the colors of the bullets. |
(package private) void |
setBulletsAlignment(int alignment)
The horizontal alignment of the bullets respective to the labels. |
(package private) void |
setBulletsOutline(boolean outline)
Specifies whether the bullets should have a small outline. |
(package private) void |
setBulletsOutlineColor(java.awt.Color color)
Specifies the color of the bullets outline. |
(package private) void |
setBulletsRelation(int relation)
Specifies the horizontal relation of the bullets to the labels. |
(package private) void |
setBulletsSizeModel(java.awt.Dimension model)
Specifies the model size (width and height) of the bullets. |
(package private) void |
setCustomSpaceMinHeight(boolean customize,
int height)
Allows for outside specification of the size of the text list. |
(package private) void |
setLabels(java.lang.String[] labels)
Specifies the text for the labels. |
(package private) void |
setLabelsExistence(boolean existence)
Specifies whether the labels exist. |
(package private) void |
updateVerticalTextListArea(java.awt.Graphics2D g2D)
Updates all variables. |
| Methods inherited from class net.sourceforge.chart2d.FontArea |
getFont, getFontAreaNeedsUpdate, getFontColor, getFontName, getFontPointModel, getFontStyle, resetFontAreaModel, setFontColor, setFontName, setFontPointModel, setFontStyle, updateFontArea |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
VerticalTextListArea()
| Method Detail |
void setAllowSelfSize(boolean allow)
setAllowSelfSize in class TextListAreaallow - If true, then the component can reset its own minimum size.
This is only relevant when auto minimum sizing is enabled.void setLabelsExistence(boolean existence)
setLabelsExistence in class TextListAreaexistence - The existence of these labels.void setLabels(java.lang.String[] labels)
setLabels in class TextListArealabels - An array of the strings to be used for the labels.
void setCustomSpaceMinHeight(boolean customize,
int height)
customize - True if you want to customize the space height.height - The custom space height (if the boolean is true).void setBulletsSizeModel(java.awt.Dimension model)
setBulletsSizeModel in class TextListAreamodel - The model size of a bullet.void setBulletsAlignment(int alignment)
setBulletsAlignment in class TextListAreaalignment - The alignment for the bullets.
Possible values are CENTERED and BETWEEN.void setBulletsRelation(int relation)
setBulletsRelation in class TextListArearelation - The horizontal relation of the bullets.
Possible values are LEFT and RIGHT.void setBulletColors(java.awt.Color[] colors)
setBulletColors in class TextListAreacolors - An array filled with a color for each bullet. The first
bullet from left to right gets the lowest order color in the array.void setBulletsOutline(boolean outline)
setBulletsOutline in class TextListAreaoutline - If true, then the outline will exist.void setBulletsOutlineColor(java.awt.Color color)
setBulletsOutlineColor in class TextListAreacolor - The outline color.void setBetweenLabelsGapExistence(boolean existence)
setBetweenLabelsGapExistence in class TextListAreaexistence - The existence of the gap. If true, then it exists.void setBetweenLabelsGapThicknessModel(int model)
setBetweenLabelsGapThicknessModel in class TextListAreamodel - The model minimum thickness of the gap. Note: The gap may end
up being more depending on sizing properties.void setBetweenBulletsGapExistence(boolean existence)
setBetweenBulletsGapExistence in class TextListAreaexistence - The existence of the minimum gap. If true, then the gap
does exist.void setBetweenBulletsGapThicknessModel(int model)
setBetweenBulletsGapThicknessModel in class TextListAreamodel - The model minimum thickness of the gap.
Note: The gap may end up being more depending on sizing properties.void setBetweenBulletsAndLabelsGapExistence(boolean existence)
setBetweenBulletsAndLabelsGapExistence in class TextListAreaexistence - The existence of the minimum gap. If true, then the gap
does exist.void setBetweenBulletsAndLabelsGapThicknessModel(int model)
setBetweenBulletsAndLabelsGapThicknessModel in class TextListAreamodel - The model minimum thickness of the gap.
Note: The gap may end up being more depending on sizing properties.java.lang.String[] getLabelStrings()
getLabelStrings in class TextListAreaint getBetweenBulletsGapThicknessModel()
getBetweenBulletsGapThicknessModel in class TextListAreaint getBetweenLabelsGapThicknessModel()
getBetweenLabelsGapThicknessModel in class TextListAreaint getBetweenBulletsAndLabelsGapThicknessModel()
getBetweenBulletsAndLabelsGapThicknessModel in class TextListAreajava.awt.Rectangle[] getBullets(java.awt.Graphics2D g2D)
getBullets in class TextListAreag2D - The graphics context used for calculations.public int getNumBullets()
java.awt.Dimension getBulletsSizeModel()
getBulletsSizeModel in class TextListAreajava.awt.Color[] getBulletColors()
int getBulletsAlignment()
getBulletsAlignment in class TextListAreaboolean getBulletsOutline()
getBulletsOutline in class TextListAreajava.awt.Color getBulletsOutlineColor()
getBulletsOutlineColor in class TextListAreaboolean getLabelsExistence()
getLabelsExistence in class TextListAreaTextArea[] getLabels(java.awt.Graphics2D g2D)
getLabels in class TextListAreag2D - The graphics context used for calculations.void resetVerticalTextListAreaModel(boolean reset)
reset - True causes the max model size to be set upon the next max
sizing.boolean getVerticalTextListAreaNeedsUpdate()
void updateVerticalTextListArea(java.awt.Graphics2D g2D)
g2D - The graphics context used for calculations.void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class FontAreag2D - The graphics context for calculations and painting.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||