|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Properties
|
+--net.sourceforge.chart2d.Object2DProperties
A data structure for holding the properties common to all Object2D objects. A Object2D object is one with an encolosing area and title. Pass this to any number of Object2D objects.
| Field Summary | |
static int |
BOTTOM
Signifies bottom. |
static int |
LEFT
Signifies left. |
static int |
NONE
Signifies none. |
static java.awt.Color |
OBJECT_BACKGROUND_COLOR_DEFAULT
The default is new Color (215, 215, 215). |
static boolean |
OBJECT_BACKGROUND_EXISTENCE_DEFAULT
The default is true. |
static int |
OBJECT_BACKGROUND_LIGHT_SOURCE_DEFAULT
The default is TOP. |
static java.awt.Color |
OBJECT_BORDER_COLOR_DEFAULT
The default is Color.black. |
static boolean |
OBJECT_BORDER_EXISTENCE_DEFAULT
The default is true. |
static int |
OBJECT_BORDER_THICKNESS_MODEL_DEFAULT
The default is 2. |
static boolean |
OBJECT_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
OBJECT_GAP_THICKNESS_MODEL_DEFAULT
The default is 5. |
static boolean |
OBJECT_MAGNIFY_WHEN_RESIZE_DEFAULT
The default is true. |
static boolean |
OBJECT_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
OBJECT_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
The default is 3. |
static boolean |
OBJECT_TITLE_EXISTENCE_DEFAULT
The default is true. |
static java.awt.Color |
OBJECT_TITLE_FONT_COLOR_DEFAULT
The default is Color.black. |
static java.lang.String |
OBJECT_TITLE_FONT_NAME_DEFAULT
The default is "SansSerif". |
static int |
OBJECT_TITLE_FONT_POINT_MODEL_DEFAULT
The default is 12. |
static int |
OBJECT_TITLE_FONT_STYLE_DEFAULT
The default is Font.PLAIN. |
static java.lang.String |
OBJECT_TITLE_TEXT_DEFAULT
The default is "". |
static int |
RIGHT
Signifies right. |
static int |
TOP
Signifies top. |
| Constructor Summary | |
Object2DProperties()
Creates a Object2DProperties object with the documented default values. |
|
Object2DProperties(net.sourceforge.chart2d.Object2DProperties object2DProps)
Creates a Object2DProperties object with property values copied from another object. |
|
| Method Summary | |
java.awt.Color |
getObjectBackgroundColor()
Gets the color of the background for the object. |
boolean |
getObjectBackgroundExistence()
Gets whether the object will have a painted background or not. |
int |
getObjectBackgroundLightSource()
Gets the light source of the object's background. |
java.awt.Color |
getObjectBorderColor()
Gets the color of the object's border. |
boolean |
getObjectBorderExistence()
Gets whether a border around the object will exist. |
int |
getObjectBorderThicknessModel()
Gets the thickness of the border for the model size of the object. |
boolean |
getObjectGapExistence()
Gets whether a gap between the border or edge of the object and the object's interior components exists. |
int |
getObjectGapThicknessModel()
Gets the thickness of the object's gap for the model size of the object. |
boolean |
getObjectMagnifyWhenResize()
Gets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks. |
boolean |
getObjectTitleBetweenRestGapExistence()
Gets whether a gap below the title and the rest of the object's components exists. |
int |
getObjectTitleBetweenRestGapThicknessModel()
Gets the thickness of the gap below the title and the rest of the object's components for the object's model size. |
boolean |
getObjectTitleExistence()
Gets whether the object is to have a title. |
java.awt.Color |
getObjectTitleFontColor()
Gets the color of the font for the object's title. |
java.lang.String |
getObjectTitleFontName()
Gets the name of the font for the object's title. |
int |
getObjectTitleFontPointModel()
Gets the point of the font of the title for the object at its model size. |
int |
getObjectTitleFontStyle()
Gets the style of the font for the object's title. |
java.lang.String |
getObjectTitleText()
Gets the text for the object's title. |
boolean |
isFontNameExists(java.lang.String name)
Returns true if the font name exists in the graphics enviornment. |
void |
setObject2DProperties(net.sourceforge.chart2d.Object2DProperties object2DProps)
Sets all properties to be the values of another Object2DProperties object. |
void |
setObject2DPropertiesToDefaults()
Sets all properties to their default values. |
void |
setObjectBackgroundColor(java.awt.Color color)
Sets the color of the background for the object. |
void |
setObjectBackgroundExistence(boolean existence)
Sets whether the object will have a painted background or not. |
void |
setObjectBackgroundLightSource(int source)
Sets the light source of the object's background. |
void |
setObjectBorderColor(java.awt.Color color)
Sets the color of the object's border. |
void |
setObjectBorderExistence(boolean existence)
Sets whether a border around the object will exist. |
void |
setObjectBorderThicknessModel(int thickness)
Sets the thickness of the border for the model size of the object. |
void |
setObjectGapExistence(boolean existence)
Sets whether a gap between the border or edge of the object and the object's interior components exists. |
void |
setObjectGapThicknessModel(int thickness)
Sets the thickness of the object's gap for the model size of the object. |
void |
setObjectMagnifyWhenResize(boolean magnify)
Sets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks. |
void |
setObjectTitleBetweenRestGapExistence(boolean existence)
Sets whether a gap below the title and the rest of the object's components exists. |
void |
setObjectTitleBetweenRestGapThicknessModel(int thickness)
Sets the thickness of the gap below the title and the rest of the object's components for the object's model size. |
void |
setObjectTitleExistence(boolean existence)
Sets whether the object is to have a title. |
void |
setObjectTitleFontColor(java.awt.Color color)
Sets the color of the font for the object's title. |
void |
setObjectTitleFontName(java.lang.String name)
Sets the name of the font for the object's title. |
void |
setObjectTitleFontPointModel(int point)
Sets the point of the font of the title for the object at its model size. |
void |
setObjectTitleFontStyle(int style)
Sets the style of the font for the object's title. |
void |
setObjectTitleText(java.lang.String text)
Sets the text for the object's title. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public static final int NONE
public static final boolean OBJECT_MAGNIFY_WHEN_RESIZE_DEFAULT
public static final boolean OBJECT_BORDER_EXISTENCE_DEFAULT
public static final int OBJECT_BORDER_THICKNESS_MODEL_DEFAULT
public static final java.awt.Color OBJECT_BORDER_COLOR_DEFAULT
public static final boolean OBJECT_GAP_EXISTENCE_DEFAULT
public static final int OBJECT_GAP_THICKNESS_MODEL_DEFAULT
public static final boolean OBJECT_BACKGROUND_EXISTENCE_DEFAULT
public static final java.awt.Color OBJECT_BACKGROUND_COLOR_DEFAULT
public static final int OBJECT_BACKGROUND_LIGHT_SOURCE_DEFAULT
public static final boolean OBJECT_TITLE_EXISTENCE_DEFAULT
public static final java.lang.String OBJECT_TITLE_TEXT_DEFAULT
public static final int OBJECT_TITLE_FONT_POINT_MODEL_DEFAULT
public static final java.lang.String OBJECT_TITLE_FONT_NAME_DEFAULT
public static final java.awt.Color OBJECT_TITLE_FONT_COLOR_DEFAULT
public static final int OBJECT_TITLE_FONT_STYLE_DEFAULT
public static final boolean OBJECT_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
public static final int OBJECT_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
| Constructor Detail |
public Object2DProperties()
public Object2DProperties(net.sourceforge.chart2d.Object2DProperties object2DProps)
object2DProps - The properties to copy.| Method Detail |
public final void setObject2DPropertiesToDefaults()
public final void setObject2DProperties(net.sourceforge.chart2d.Object2DProperties object2DProps)
object2DProps - The properties to copy.public final void setObjectMagnifyWhenResize(boolean magnify)
magnify - If true, the object will be magnified on resize.public final void setObjectBorderExistence(boolean existence)
existence - If true, then a object border exists.public final void setObjectBorderThicknessModel(int thickness)
thickness - The model thickness of the object's border.public final void setObjectBorderColor(java.awt.Color color)
color - The color of the border.public final void setObjectGapExistence(boolean existence)
existence - If true, then a gap exists.public final void setObjectGapThicknessModel(int thickness)
thickness - The model thickness of the object's gap.public final void setObjectBackgroundExistence(boolean existence)
existence - If true, a background for the object will be painted.public final void setObjectBackgroundColor(java.awt.Color color)
color - The color of the object's background.public final void setObjectBackgroundLightSource(int source)
source - The source of the light.public final void setObjectTitleExistence(boolean existence)
existence - If true, then the object will have a title.public final void setObjectTitleText(java.lang.String text)
text - The text for the object's title.public final void setObjectTitleFontPointModel(int point)
point - The model font point for the object's title.public final void setObjectTitleFontName(java.lang.String name)
name - The name of the font for the object's title.public final void setObjectTitleFontColor(java.awt.Color color)
color - The color of the font for the object's title.public final void setObjectTitleFontStyle(int style)
style - The style of the font for the object's title.public final void setObjectTitleBetweenRestGapExistence(boolean existence)
existence - If true, then a gap exists.public final void setObjectTitleBetweenRestGapThicknessModel(int thickness)
thickness - The model thickness of the gap.public final boolean getObjectMagnifyWhenResize()
public final boolean getObjectBorderExistence()
public final int getObjectBorderThicknessModel()
public final java.awt.Color getObjectBorderColor()
public final boolean getObjectGapExistence()
public final int getObjectGapThicknessModel()
public final boolean getObjectBackgroundExistence()
public final java.awt.Color getObjectBackgroundColor()
public final int getObjectBackgroundLightSource()
public final boolean getObjectTitleExistence()
public final java.lang.String getObjectTitleText()
public final int getObjectTitleFontPointModel()
public final java.lang.String getObjectTitleFontName()
public final java.awt.Color getObjectTitleFontColor()
public final int getObjectTitleFontStyle()
public final boolean getObjectTitleBetweenRestGapExistence()
public final int getObjectTitleBetweenRestGapThicknessModel()
public final boolean isFontNameExists(java.lang.String name)
name - The name of the font to determine the existence of.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||