|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.softsmithy.lib.swing.JStyledPanel org.softsmithy.lib.swing.customizer.AbstractCustomizer org.softsmithy.lib.swing.JCustomizerPane
public class JCustomizerPane
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JCustomizerPane()
Creates new form JCustomizerPane |
Method Summary | |
---|---|
void |
addComponentLayoutListener(Component component,
ComponentLayoutListener listener)
|
void |
addComponentLayoutListener(ComponentLayoutListener listener)
|
void |
addCustomizer(JCustomizer customizer,
CustomizerConstraints constraints)
|
protected void |
addImpl(Component comp,
Object constraints,
int index)
Adds the specified component to this container at the specified index. |
Color |
getActiveBorderColor()
Getter for property activeBorderColor. |
CustomizerBar |
getCustomizerBar()
Getter for property customizerBar. |
CustomizerLayout |
getCustomizerLayout()
|
JCustomizer[] |
getCustomizers()
|
Color |
getDefaultNormalCustomizerBorderColor()
Getter for property defaultNormalCustomizerBorderColor. |
Color |
getDefaultSelectedCustomizerBorderColor()
Getter for property defaultSelectedCustomizerBorderColor. |
Color |
getInactiveBorderColor()
Getter for property inactiveBorderColor. |
JCustomizer[] |
getIntersectedCustomizers(Rectangle2D rectangle)
|
Color |
getLayoutHelpColor()
Getter for property layoutHelpColor. |
SelectionManager |
getSelectionManager()
Getter for property selectionManager. |
boolean |
isActivationBorderEnabled()
Getter for property activationBorderEnabled. |
boolean |
isActive()
Getter for property active. |
boolean |
isShowingLayoutHelp()
Getter for property showingConstraints. |
void |
mouseClicked(MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseEntered(MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected void |
paintComponent(Graphics g)
Calls the UI delegate's paint method, if the UI delegate is non- null . |
void |
removeComponentLayoutListener(Component component,
ComponentLayoutListener listener)
|
void |
removeComponentLayoutListener(ComponentLayoutListener listener)
|
void |
setAbsoluteCustomizerBounds(JCustomizer customizer,
Rectangle bounds)
|
void |
setActivationBorderEnabled(boolean activationBorderEnabled)
Setter for property activationBorderEnabled. |
void |
setActive(boolean active)
Setter for property active. |
void |
setActiveBorderColor(Color activeBorderColor)
Setter for property activeBorderColor. |
void |
setCustomizerBar(CustomizerBar customizerBar)
Setter for property customizerBar. |
void |
setCustomizerLayout(CustomizerLayout cl)
|
void |
setDefaultNormalCustomizerBorderColor(Color defaultNormalCustomizerBorderColor)
Setter for property defaultNormalCustomizerBorderColor. |
void |
setDefaultSelectedCustomizerBorderColor(Color defaultSelectedCustomizerBorderColor)
Setter for property defaultSelectedCustomizerBorderColor. |
void |
setInactiveBorderColor(Color inactiveBorderColor)
Setter for property inactiveBorderColor. |
void |
setLayout(LayoutManager mgr)
Sets the layout manager for this container. |
void |
setLayoutHelpColor(Color layoutHelpColor)
Setter for property layoutHelpColor. |
void |
setSelectionManager(SelectionManager selectionManager)
Setter for property selectionManager. |
void |
setShowingLayoutHelp(boolean showingLayoutHelp)
Setter for property showingConstraints. |
Methods inherited from class org.softsmithy.lib.swing.customizer.AbstractCustomizer |
---|
getCommonCustomizableProperties, getCustomizableProperties, setCustomizableProperties |
Methods inherited from class org.softsmithy.lib.swing.JStyledPanel |
---|
getBackground, getDefaultBackground, getDefaultFont, getDefaultForeground, getFont, getForeground, getNoneStyle, getParentStyle, getStyle, isDefaultOpaque, isOpaque, setBackground, setDefaultBackground, setDefaultFont, setDefaultForeground, setDefaultOpaque, setFont, setForeground, setOpaque, setStyle |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.softsmithy.lib.swing.style.Styleable |
---|
addHierarchyListener, getParent, removeHierarchyListener |
Constructor Detail |
---|
public JCustomizerPane()
Method Detail |
---|
public boolean isShowingLayoutHelp()
public void setShowingLayoutHelp(boolean showingLayoutHelp)
showingConstraints
- New value of property showingConstraints.protected void paintComponent(Graphics g)
null
. We pass the delegate a copy of the
Graphics
object to protect the rest of the
paint code from irrevocable changes
(for example, Graphics.translate
).
If you override this in a subclass you should not make permanent
changes to the passed in Graphics
. For example, you
should not alter the clip Rectangle
or modify the
transform. If you need to do these operations you may find it
easier to create a new Graphics
from the passed in
Graphics
and manipulate it. Further, if you do not
invoker super's implementation you must honor the opaque property,
that is
if this component is opaque, you must completely fill in the background
in a non-opaque color. If you do not honor the opaque property you
will likely see visual artifacts.
paintComponent
in class JComponent
g
- the Graphics
object to protectJComponent.paint(java.awt.Graphics)
,
ComponentUI
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public SelectionManager getSelectionManager()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public CustomizerBar getCustomizerBar()
public void setCustomizerBar(CustomizerBar customizerBar)
customizerBar
- New value of property customizerBar.public void setSelectionManager(SelectionManager selectionManager)
selectionManager
- New value of property selectionManager.public JCustomizer[] getCustomizers()
public JCustomizer[] getIntersectedCustomizers(Rectangle2D rectangle)
public void setLayout(LayoutManager mgr)
setLayout
in class Container
mgr
- the specified layout managerContainer.doLayout()
,
Container.getLayout()
public void setCustomizerLayout(CustomizerLayout cl)
public CustomizerLayout getCustomizerLayout()
protected void addImpl(Component comp, Object constraints, int index)
addLayoutComponent
method. The constraints are
defined by the particular layout manager being used. For
example, the BorderLayout
class defines five
constraints: BorderLayout.NORTH
,
BorderLayout.SOUTH
, BorderLayout.EAST
,
BorderLayout.WEST
, and BorderLayout.CENTER
.
Note that if the component already exists in this container or a child of this container, it is removed from that container before being added to this container.
This is the method to override if a program needs to track every add request to a container as all other add methods defer to this one. An overriding method should usually include a call to the superclass's version of the method:
super.addImpl(comp, constraints, index)
addImpl
in class Container
comp
- the component to be addedconstraints
- an object expressing layout constraints
for this componentindex
- the position in the container's list at which to
insert the component, where -1
means append to the end
IllegalArgumentException
- if index
is invalid
IllegalArgumentException
- if adding the container's parent
to itself
IllegalArgumentException
- if adding a window to a containerContainer.add(Component)
,
Container.add(Component, int)
,
Container.add(Component, java.lang.Object)
,
LayoutManager
,
LayoutManager2
public void addCustomizer(JCustomizer customizer, CustomizerConstraints constraints)
public void setAbsoluteCustomizerBounds(JCustomizer customizer, Rectangle bounds)
public void addComponentLayoutListener(ComponentLayoutListener listener)
public void addComponentLayoutListener(Component component, ComponentLayoutListener listener)
public void removeComponentLayoutListener(ComponentLayoutListener listener)
public void removeComponentLayoutListener(Component component, ComponentLayoutListener listener)
public boolean isActive()
public void setActive(boolean active)
active
- New value of property active.public boolean isActivationBorderEnabled()
public void setActivationBorderEnabled(boolean activationBorderEnabled)
activationBorderEnabled
- New value of property activationBorderEnabled.public Color getActiveBorderColor()
public void setActiveBorderColor(Color activeBorderColor)
activeBorderColor
- New value of property activeBorderColor.public Color getInactiveBorderColor()
public void setInactiveBorderColor(Color inactiveBorderColor)
inactiveBorderColor
- New value of property inactiveBorderColor.public Color getLayoutHelpColor()
public void setLayoutHelpColor(Color layoutHelpColor)
layoutHelpColor
- New value of property layoutHelpColor.public Color getDefaultNormalCustomizerBorderColor()
public void setDefaultNormalCustomizerBorderColor(Color defaultNormalCustomizerBorderColor)
defaultNormalCustomizerBorderColor
- New value of property defaultNormalCustomizerBorderColor.public Color getDefaultSelectedCustomizerBorderColor()
public void setDefaultSelectedCustomizerBorderColor(Color defaultSelectedCustomizerBorderColor)
defaultSelectedCustomizerBorderColor
- New value of property defaultSelectedCustomizerBorderColor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |