|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ast.gui.AbstractPlotControlsModel
uk.ac.starlink.ast.gui.GraphicsHints
public class GraphicsHints
GraphicsHints defines the RenderingHints that should be used when drawing of a Plot. Currently there are only two possible values, antialiased text, or antialiased text and lines.
Plot, PlotConfig.
Field Summary | |
---|---|
protected boolean |
allAntialiased
Whether to antialias everything. |
protected boolean |
textAntialiased
Whether to antialias text. |
Fields inherited from class uk.ac.starlink.ast.gui.AbstractPlotControlsModel |
---|
listeners |
Constructor Summary | |
---|---|
GraphicsHints()
Create an instance. |
Method Summary | |
---|---|
void |
applyRenderingHints(Graphics2D g2)
Apply the RenderingHints description for the current configuration to a graphics object. |
void |
encode(Element rootElement)
Encode the internal state of this object so that it is rooted in the given Element. |
String |
getTagName()
The name of our enclosing tag. |
boolean |
isAllAntialiased()
See if everything should be antialiased. |
boolean |
isTextAntialiased()
See if the text should be antialiased. |
void |
setAllAntialiased(boolean allAntialiased)
Set if everything should be antialiased. |
void |
setDefaults()
Set object back to its defaults. |
void |
setFromString(String name,
String value)
Set the value of a member variable by matching its name to a known local property string. |
void |
setTextAntialiased(boolean textAntialiased)
Set if the text should be antialiased. |
Methods inherited from class uk.ac.starlink.ast.gui.AbstractPlotControlsModel |
---|
addChangeListener, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, addChildElement, booleanFromString, booleanToString, colorFromString, colorToString, decode, doubleFromString, doubleToString, fireChanged, fontFromString, fontToString, getChildren, getElementName, getElementValue, intFromString, intToString, longFromString, longToString, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean textAntialiased
protected boolean allAntialiased
Constructor Detail |
---|
public GraphicsHints()
Method Detail |
---|
public void setDefaults()
public boolean isTextAntialiased()
public boolean isAllAntialiased()
public void setTextAntialiased(boolean textAntialiased)
public void setAllAntialiased(boolean allAntialiased)
public void applyRenderingHints(Graphics2D g2)
public String getTagName()
public void encode(Element rootElement)
XMLEncodeDecode
encode
in interface XMLEncodeDecode
encode
in class AbstractPlotControlsModel
rootElement
- the Element within which the object should
store its configuration.public void setFromString(String name, String value)
setFromString
in class AbstractPlotControlsModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |