congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TransformStackElement.isIdentity
Code IndexAdd Tabnine to your IDE (free)

How to use
isIdentity
method
in
org.apache.batik.ext.awt.g2d.TransformStackElement

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

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

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

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

/**
 * Adapted push implementation
 */
public Object push(Object o) {
  Object element;
  if(((TransformStackElement)o).isIdentity()) {
    // identity transform: don't push,
    // and try to return top of stack
    element = pop();
  } else {
    // non-identity: push,
    // and return null
    super.push(o);
    element = null;
  }
  return element;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Adapted push implementation
 */
public Object push(Object o) {
  Object element;
  if(((TransformStackElement)o).isIdentity()) {
    // identity transform: don't push,
    // and try to return top of stack
    element = pop();
  } else {
    // non-identity: push,
    // and return null
    super.push(o);
    element = null;
  }
  return element;
}
origin: apache/batik

switch(transformElement.getType().toInt()){
case TransformType.TRANSFORM_TRANSLATE:
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_TRANSLATE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_ROTATE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_SCALE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_MATRIX);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_MATRIX);
    transformString.append(OPEN_PARENTHESIS);
origin: fr.avianey.apache-xmlgraphics/batik

switch(transformElement.getType().toInt()){
case TransformType.TRANSFORM_TRANSLATE:
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_TRANSLATE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_ROTATE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_SCALE);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_MATRIX);
    transformString.append(OPEN_PARENTHESIS);
  if(!transformElement.isIdentity()) {
    transformString.append(TRANSFORM_MATRIX);
    transformString.append(OPEN_PARENTHESIS);
org.apache.batik.ext.awt.g2dTransformStackElementisIdentity

Popular methods of TransformStackElement

  • clone
  • concatenate
  • createGeneralTransformElement
  • createRotateElement
  • createScaleElement
  • createShearElement
  • createTranslateElement
  • getTransformParameters
  • getType
  • matrixMultiply
    Multiplies two 2x3 matrices of double precision values

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now