|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.swing.ui.tools.FunctionalGraphics
public class FunctionalGraphics
This class is the border of a OptionalPanel. It can visualise check box, arrow down or arrow up image, an image for new and an image for delete. Note that with the check box all components in the optioanl panel could be enabled or disabled, with the arrows the optional panel could be fade in or out and with new or delete a recursive view could be created or deleted.
Field Summary | |
---|---|
int |
_height
|
int |
_imageXOffset
|
int |
_imageYOffset
|
int |
_width
|
static int |
ABOVE_BOTTOM
Position the title above the border's bottom line. |
static int |
ABOVE_TOP
Position the title above the border's top line. |
static int |
BELOW_BOTTOM
Position the title below the border's bottom line. |
static int |
BELOW_TOP
Position the title below the border's top line. |
static int |
BOTTOM
Position the title in the middle of the border's bottom line. |
static int |
CENTER
Position title text in the center of the border line. |
static int |
DEFAULT_JUSTIFICATION
Use the default justification for the title text. |
static int |
DEFAULT_POSITION
Use the default vertical orientation for the title text. |
static int |
LEADING
Position title text at the left side of the border line for left to right orientation, at the right side of the border line for right to left orientation. |
static int |
LEFT
Position title text at the left side of the border line. |
static int |
RIGHT
Position title text at the right side of the border line. |
static int |
TOP
Position the title in the middle of the border's top line. |
static int |
TRAILING
Position title text at the right side of the border line for left to right orientation, at the left side of the border line for right to left orientation. |
Constructor Summary | |
---|---|
FunctionalGraphics(java.awt.Component parent)
|
|
FunctionalGraphics(java.awt.Component parent,
java.lang.String text)
|
Method Summary | |
---|---|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image actionImageShadowed,
java.awt.Image inverseActionImageShadowed,
int alignment)
|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
javax.swing.Action inverseAction,
int alignment)
|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
int alignment)
|
void |
addBorderAction(BorderActionSet aSet)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image mainImage,
java.awt.Image inverseImage,
java.awt.Image actionImageShadowed,
java.awt.Image inverseActionImageShadowed,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image mainImage,
java.awt.Image inverseImage,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
java.awt.Image mainImage,
java.awt.Image actionImageShadowed,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
java.awt.Image mainImage,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderActionSeparator(java.awt.Image mainImage,
int alignment)
|
BorderActionSet |
addBorderActionSeparator(int alignment)
|
static java.awt.Dimension |
calculateActionAreaDimension(java.util.Vector actionSets)
|
static javax.swing.ImageIcon |
createDisabledIcon(javax.swing.ImageIcon icon)
|
static int |
getActionAreaX(java.util.Vector actionSets)
|
BorderActionSet |
getActionInRange(java.awt.Point p)
|
BorderActionSet |
getBorderAction(java.lang.String name)
|
static java.awt.Point |
getLastMouseLocation()
|
java.util.Vector |
getRegisteredBorderActions()
|
java.awt.Component |
getRootComponent()
|
java.awt.Dimension |
getSize()
|
int |
getTextInsetHorizontal()
|
javax.swing.Action |
getTitleAction(int mouseButton)
|
java.lang.String |
getToolTipText()
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
|
boolean |
isEnabled()
|
boolean |
isInTitelBox(java.awt.Point p)
Returns true if the point is in the titel check box rectangle which contains the text. |
boolean |
istVisible(java.lang.String borderActionName)
|
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.lang.String text,
java.awt.Point textLocation)
|
void |
release()
|
void |
removeBorderAction(BorderActionSet aSet)
|
void |
removeBorderAction(java.lang.String name)
|
void |
resetAllActions()
|
void |
setEnabled(boolean enabled)
Enables or disables this component, depending on the value of the parameter b . |
void |
setRootComponent(java.awt.Component rootComponent)
|
void |
setText(java.lang.String text)
|
void |
setTitleAction(javax.swing.Action titleAction,
int mouseButton)
|
void |
setToolTipText(java.lang.String toolTipText)
|
void |
setVisible(java.lang.String borderActionName,
boolean isActive)
|
void |
toggleActionSet(BorderActionSet aSet,
boolean toogle)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int _imageYOffset
public int _imageXOffset
public int _width
public int _height
public static final int DEFAULT_POSITION
public static final int ABOVE_TOP
public static final int TOP
public static final int BELOW_TOP
public static final int ABOVE_BOTTOM
public static final int BOTTOM
public static final int BELOW_BOTTOM
public static final int DEFAULT_JUSTIFICATION
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int LEADING
public static final int TRAILING
Constructor Detail |
---|
public FunctionalGraphics(java.awt.Component parent)
public FunctionalGraphics(java.awt.Component parent, java.lang.String text)
Method Detail |
---|
public void resetAllActions()
public BorderActionSet getActionInRange(java.awt.Point p)
public void paint(java.awt.Graphics g, int x, int y, int width, int height)
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderpublic int getTextInsetHorizontal()
public void paint(java.awt.Graphics g, int x, int y, int width, int height, java.lang.String text, java.awt.Point textLocation)
public void setEnabled(boolean enabled)
b
. An enabled component can respond to user
input and generate events. Components are enabled initially by default.
b
- If true
, this component is enabled; otherwise
this component is disabled.isEnabled()
public boolean isEnabled()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public static void main(java.lang.String[] args)
public java.util.Vector getRegisteredBorderActions()
public void addBorderAction(BorderActionSet aSet)
public static final java.awt.Dimension calculateActionAreaDimension(java.util.Vector actionSets)
public static final int getActionAreaX(java.util.Vector actionSets)
public java.awt.Dimension getSize()
public void setRootComponent(java.awt.Component rootComponent)
_rootComponent
- The _rootComponent to set.public java.awt.Component getRootComponent()
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image mainImage, java.awt.Image inverseImage, java.awt.Image actionImageShadowed, java.awt.Image inverseActionImageShadowed, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderActionSeparator(java.awt.Image mainImage, int alignment)
public BorderActionSet addBorderActionSeparator(int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, java.awt.Image mainImage, java.awt.Image actionImageShadowed, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, java.awt.Image mainImage, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image actionImageShadowed, java.awt.Image inverseActionImageShadowed, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, javax.swing.Action inverseAction, int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image mainImage, java.awt.Image inverseImage, java.lang.String toolTipText, int alignment)
public void removeBorderAction(java.lang.String name)
public BorderActionSet getBorderAction(java.lang.String name)
public void removeBorderAction(BorderActionSet aSet)
public void toggleActionSet(BorderActionSet aSet, boolean toogle)
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
JComponent.getToolTipText(java.awt.event.MouseEvent)
public void setToolTipText(java.lang.String toolTipText)
_bubbleHelpText
- The _bubbleHelpText to set.public void setText(java.lang.String text)
public java.lang.String getToolTipText()
public void release()
public void setTitleAction(javax.swing.Action titleAction, int mouseButton)
titleAction
- The titleAction to set.public static javax.swing.ImageIcon createDisabledIcon(javax.swing.ImageIcon icon)
public void setVisible(java.lang.String borderActionName, boolean isActive)
public boolean istVisible(java.lang.String borderActionName)
public javax.swing.Action getTitleAction(int mouseButton)
public static java.awt.Point getLastMouseLocation()
public boolean isInTitelBox(java.awt.Point p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |