|
|||||||||
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 |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
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,
String wname)
Main class to create global margin |
Method Summary | |
---|---|
void |
disposeMe()
Dispose this canvas |
Color |
getGBackground()
Get the color of background |
Color |
getGColor()
Get the color of this panel |
Font |
getGFont()
Get the font of the text |
JPanel |
getJPanel()
Return JPanel of this margin |
Color |
getMColor()
Get the text color |
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 |
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 |
setDefault(Object com)
Set the default location |
void |
setGBackground(Color c)
Set the background of this panel |
void |
setGColor(Color c)
Set the color on this panel. |
void |
setGFont(Font f)
Set the font. |
void |
setGRecBackground(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(String sname)
Set the text on this panel |
void |
setString(String sname,
Font f,
Color c)
|
void |
setString(String sname,
Font f,
Color c,
Dimension dd)
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GHMargin(GHPanel w, String wname)
w
- GHpanelwname
- Name of this marginMethod Detail |
---|
public void setDefault()
public void setDefault(Object com)
public void disposeMe()
public void setRotation(int rotation)
rotation
- Rotation of the text (0, -90, 90)public int getRotation()
public void setString(String sname, Font f, Color c, Dimension dd)
sname
- Text of the stringf
- Font usedc
- Color usedpublic void setGFont(Font f)
f
- Fontpublic void setGColor(Color c)
c
- Color of the panelpublic Color getGColor()
public Font getGFont()
public Color getGBackground()
public String getString()
public void showBorder(boolean show)
show
- true if shownpublic boolean isBorder()
public void showBorderNoUpdate(boolean show)
show
- true if shownpublic void setString(String sname)
sname
- Textpublic void setString(String sname, Font f, Color c)
public Font getMFont()
public Color getMColor()
public void setGBackground(Color c)
c
- Color of this panelpublic void setGRecBackground(Color c)
c
- Color of the rectanglepublic 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 |