com.ebmwebsourcing.geasytools.geasysvg.core.impl.raphael
Class SVGElementJSNI

java.lang.Object
  extended by com.ebmwebsourcing.geasytools.geasysvg.core.impl.raphael.SVGElementJSNI
All Implemented Interfaces:
ISVGElement
Direct Known Subclasses:
CircleJSNI, GroupJSNI, MarkerJSNI, PathJSNI, RectangleJSNI, TextJSNI

public class SVGElementJSNI
extends java.lang.Object
implements ISVGElement

Getters should only return data stored by respective implementation

Author:
nfleury

Constructor Summary
SVGElementJSNI()
           
 
Method Summary
 ISVGDocument getCanvas()
           
 IContainer getContainer()
           
 java.lang.String getFillColour()
           
 float getFillOpacity()
           
 float getHeight()
          Returns elements with based on BBox.height
 java.lang.String getId()
           
 java.lang.String getStrokeColour()
           
 java.lang.String getStrokeDashArray()
           
protected  com.google.gwt.core.client.JavaScriptObject getSvgElementJsObject()
           
 float getWidth()
          Returns elements with based on BBox.width
 float getX()
           
 float getY()
           
 boolean isVisible()
           
 void remove()
           
 void rotate(float degree, boolean isAbsolute)
          Rotates the element by the given degree from its center point.
 void rotate(float degree, int cx, int cy)
          Rotates the element by the given degree from its center point.
 void scale(float xTimes, float yTimes)
          Resizes the element by the given multiplier.
 void scale(float xTimes, float yTimes, float centerX, float centerY)
          Resizes the element by the given multiplier.
 void setCanvas(ISVGDocument canvas)
           
 void setContainer(IContainer container)
           
 void setFillColour(java.lang.String colour)
           
 void setFillOpacity(float fillOpacity)
           
 void setHeight(float height)
           
 void setId(java.lang.String id)
           
 void setStokeColour(java.lang.String colour)
           
 void setStrokeDashArray(java.lang.String strokeDash)
           
protected  void setSvgElementJsObject(com.google.gwt.core.client.JavaScriptObject svgElementJsObject)
           
 void setVisible(boolean visible)
           
 void setWidth(float width)
           
 void setX(float x)
           
 void setY(float y)
           
 void toBack()
           
 void toFront()
           
 void translate(float dx, float dy)
          Moves the element around the canvas by the given distances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGElementJSNI

public SVGElementJSNI()
Method Detail

getSvgElementJsObject

protected com.google.gwt.core.client.JavaScriptObject getSvgElementJsObject()

setSvgElementJsObject

protected void setSvgElementJsObject(com.google.gwt.core.client.JavaScriptObject svgElementJsObject)

getCanvas

public ISVGDocument getCanvas()
Specified by:
getCanvas in interface ISVGElement

getFillColour

public java.lang.String getFillColour()
Specified by:
getFillColour in interface ISVGElement

getFillOpacity

public float getFillOpacity()
Specified by:
getFillOpacity in interface ISVGElement

getHeight

public float getHeight()
Description copied from interface: ISVGElement
Returns elements with based on BBox.height

Specified by:
getHeight in interface ISVGElement
Returns:
float Element Height

getId

public java.lang.String getId()
Specified by:
getId in interface ISVGElement

getStrokeColour

public java.lang.String getStrokeColour()
Specified by:
getStrokeColour in interface ISVGElement

getStrokeDashArray

public java.lang.String getStrokeDashArray()
Specified by:
getStrokeDashArray in interface ISVGElement

getWidth

public float getWidth()
Description copied from interface: ISVGElement
Returns elements with based on BBox.width

Specified by:
getWidth in interface ISVGElement
Returns:
float Element Width

getX

public float getX()
Specified by:
getX in interface ISVGElement

getY

public float getY()
Specified by:
getY in interface ISVGElement

getContainer

public IContainer getContainer()
Specified by:
getContainer in interface ISVGElement

isVisible

public boolean isVisible()
Specified by:
isVisible in interface ISVGElement

remove

public void remove()
Specified by:
remove in interface ISVGElement

rotate

public void rotate(float degree,
                   boolean isAbsolute)
Description copied from interface: ISVGElement
Rotates the element by the given degree from its center point.

Specified by:
rotate in interface ISVGElement

rotate

public void rotate(float degree,
                   int cx,
                   int cy)
Description copied from interface: ISVGElement
Rotates the element by the given degree from its center point.

Specified by:
rotate in interface ISVGElement

scale

public void scale(float xTimes,
                  float yTimes)
Description copied from interface: ISVGElement
Resizes the element by the given multiplier.

Specified by:
scale in interface ISVGElement

scale

public void scale(float xTimes,
                  float yTimes,
                  float centerX,
                  float centerY)
Description copied from interface: ISVGElement
Resizes the element by the given multiplier.

Specified by:
scale in interface ISVGElement

setCanvas

public void setCanvas(ISVGDocument canvas)
Specified by:
setCanvas in interface ISVGElement

setFillColour

public void setFillColour(java.lang.String colour)
Specified by:
setFillColour in interface ISVGElement

setFillOpacity

public void setFillOpacity(float fillOpacity)
Specified by:
setFillOpacity in interface ISVGElement

setId

public void setId(java.lang.String id)
Specified by:
setId in interface ISVGElement

setStokeColour

public void setStokeColour(java.lang.String colour)
Specified by:
setStokeColour in interface ISVGElement

setStrokeDashArray

public void setStrokeDashArray(java.lang.String strokeDash)
Specified by:
setStrokeDashArray in interface ISVGElement

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface ISVGElement

setX

public void setX(float x)
Specified by:
setX in interface ISVGElement

setY

public void setY(float y)
Specified by:
setY in interface ISVGElement

toBack

public void toBack()
Specified by:
toBack in interface ISVGElement

toFront

public void toFront()
Specified by:
toFront in interface ISVGElement

translate

public void translate(float dx,
                      float dy)
Description copied from interface: ISVGElement
Moves the element around the canvas by the given distances.

Specified by:
translate in interface ISVGElement

setHeight

public void setHeight(float height)
Specified by:
setHeight in interface ISVGElement

setWidth

public void setWidth(float width)
Specified by:
setWidth in interface ISVGElement

setContainer

public void setContainer(IContainer container)
Specified by:
setContainer in interface ISVGElement


Copyright © 2010-2011 Petals Link. All Rights Reserved.