Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex FXG graphics

Have Programming Question? Ask it here!
 
 
 


BikrantSingh
FXG graphics
1 Answer(s)      3 years and 9 months ago
Posted in : Flex


Hi....

What is FXG in flex4? can you give me the explanation about it..

Thanks


Advertisement
View Answers

October 29, 2010 at 6:03 PM


Ans:

FXG:

FXG is a declarative syntax for defining static graphics. You typically use a graphics tool such as Adobe Illustrator to export an FXG document, and then use the FXG document as an optimized component in your application.

For example:

FXG component:

<?xml version="1.0" encoding="utf-8"?>
<Graphic xmlns="http://ns.adobe.com/fxg/2008" version="2">    
    <Path data="
         M 0 0 L 50 50 L 100 0 L 100 100 L 50 50 L 0 100 L 0 0 Z">
         <stroke>
              <SolidColorStroke color="#AAAAAA" weight="1"/>
         </stroke>
         <fill>
              <RadialGradient>
                   <GradientEntry color="#000000" alpha="1.0"/>
                   <GradientEntry color="#AA0000" alpha="0.5"/>
              </RadialGradient>
         </fill>
    </Path>
    <Path data="
         M 0 0 L 50 50 L 0 100 L 100 100 L 50 50 L 100 0 L 0 0 Z">
         <stroke>
              <SolidColorStroke color="#AAAAAA" weight="1"/>
         </stroke>
         <fill>
              <RadialGradient>
                   <GradientEntry color="#000000" alpha="1.0"/>
                   <GradientEntry color="#00AA00" alpha="0.5"/>
              </RadialGradient>
         </fill>
    </Path>
</Graphic>

main application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application 
xmlns:fx="http://ns.adobe.com/mxml/2009" 
xmlns:mx="library://ns.adobe.com/flex/mx" 
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:comps="FXG.*">
<mx:Panel title="Path FXG Example"
  height="179" width="202" layout="horizontal"
  paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<s:HGroup>
<comps:path/>             
</s:HGroup>
</mx:Panel>
</s:Application>


Related Tutorials/Questions & Answers:
FXG graphics
FXG graphics  Hi.... What is FXG in flex4? can you give me the explanation about it.. Thanks   Ans: FXG: FXG is a declarative syntax for defining static graphics. You typically use a graphics tool such as Adobe
Flex4 FXG and Image
Flex4 FXG and Image  Hi.... Flex4 skin in FXG or image which is more efficient? please tell me about that... Thanks   Ans: Is your app going to be scaled? If not use bitmaps or vectors cached as bitmaps. if you
Advertisements
graphics program
graphics program  i want a program that implements merge sort algorithm in graphics
iPhone Graphics
iPhone Graphics  Hi, How to create iPhone Graphics? I am learning to crate UI Design for iPhone and iPad. Thanks
Graphics class
Java NotesGraphics class Description The Graphics class contains drawing methods. A Graphics object is passed to your paintComponent(Graphics g). You... equal to the height. Advanced There are also Graphics methods for drawing images
Graphics class in flex
Graphics class in flex  Hi.... What does clear() do in graphics class? please tell me about that.... Thanks   Ans: Clears the graphics that were drawn to this Graphics object, and resets fill and line style settings
graphics - Java Beginners
graphics  In java-graphics.. I want to draw a rectangle and resize that rectangle(small,big) ..by using mouse cursors
Java Graphics Programming
Java Graphics Programming  Hi<BR> I am newbie to java and I...;BR> public void paint(Graphics g)<BR> {<BR> g.setColor... Graphics class. import javax.swing.*; import java.awt.*; public class
Summary: Graphics
Java: Summary: Graphics This is a summary of simple graphics methods... classes define more advanced graphics, eg, javax.swing.Graphics2D. Related... methods Draw on a JPanel. Assume g is a Graphics object, and all variables
What is Web Graphics
What is Web Graphics Web graphics.... An excellent designed graphics can give better and creative ideas to customer of what they are looking for. Web graphics helps designers to enhance
java 2d graphics - Java Beginners
java 2d graphics  Hello All I need to use 2d graphics in java to build up a map from the given geographic coordinates. What i am not getting is how to scale down these geographic coordinates to device coordinates. I would
Summary: GUI Graphics
Java: Summary: GUI Graphics This is a summary of simple graphics methods... classes define more advanced graphics, eg, javax.swing.Graphics2D. java.awt.Graphics Class Draw on a JPanel. Assume g is a Graphics object, and all
Graphics 2D
Graphics 2D      ... be an image, graphics, picture, photograph, video or any illustration. We....    Noise Image in Graphics This Java
How to draw in jPanel? swing/graphics Java
How to draw in jPanel? swing/graphics Java  How to draw in jPanel? (swing/graphics Java
java code along wid graphics design
java code along wid graphics design  actually i want to design nd make an apllication to solve a rubics cube of 3*3.. i have an algos wid me bt jus need ur guidance..plzz hlp out or if u have ny other ideas do suggest
Create Human Face using Graphics
Create Human Face using Graphics In this section, you will learn how to create human face using Graphics. A Graphics provides contexts that allow... off-screen images. The Graphics class provides several methods through which we
Show Graphics on full Screen
.style1 { margin-right: 140px; } Show Graphics...; This section illustrates you how to show graphics on full screen. To display the graphics, we have used the class DisplayMode which provides the bit depth
Noise Image in Graphics
Noise Image in Graphics      ... of graphics in Java. For this we have to import awt and swing package in our Java code. In this tutorial you will learn how to create a noise image in graphics. Now
Add RenderingHints to a Graphics
Add RenderingHints to a Graphics   ... to a graphics on the frame. The rendering hints uses the Graphics2D and creates... that extends the Graphics class to provide  KEY_ANTIALIASING:  
Java get Graphics
Java get Graphics     ... image.getGraphics() returns the Graphics object. The method...(400,400,BufferedImage.TYPE_INT_ARGB);   Graphics graphics=image.getGraphics
Noise Image in Graphics
Noise Image in Graphics     ... of graphics in Java. For this we have to import awt and swing package in our Java code. In this tutorial you will learn how to create a noise image in graphics. Now
How To Connect MS ACCESS 2003 Database in C Program with Graphics.
How To Connect MS ACCESS 2003 Database in C Program with Graphics.  How To Connect MS ACCESS 2003 Database in C Program with Graphics
how to draw lines,circles, rectangles on JSP (using Java Graphics)
how to draw lines,circles, rectangles on JSP (using Java Graphics)  how to draw lines,circles, rectangles on JSP (using Java Graphics)   ... context Graphics g = image.getGraphics(); // Fill background g.setColor(Color.white
Eclipse Plunging-Graphics
Eclipse Plunging-Graphics       QuickImage-Graphics  The QuickImage... simultaneously.   Image Export-Graphics An Eclipse plug in to to simplify
Draw An Arc in Graphics
Draw An Arc in Graphics       In this section, you will learn how to draw an arc in Graphics. An arc of a circle is a segment of the circumference of the circle. To draw an arc
Graphics Designer Jobs
Graphics Designer Jobs       Position Vacant: Web Graphics Designer Company Name: Rose India Company Profile: Based in Delhi, RoseIndia is one of the fastest growing companies
Antialiasing
Java: Antialiasing Antialiased versus Aliased Graphics  ... that edges are antialiased. public void paintComponent(Graphics g... The downcast in the above example from type Graphics to Graphics2D is possible
Graphics MIDlet Example
Graphics MIDlet Example     ... of graphics in J2ME we use MIDlet's. In the example we have created PacerCanvas class that extends the canvas class  to draw this graphics. Please find
Draw Polygon in Graphics
Draw Polygon in Graphics       In this section, you will learn how to draw a polygon in Graphics. A polygon is a closed path or circuit which is made by joining line
Graphics2D
more graphics operations than the Graphics class. For example, Graphics2D..., skewing) [list many others, this is only a rough beginning] Graphics objects are Graphics2D objects The Graphics object that is passed
Flash Development Services, Flash and Graphics Design Solutions
Flash Development Flash and Graphics Application Development Services Flash based applications have become a craze and are used in numerous applications like games, video streaming, Rich Internet Application's (RIA's
Bouncing Thread Example
;  In this section, we are going to develop a small Java Graphics application that creates a ball which bounce with the help of thread in Graphics.... The shape of the ball is given by graphics.fillOval(p, q, P, Q). Here
Event Dispatcher Thread
Event Dispatcher Thread       In the tutorial Java Event Dispatcher thread in Graphics, we'll illustrate you how to handle events in graphics using Java. This example
Bouncing Thread Example
;  In this section, we are going to develop a small Java Graphics application that creates a ball which bounce with the help of thread in Graphics.... The shape of the ball is given by graphics.fillOval(p, q, P, Q). Here
Event Dispatcher Thread
Event Dispatcher Thread       In the tutorial Java Event Dispatcher thread in Graphics, we'll illustrate you how to handle events in graphics using Java. This example
Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI).
Linux as a Command Line Interface (CLI) Vs. Graphics User Interface (GUI).                        
Example - CirclePanel.java
Java NotesExample - CirclePanel.java Problem: The Java Graphics class... //=========================================== paintComponent public void paintComponent(Graphics g... // Convenience method to draw from center with radius public void drawCircle(Graphics cg
Who calls paintComponent
Java NotesWho calls paintComponent When you subclass JPanel to draw graphics, override the paintComponent() method. It may be called for different... makse changes that should be displayed in your graphics area. Never call
Java: Example - Sleepy Source
Java: Example - Sleepy Source This program combines components (eg, buttons) and drawing. The Sleeper panel is used for graphics... public void paintComponent(Graphics g) { super.paintComponent(g
Technical Documentation,Technical Documentation Company India,Technical Documentation Services India
What is Technical Document? Unlike common document, Technical document is not the hard copy of text or still photographs or graphics or the hotchpotch..., non-textual data e.g. graphics, video etc
J2ME Draw String
J2ME Draw String       In the previous examples, we learned about drawing different graphics on the screen. Here in this example, we are going to show the string in J2ME. For that we
Struts Presentations
Struts Presentations Struts Adobe Acrobat Creative professionals use Adobe industry-standard graphics, layout, and video software to produce visually rich communications. And home and office customers share
AWT basics
, graphics, and user-interface for the desktop application using Java technology
Clip Area
Clip Area       This section illustrates you how to show the clipping of Area. A Clip is a portion of a graphics or video or any picture. We are providing you an example which
Advertisements
 

 

 

DMCA.com