Codota Logo
org.apache.batik.ext.awt.g2d
Code IndexAdd Codota to your IDE (free)

How to use org.apache.batik.ext.awt.g2d

Best Java code snippets using org.apache.batik.ext.awt.g2d (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Sets the paint mode of this graphics context to overwrite the
 * destination with this graphics context's current color.
 * This sets the logical pixel operation function to the paint or
 * overwrite mode.  All subsequent rendering operations will
 * overwrite the destination with the current color.
 */
public void setPaintMode(){
  gc.setComposite(AlphaComposite.SrcOver);
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Gets the current font.
 * @return    this graphics context's current font.
 * @see       java.awt.Font
 * @see       java.awt.Graphics#setFont
 */
public Font getFont(){
  return gc.getFont();
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Returns a copy of the current <code>Transform</code> in the
 * <code>Graphics2D</code> context.
 * @return the current <code>AffineTransform</code> in the
 *             <code>Graphics2D</code> context.
 * @see #transform
 * @see #setTransform
 */
public AffineTransform getTransform(){
  return gc.getTransform();
}
origin: apache/batik

/**
 * Creates a new AbstractGraphics2D from an existing instance.
 * @param g the AbstractGraphics2D whose properties should be copied
 */
public AbstractGraphics2D(AbstractGraphics2D g) {
  this.gc = (GraphicContext)g.gc.clone();
  this.gc.validateTransformStack();
  this.textAsShapes = g.textAsShapes;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Sets the <code>Transform</code> in the <code>Graphics2D</code>
 * context.
 * @param Tx the <code>AffineTransform</code> object to be used in the
 * rendering process
 * @see #transform
 * @see AffineTransform
 */
public void setTransform(AffineTransform Tx){
  gc.setTransform(Tx);
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Sets the <code>Stroke</code> for the <code>Graphics2D</code> context.
 * @param s the <code>Stroke</code> object to be used to stroke a
 * <code>Shape</code> during the rendering process
 */
public void setStroke(Stroke s){
  gc.setStroke(s);
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Returns the current <code>Stroke</code> in the
 * <code>Graphics2D</code> context.
 * @return the current <code>Graphics2D</code> <code>Stroke</code>,
 *                 which defines the line style.
 * @see #setStroke
 */
public Stroke getStroke(){
  return gc.getStroke();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Sets this graphics context's font to the specified font.
 * All subsequent text operations using this graphics context
 * use this font.
 * @param  font   the font.
 * @see     java.awt.Graphics#getFont
 */
public void setFont(Font font){
  gc.setFont(font);
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * @return true iff this transform is the identity transform
 */
public boolean isIdentity() {
  return isIdentity(transformParameters);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the current <code>Composite</code> in the
 * <code>Graphics2D</code> context.
 * @return the current <code>Graphics2D</code> <code>Composite</code>,
 *              which defines a compositing style.
 * @see #setComposite
 */
public Composite getComposite(){
  return gc.getComposite();
}
origin: apache/batik

/**
 * Returns the current <code>Paint</code> of the
 * <code>Graphics2D</code> context.
 * @return the current <code>Graphics2D</code> <code>Paint</code>,
 * which defines a color or pattern.
 * @see #setPaint
 * @see java.awt.Graphics#setColor
 */
public Paint getPaint(){
  return gc.getPaint();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Sets this graphics context's current color to the specified
 * color. All subsequent graphics operations using this graphics
 * context use this specified color.
 * @param     c   the new rendering color.
 * @see       java.awt.Color
 * @see       java.awt.Graphics#getColor
 */
public void setColor(Color c){
  gc.setColor(c);
}
origin: apache/batik

/**
 * Gets this graphics context's current color.
 * @return    this graphics context's current color.
 * @see       java.awt.Color
 * @see       java.awt.Graphics#setColor
 */
public Color getColor(){
  return gc.getColor();
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Returns the background color used for clearing a region.
 * @return the current <code>Graphics2D</code> <code>Color</code>,
 * which defines the background color.
 * @see #setBackground
 */
public Color getBackground(){
  return gc.getBackground();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Sets the paint mode of this graphics context to overwrite the
 * destination with this graphics context's current color.
 * This sets the logical pixel operation function to the paint or
 * overwrite mode.  All subsequent rendering operations will
 * overwrite the destination with the current color.
 */
public void setPaintMode(){
  gc.setComposite(AlphaComposite.SrcOver);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Gets the current font.
 * @return    this graphics context's current font.
 * @see       java.awt.Font
 * @see       java.awt.Graphics#setFont
 */
public Font getFont(){
  return gc.getFont();
}
origin: org.apache.xmlgraphics/batik-awt-util

/**
 * Sets the <code>Transform</code> in the <code>Graphics2D</code>
 * context.
 * @param Tx the <code>AffineTransform</code> object to be used in the
 * rendering process
 * @see #transform
 * @see AffineTransform
 */
public void setTransform(AffineTransform Tx){
  gc.setTransform(Tx);
}
origin: apache/batik

/**
 * Sets the paint mode of this graphics context to overwrite the
 * destination with this graphics context's current color.
 * This sets the logical pixel operation function to the paint or
 * overwrite mode.  All subsequent rendering operations will
 * overwrite the destination with the current color.
 */
public void setPaintMode(){
  gc.setComposite(AlphaComposite.SrcOver);
}
origin: apache/batik

/**
 * Gets the current font.
 * @return    this graphics context's current font.
 * @see       java.awt.Font
 * @see       java.awt.Graphics#setFont
 */
public Font getFont(){
  return gc.getFont();
}
origin: apache/batik

/**
 * Sets the <code>Transform</code> in the <code>Graphics2D</code>
 * context.
 * @param Tx the <code>AffineTransform</code> object to be used in the
 * rendering process
 * @see #transform
 * @see AffineTransform
 */
public void setTransform(AffineTransform Tx){
  gc.setTransform(Tx);
}
org.apache.batik.ext.awt.g2d

Most used classes

  • GraphicContext
    Handles the attributes in a graphic context: + Composite + Font + Paint + Stroke + Clip + Rende
  • TransformStackElement
    Contains a description of an elementary transform stack element, such as a rotate or translate. A tr
  • TransformType
    Enumeration for transformation types.
  • AbstractGraphics2D
    This extension of the java.awt.Graphics2D abstract class is still abstract, but it implements a lot
  • DefaultGraphics2D
    This concrete implementation of AbstractGraphics2D is a simple help to programmers to get started wi
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now