|
ChemWriter v1.3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PaintStyler
Unified paint settings management.
All measurements are reported in terms of the displayed Molecule's median bond length. As this length changes, measurements such as atom label height and line thickness will scale proportionally. This ensures that features will remain proportional to each other regardless of display resolution.
| Method Summary | |
|---|---|
void |
clearAtomColors()
Clears all atom coloring, making all atoms appear in the bond color. |
void |
copyStyle(PaintStyler styler)
Copies all settings from styler to this PaintStyler. |
java.awt.Color |
getAtomColor(java.lang.String atomSymbol)
Returns the color for atoms of atomic symbol atomSymbol. |
java.lang.String |
getAtomLabelFont()
Returns the name of the font being used to render atom labels. |
java.lang.String[] |
getAtomLabelFonts()
Returns an array containing the names of the fonts that can be used for Atom labels. |
double |
getAtomLabelHeight()
Returns the atom label height, as a ratio of the median bond length. |
java.awt.Color |
getBackgroundColor()
Returns the background color. |
java.awt.Color |
getBondColor()
Returns the bond color. |
java.lang.String |
getCapStyle()
Returns the line cap style. |
java.lang.String[] |
getColoredAtoms()
Returns an array of atom labels that this PaintStyler will color. |
double |
getLineEndPadding()
Returns the end line padding. |
double |
getLineOffset()
Returns the multiple bond line offset as a ratio of the median bond length. |
double |
getLineWidth()
Returns the line width, as a ratio of the median bond length. |
double |
getStereoWidth()
Returns the maximum width of a stereo bond, as a ratio of the bond length. |
boolean |
isAntialiasing()
Returns true if antialiasing is activated or false otherwise. |
boolean |
isAtomColoringEnabled()
Returns true if atom coloring is enabled, or false otherwise. |
boolean |
isCarbonVisible()
Returns true if carbon atoms and their associated virutal hydrogens are rendered or false otherwise. |
boolean |
isRenderVirtualHydrogens()
Returns true if heteroatom virtual hydrogens are rendered or false otherwise. |
void |
setAntialiasing(boolean antialiasing)
Determines whether antialiasing is used. |
void |
setAtomColor(java.lang.String atomSymbol,
java.awt.Color color)
Sets the color for atoms of atomic symbol atomicSymbol to color |
void |
setAtomColor(java.lang.String atomSymbol,
int red,
int green,
int blue)
Sets the color for atoms of atomic symbol atomicSymbol to the color represented by the values red, green, and blue. |
void |
setAtomColoringEnabled(boolean enabled)
Turns atom coloring on and off. |
void |
setAtomLabelFont(java.lang.String font)
Sets the name of the font being used to render atom labels. |
void |
setAtomLabelHeight(double height)
Sets the atom label height, as a ratio of the median bond length. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color to color. |
void |
setBackgroundColor(int red,
int green,
int blue)
Sets the background color to that represented by the red green, and blue values. |
void |
setBondColor(java.awt.Color color)
Sets the bond color to color. |
void |
setBondColor(int red,
int green,
int blue)
Sets the bond color to that represented by the red, green, and blue values. |
void |
setCapStyle(java.lang.String endCap)
Sets the line cap style: "square", "round", or "none". |
void |
setCarbonVisible(boolean visible)
Determines whether carbon atoms and their associated virtual hydrogens will be rendered. |
void |
setLineEndPadding(double padding)
Sets line end padding to padding. |
void |
setLineOffset(double offset)
Sets the multiple bond line offset, as a ratio of the bond length. |
void |
setLineWidth(double width)
Sets the line width, as a ratio of the median bond length. |
void |
setRenderVirtualHydrogens(boolean visible)
Determines whether heteroatom virtual hydrogens will be rendered. |
void |
setStereoWidth(double width)
Sets the maximum width of a stereo bond, as a ratio of the bond length. |
| Method Detail |
|---|
void setLineEndPadding(double padding)
padding - the spacing between a single bond terminus and a visible
atom label, relative to the median bond lengthdouble getLineEndPadding()
java.lang.String[] getColoredAtoms()
void clearAtomColors()
void setAtomColoringEnabled(boolean enabled)
enabled - enables atom coloring if trueboolean isAtomColoringEnabled()
void setBondColor(java.awt.Color color)
color - the new bond color
void setBondColor(int red,
int green,
int blue)
red - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)java.awt.Color getBondColor()
void setBackgroundColor(java.awt.Color color)
color - the new background color
void setBackgroundColor(int red,
int green,
int blue)
red - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)java.awt.Color getBackgroundColor()
void setCapStyle(java.lang.String endCap)
endCap - one of "square", "round", or "none"java.lang.String getCapStyle()
void setCarbonVisible(boolean visible)
visible - when true carbons and their associated
virtual hydrogens will be renderedboolean isCarbonVisible()
void setRenderVirtualHydrogens(boolean visible)
visible - when true carbons and their associated
virtual hydrogens will be renderedboolean isRenderVirtualHydrogens()
void setAntialiasing(boolean antialiasing)
antialiasing - true if activated for false otherwiseboolean isAntialiasing()
java.awt.Color getAtomColor(java.lang.String atomSymbol)
atomSymbol - the case-sensitive one- or two-character atomic
symbol to query
void setAtomColor(java.lang.String atomSymbol,
java.awt.Color color)
atomSymbol - the case-sensitive one- or two-character atomic
symbol to colorcolor - the new color for atoms of atomic symbol atomSymbol
void setAtomColor(java.lang.String atomSymbol,
int red,
int green,
int blue)
atomSymbol - the case-sensitive one- or two-character atomic
symbol to colorred - the red color component (0-255)green - the green color component (0-255)blue - the blue color component (0-255)void setLineWidth(double width)
width - the new line width - greater than zerodouble getLineWidth()
void setLineOffset(double offset)
offset - the new multiple bond line offset - greater than zerodouble getLineOffset()
void setStereoWidth(double width)
width - the maximum width of a stereo bond - greater than zerodouble getStereoWidth()
void setAtomLabelFont(java.lang.String font)
font - the name of the new font to be used in rendering
atom labelsjava.lang.String[] getAtomLabelFonts()
java.lang.String getAtomLabelFont()
void setAtomLabelHeight(double height)
height - the new atom label height - greater than zerodouble getAtomLabelHeight()
void copyStyle(PaintStyler styler)
styler - the PaintStyler from which setting will be copied
|
ChemWriter v1.3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||