public class GraphicsHints extends AbstractPlotControlsModel
Copyright (C) 2000 Central Laboratory of the Research Councils
Plot
Modifier and Type | Field and Description |
---|---|
protected boolean |
allAntialiased
Whether to antialias everything.
|
protected boolean |
textAntialiased
Whether to antialias text.
|
listeners
Constructor and Description |
---|
GraphicsHints()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
protected boolean textAntialiased
protected boolean allAntialiased
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
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.