com.ebmwebsourcing.geasytools.geasysvg.core.api
Interface ISVGElement

All Known Subinterfaces:
ICircle, IGroup, ILinearPath, IMarker, IPath, IRectangle, IText
All Known Implementing Classes:
Circle, CircleJSNI, Group, GroupJSNI, LinearPath, Marker, MarkerJSNI, Path, PathJSNI, Rectangle, RectangleJSNI, SVGElement, SVGElementJSNI, Text, TextJSNI

public interface ISVGElement


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()
           
 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)
           
 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.
 

Method Detail

setId

void setId(java.lang.String id)

getId

java.lang.String getId()

getContainer

IContainer getContainer()

setContainer

void setContainer(IContainer container)

getY

float getY()

getX

float getX()

setX

void setX(float x)

setY

void setY(float y)

isVisible

boolean isVisible()

setCanvas

void setCanvas(ISVGDocument canvas)

getCanvas

ISVGDocument getCanvas()

setVisible

void setVisible(boolean visible)

rotate

void rotate(float degree,
            boolean isAbsolute)
Rotates the element by the given degree from its center point.

Parameters:
int - degree Degree of rotation (0 – 360°)
boolean - isAbsolute [optional] Specifies is degree is relative to
previous position (false) or is it absolute angle (true)

rotate

void rotate(float degree,
            int cx,
            int cy)
Rotates the element by the given degree from its center point.

Parameters:
int - degree Degree of rotation (0 – 360°)
int - cx [optional] X coordinate of the origin of rotation
int - cy [optional] Y coordinate of the origin of rotation

translate

void translate(float dx,
               float dy)
Moves the element around the canvas by the given distances.

Parameters:
int - dx Pixels of translation by X axis
int - dy Pixels of translation by Y axis

scale

void scale(float xTimes,
           float yTimes)
Resizes the element by the given multiplier.

Parameters:
float - xTimes
float - yTimes

scale

void scale(float xTimes,
           float yTimes,
           float centerX,
           float centerY)
Resizes the element by the given multiplier.

Parameters:
float - xTimes
float - yTimes
float - centerX
float - centerY

toFront

void toFront()

toBack

void toBack()

remove

void remove()

setStokeColour

void setStokeColour(java.lang.String colour)

getStrokeColour

java.lang.String getStrokeColour()

setFillOpacity

void setFillOpacity(float fillOpacity)

getFillOpacity

float getFillOpacity()

setStrokeDashArray

void setStrokeDashArray(java.lang.String strokeDash)

getStrokeDashArray

java.lang.String getStrokeDashArray()

setFillColour

void setFillColour(java.lang.String colour)

getFillColour

java.lang.String getFillColour()

getWidth

float getWidth()
Returns elements with based on BBox.width

Returns:
float Element Width

getHeight

float getHeight()
Returns elements with based on BBox.height

Returns:
float Element Height

setWidth

void setWidth(float width)

setHeight

void setHeight(float height)


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