|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jhplot.GHMargin
public class GHMargin
Panels with global margin. You can access all margins from GHPanel using panel() method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 | |
---|---|
GHMargin(GHPanel w,
java.lang.String wname)
Main class to create global margin |
Method Summary | |
---|---|
void |
disposeMe()
Dispose this canvas |
java.awt.Color |
getGBackground()
Get the color of background |
java.awt.Color |
getGColor()
Get the color of this panel |
java.awt.Font |
getGFont()
Get the font of the text |
javax.swing.JPanel |
getJPanel()
Return JPanel of this margin |
java.awt.Color |
getMColor()
Get the text color |
java.awt.Font |
getMFont()
Get the font on this panel |
int |
getRotation()
Get the rotation angle of the text in degrees. |
int |
getSizeX()
Get the size of this margin panel in X |
int |
getSizeY()
Get the size of this margin in Y |
java.lang.String |
getString()
Get the title of this panel |
double |
getStringPositionX()
Get the text position in X relative to widths |
double |
getStringPositionY()
Get the text position in Y relative to the frame height. |
boolean |
isBorder()
Is boarder shown? |
void |
setDefault()
Set the default location |
void |
setGBackground(java.awt.Color c)
Set the background of this panel |
void |
setGColor(java.awt.Color c)
Set the color on this panel. |
void |
setGFont(java.awt.Font f)
Set the font. |
void |
setGRecBackground(java.awt.Color c)
Set the background for rectangle with the text |
void |
setRotation(int rotation)
Set the rotation angle of the text in degrees. |
void |
setSizeMargin(int x,
int y)
Set size of this margin panel |
void |
setString(java.lang.String sname)
Set the text on this panel |
void |
setString(java.lang.String sname,
java.awt.Font f,
java.awt.Color c)
Sets the string. |
void |
setStringPositionX(double x)
Set the text position in X relative to the frame width |
void |
setStringPositionY(double y)
Set the text position in Y relative to the frame height. |
void |
showBorder(boolean show)
Show or not the blue borders during editing. |
void |
showBorderNoUpdate(boolean show)
Show or not the blue borders during editing. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GHMargin(GHPanel w, java.lang.String wname)
w
- GHpanelwname
- Name of this marginMethod Detail |
---|
public void setDefault()
public void disposeMe()
public void setRotation(int rotation)
rotation
- Rotation of the text (0, -90, 90)public int getRotation()
public void setString(java.lang.String sname, java.awt.Font f, java.awt.Color c)
sname
- Text of the stringf
- Font usedc
- Color usedpublic void setGFont(java.awt.Font f)
f
- Fontpublic void setGColor(java.awt.Color c)
c
- Color of the panelpublic java.awt.Color getGColor()
public java.awt.Font getGFont()
public java.awt.Color getGBackground()
public java.lang.String getString()
public void showBorder(boolean show)
show
- true if shownpublic boolean isBorder()
public void showBorderNoUpdate(boolean show)
show
- true if shownpublic void setString(java.lang.String sname)
sname
- Textpublic java.awt.Font getMFont()
public java.awt.Color getMColor()
public void setGBackground(java.awt.Color c)
c
- Color of this panelpublic void setGRecBackground(java.awt.Color c)
c
- Color of the rectanglepublic javax.swing.JPanel getJPanel()
public void setSizeMargin(int x, int y)
x
- size in Xy
- size in Ypublic int getSizeX()
public int getSizeY()
public double getStringPositionX()
public double getStringPositionY()
public void setStringPositionX(double x)
x
- position of text in X (from 0 to 1)public void setStringPositionY(double y)
y
- position of text in Y (from 0 to 1)
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |