de.cbse.jeasy
Class JEBorder
java.lang.Object
de.cbse.jeasy.JEObject
de.cbse.jeasy.JEBorder
public class JEBorder
- extends JEObject
JEBorder creates several borders out of the swing.BorderFactory.
Properties :
- id
The unique id of the root object.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- font (reference to JEFont)
The font for this component.
- icon (reference to JEImageIcon)
The icon displayed within this component.
- scaleAlgorithm (possible values [ , SCALE_DEFAULT, SCALE_AREA_AVERAGING, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH])
The type of algorithm to use for image resampling.
- - SCALE_DEFAULT use the default image-scaling algorithm.
- - SCALE_AREA_AVERAGING use the Area Averaging image scaling algorithm.
The image object is free to substitute a different filter that performs the same algorithm yet
integrates more efficiently into the image infrastructure supplied by the toolkit.
- - SCALE_FAST choose an image-scaling algorithm that gives higher priority to scaling speed than smoothness of the scaled image.
- - SCALE_REPLICATE use the image scaling algorithm embodied in the ReplicateScaleFilter class.
The Image object is free to substitute a different filter that performs the same algorithm yet integrates more efficiently
into the imaging infrastructure supplied by the toolkit.
- - SCALE_SMOOTH choose an image-scaling algorithm that gives higher priority to image smoothness than scaling speed.
- iconScaleWidth
Scales the icon to this width.
- iconScaleHeight
Scales the icon to this height.
- borderType (possible values [Bevel (int type), Bevel (int type, Color highlight, Color shadow), Bevel (int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner), Compound (), Empty (), Empty (int top, int left, int bottom, int right), Etched (), Etched (Color highlight, Color shadow), Etched (int type), Etched (int type, Color highlight, Color shadow), Line (Color color), Line (Color color, int thickness), Line (Color color, int thickness, boolean roundedCorners), Line (Color color, int thickness, int radius), LoweredBevel (), Matte (int top, int left, int bottom, int right, Color color), Matte (int top, int left, int bottom, int right, Icon tileIcon), RaisedBevel (), ShadowBorder (Color color, int thickness)])
Border type
- edgeType (possible values [LOWERED, RAISED])
Specifies wether a beveled or etched border should be lowered or raised.
- color (reference to JEColor)
Select a color.
- title
The title of the frame or component.
- titlePosition (possible values [ , ABOVE_TOP, TOP, BELOW_Top, ABOVE_TOP, ABOVE_BOTTOM, BOTTOM, BELOW_BOTTOM])
- titleJustification (possible values [ , LEFT, CENTER, RIGHT, LEADING, TRAILING])
- titleColor (reference to JEColor)
Select a color.
- highlightColor (reference to JEColor)
Id of a color used as the highlightbackground.
- highlightInnerColor (reference to JEColor)
Id of a color used for the inner edge of the highlight area.
- highlightOuterColor (reference to JEColor)
Id of a color used for the outer edge of the highlight area.
- shadowColor (reference to JEColor)
Id of a color used as the shadow color.
- shadowInnerColor (reference to JEColor)
Id of a color used for the inner edge of the shadow area.
- shadowOuterColor (reference to JEColor)
Id of a color used for the outer edge of the shadow area.
- top
The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.
- left
The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.
- bottom
The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.
- right
The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.
- thickness
The thickness of a line in pixels.
- radius
The radius of the angle for the rounded border.
- Author:
- Harry Pfohl
| Fields inherited from class de.cbse.jeasy.JEObject |
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
| Methods inherited from class de.cbse.jeasy.JEObject |
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEBorder
public JEBorder(JELocaleProperties hm)
- Reads the properties from a HashMap
- Parameters:
hm - HashMap
JEBorder
public JEBorder(JENode jen)
- Constructor based on a XML file parsed to a TreeNode.
- Parameters:
jen - - See Also:
JESaxParser
getBorderIntType
public int getBorderIntType()
- Returns:
- Returns the type of a border used as a paramter by BorderFactory.
getTitleJustification
public int getTitleJustification()
- Returns:
- Returns the titleJustification.
getTitlePosition
public int getTitlePosition()
- Returns:
- Returns the titlePosition.
getBorder
public javax.swing.border.Border getBorder()
- Gets the Color. The method init() is called if necessary.
- Returns:
init
protected void init()
- Initialization of the SWING objects.
- Overrides:
init in class JEObject