How to show static line?
Hi all, I try to put Two Vertical Bar and One fixes line = value 500
!http://img291.imageshack.us/img291/2725/graphsubir.png!
chart:
<Graph graphType="BAR_VERT_CLUST2Y" depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20" seriesEffect="SE_AUTO_GRADIENT"><LegendArea visible="true"/>
<SeriesItems>
<Series id="0" markerType="MT_BAR" color="#ff0000"/>
<Series id="1" markerType=" MT_BAR" color="#99ccff"/>
<Series id="2" markerType="MT_MARKER" color="#ff0000" lineStyle="LS_SOLID"/>
</SeriesItems>
<PlotArea fillColor="#ffff33"/>
<LegendArea position="LAP_TOP"/>
<LegendText>
<GraphFont name="Arial" fontColor="#000000" size="14" />
</LegendText>
<Title text="" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(xdoxslt:group(.//ROW, 'saw_2'))}" rowCount="2">
<RowLabels><Label>Valor Obtenido</Label><Label>Valor Previsto</Label></RowLabels>
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Label>
<xsl:value-of select="current-group()/saw_2"/>
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
<xsl:value-of select="sum(current-group()/saw_3)"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
<xsl:value-of select="sum(current-group()/saw_4)"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select=".//ROW" group-by="saw_2">
<xsl:sort select="current-group()/saw_2"/>
<Cell>
500
</Cell>
</xsl:for-each-group>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
thanks for request
add the following
Your code is this
<SeriesItems>
<Series id="0" markerType="MT_BAR" color="#ff0000"/>
<Series id="1" markerType=" MT_BAR" color="#99ccff"/>
<Series id="2" markerType="MT_MARKER" color="#ff0000" lineStyle="LS_SOLID"/>
</SeriesItems>
Add the following after this
<Y1ReferenceLine>
<ReferenceLine index="0" visible="true" lineWidth="2" text="ref line " value="500.0" displayedInLegend="true" lineColor="#ff11"/>
</Y1ReferenceLine>
again your code
Similar Messages
-
How to show staticly decleared int's in a JLabel
hi
how to show staticly decleared int's in a JLabel
i have the following code but it doesnt seem to be working
// Declear jlabel
JLabel statuslabel = new JLabel(" X Axis : " + x + " Y Axis : + y ");
// position of cursor
public static int x;
public static int y;
nicchick wrote:
um is there a easyer way to update int's inside a JLabel:)You need a MouseMotionListener
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class CursorPositionInLabel
private static final String BAD_LABEL = "Bad Label";
private static final String GOOD_LABEL = "Good Label";
private JPanel mainPanel = new JPanel();
private Point cursorP = new Point();
private JLabel badLabel = new JLabel(BAD_LABEL + "; [" + cursorP.x + ", " + cursorP.y + "]"); // this guy never gets updated, & so never changes
private JLabel goodLabel = new JLabel(GOOD_LABEL + "; [" + cursorP.x + ", " + cursorP.y + "]");
public CursorPositionInLabel()
mainPanel.setPreferredSize(new Dimension(600, 600));
mainPanel.setLayout(new GridLayout(1, 2));
JPanel badPanel = new JPanel();
badPanel.add(badLabel);
JPanel goodPanel = new JPanel();
goodPanel.add(goodLabel);
mainPanel.add(badPanel);
mainPanel.add(goodPanel);
mainPanel.addMouseMotionListener(new MouseAdapter()
// this is the event that gets tripped each time the mouse moves
public void mouseMoved(MouseEvent e)
// get the location of the mouse curse
cursorP = e.getPoint();
// and then update your JLabel with the coordinates
goodLabel.setText(GOOD_LABEL + "; [" + cursorP.x + ", " + cursorP.y + "]");
public JPanel getMainPanel()
return mainPanel;
// create the JFrame in a thread-safe manner as the Sun tutorials tell us to do.
private static void createAndShowUI()
JFrame frame = new JFrame("CursorPositionInLabel");
frame.getContentPane().add(new CursorPositionInLabel().getMainPanel());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
public static void main(String[] args)
java.awt.EventQueue.invokeLater(new Runnable()
public void run()
createAndShowUI();
}Edited by: Encephalopathic on Jun 18, 2008 5:28 PM -
How to create static line in line bar graph in obiee 11g?
Hello,
I have requirement where user wants to see a line in bar graph.
Now the line is just static line, we dont have data field available to draw the line in graph.
is there a way to create a static line in chart and show it in Line bar ombo graph??
Thanks in advance..e.g. i created the static line '10' in fx and now using this column as line in line bar report , but its not displaying the line at measure of '10' in chart.
Drag the column to measures section of graph (Line - Vertical Axis) to change this static value create an edit box prompt and pass the value to the column using Presentation Variable (as said by Fernando)
Thanks,
Saichand -
How to show static values in h:selectOneListbox
Hi
i would like to show static values in <h:selectOneListbox>
how do i that ??
<managed-bean>
<managed-bean-name>Options</managed-bean-name>
<managed-bean-class>java.util.ArrayList</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<list-entries>
<value>val1</value>
<value>val2</value>
<value>val3</value>
</list-entries>
</managed-bean>
or some how i define a <managed-property> ??
<managed-property>
<property-name>options</property-name>
<property-class>java.util.ArrayList</property-class>
<list-entries>
<value>val1</value>
<value>val2</value>
<value>val3</value>
</list-entries>
</managed-property>Hi Swetlin,
I have this format in the main window.
textaaaaaaaaaaaaaaaaa
textfffffffffffffff
123
1234
1234
5667
1234
textweeeeeeeeeeeeeeeeeeeeee
texttryrtyrtuyrturtur
now when i am doing as you suggested
the last texts are coming in the next page.
What i want is to show overflow of numeric data in next page and the remaining last text should remain as it is in the first page only.
i mean
textaaaaaaaaaaaaaaaaa
textfffffffffffffff
123
1234
1234
5667
1234
textweeeeeeeeeeeeeeeeeeeeee
texttryrtyrtuyrturtur
and in the next page
4567
4568
8790
Thanks and regards
Mave -
How to show graphs line progressively?
I want to show the line in graphs progressively in Keynote.
Make the line to show gradually.
like this example:
http://www.mathgoodies.com/lessons/graphs/line.html
Hoe to do this?You need to use a Wipe Build, in the Build Inspector. Select the line you want to appear, then apply the build to it.
-
How to show 2 lines in report from 2 other servers scom 2012
hello i want to create 2 report in one report. ex availability report of 2 servers in one chart can i do this or it is impossible?
Hi,
If you want to combine and customize two reports, you would have to go into Visual studio for instance and create your own report.
Here is a blog for your reference.
Custom Report Authoring for Beginners
http://blogs.technet.com/b/jonathanalmquist/archive/2011/01/03/custom-report-authoring-for-beginners.aspx
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Show the line after draw with IMAQ selectline.vi in the image display
hi..
may i know how to show the line on the image display after i draw the line by using the IMAQ select line.vi??
i use the the IMAQ select line.vi for drawing few couples of lines...but i don know how to show it all on the image display...
because i will forget the location of the lines after i draw it by IMAQ select line.vi...
thanks for help..Hey,
Just use IMAQ Draw.vi
Christian -
When browsing a new library that I created and exported onto an external hard drive, the browser shows dotted lines around grey rectangles, no images. When I double click on a rectangle, the image appears, but all the other rectangles remain empty - no image. How do I get images to appear in the browser rectangles? I am viewing this on a second computer (an older intel duo iMac), not the one I created the library on (a MacBook Pro). Both computers have Aperture 3.2.4 installed. When I return the external to the MacBook, all images appear in browser rectangles. What's happening on the iMac?
You may have a problem with the permissions on your external volume. Probably you are not the owner of your library on the second mac.
If you have not already done so, set the "Ignore Ownership on this Volume" flag on your external volume. To do this, select the volume in the Finder and use the Finder command "File > Get Info" (or ⌘I).
In the "Get Info" panel disclose the "Sharing & Permissions" brick, open the padlock, and enable the "Ignore Ownership on this Volume" flag. You will have to authentificate as administrator to do this.
Then run the "Aperture Library First Aid Tools" on this library and repair the permissions. To launch the "First Aid Tools" hold down the ⌥⌘-key combination while you double click your Aperture Library. Select "Repair Permissions" and run the repair; then repeat with "Repair Database". Do this on the omputer where you created the library and where you can see the thumbnails.
Then check, if you now are able to read the library properly on your iMac.
Regards
Léonie -
How to show warning message in two Lines.
Hi,
Can some one please let me know how to show a warning message in two lines. I have created a Message in EBS in two lines but it still displays on the page in a single line.use bundled exception.
ArryList peerExceptions = new ArrayList();
peerExceptions.add(new OAException(....));
peerExceptions.add(new OAException(....));
OAException.raiseBundledOAException(exceptions);
--Prasanna -
In my new iphone5 two static lines are showing up continuously what is the problem
in my new iphone5 two static lines are showing up continuously what is the problem
The last user troubleshooting step is a restore. Check this support document http://support.apple.com/kb/HT1414 about restore. Just be advised that a restore will delete content from the phone. If you restore from a backup, then it will put content back on, however if it is necessary for you to restore as a new device, everything will be deleted. Make sure content is synced and backed up.
If that doesn't do it, then make an appointement at the Genius Bar of the Apple store to have the hardware checked. If under warranty and found to be defective, they will replace the device. If no Apple Store close,then contact Apple Care. -
TS3276 all accounts show off line how to get them online
all e-mail accounts show off line how to get them online to send e-emai
Troubleshooting Apple Mail
What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
Troubleshooting sending and receiving email messages -
Need to know how to show P6 Report Line Item Numbers
Team... I cannot find where to turn on the line item numbers in P6 Reports... I can show breaks on a code then activities right below that, but can't show the line item number... only the actID... Hellllllllp!
Thanks... I can't give a screen dump right now... but I will try to describe in better details what I am trying to do:
Below is a sample report of a simple activity listing just as it would come from any P6 report:
ActID Description RDur Start Finish
ABC123 First Activity Here 9 01Jan10 10Jan10
DEF456 Second Activity Here 9 10Jan10 19Jan10
GHI789 Third Activity Here 9 19Jan10 26Jan10
Below is the desired report which now includes a new, first column which gives a unique line item number for each line:
Item# ActID Description RDur Start Finish
1 ABC123 First Activity Here 9 01Jan10 10Jan10
2 DEF456 Second Activity Here 9 10Jan10 19Jan10
3 GHI789 Third Activity Here 9 19Jan10 26Jan10
This new, first column is like the Excel Row Numbers... you don't need to try to explain what line you are addressing by ActID... -
HELP!how to show lines in the sample code 'docsig'
I want to show my handwritten in the pdf and my code is based on the sample code 'docsig',
can anyone read the following code, and tell me the reason why it not show the line. Thanks!
//from the project 'docsig' in the acrobat sdk 9.0 sample code
CosObj DSHandler::CreateN2XObject( CosDoc cosDoc, const CosObj sigField, const CosObj sigAnnot, const ASFixedRect* const pBBoxRec )
//Define a stream to draw a line
char buf [500];
sprintf(buf,"150 250 m 150 350 l S");
//Get the stream length
ASUns32 streamLength = (ASUns32)strlen(buf);
//Create a CosObj object that represents the stream length
CosObj LengthEntry = CosNewInteger(cosDoc, false,streamLength);
//Create a CosObj that represents a stream dictionary
//and sets its key-value pairs
CosObj AttrDict = CosNewDict(cosDoc, false, 5);
char *Length_KStr = "Length";
CosDictPutKeyString(AttrDict, Length_KStr, LengthEntry);
CosObj cosStm = CosNewStream64(
cosDoc, // cos document to use the newly created stream
true , // cos stream is indirect object?
0, // input stream
0, // start reading from stream position
false , // stream is decoded?
AttrDict, // attributes dictionary
CosNewNull(), // encode params
-1, // decode length
false // allowing delayed reading of input stream
return cosStm;
Why I just get a blank signature ? It should draw a line, but not showed in the pdf file.you need to change the following piece of code
case 10: // * pressed
case 11: // # pressed
clearText = true;
if (first) // first operand
if(lcdField.getText().length()==0)
result = 0.0;
else
result = Double.parseDouble(lcdField.getText());
first = false;
prevOperator = i;
else //second operand already entered, so calculate total
switch(prevOperator)
case 10: //divide button
result /= Double.parseDouble(lcdField.getText());
break;
case 11: //multiply button
result *= Double.parseDouble(lcdField.getText());
break;
lcdField.setText(Double.toString(result));
if(i==14) //equal button
first = true;
else
prevOperator = i; //save last operator
break;
}its gets excuted when you press the * or # buuton -
How to show lines in my matrix reports??
hi all,
i want to show matrix lines in my report. if an item code has data then it shows lines otherwise it shows null value with no lines....
plz helpi got it... :)
now no need to reply on this thread -
How to persistent static object
JDO always assigns a StateManager to a PersistenceCapable object when
creating instance. If an object is static, it'll keep its StateManager for
ever after instantiation. So If I excute the following code repeadly, kodo
will complain that persistence manager has been closed.
1) Get PersistenceManager
2) Begin transaction
3) Get object from datastore. If not exist, create a new object. This
object is a static.
4) Commit transaction
5) pm.close
For the first time, kodo will assign a new StateManager to this static
object. But for the second time, exception, "persistence manager has been
closed", will arise when excuting some of object's methods. Because each
StateManager object owns a PersistenceManager object. If this pm is
closed, according StateManager object is also useless.
After enhancing, kodo will change some getter/setter methods to
according jdo getter/setter ones. These methods may invoke
startManager.isLoaded(), which invokes pm.isActive(). Unfortunately, pm
has been closed.
Any other tricky methods to persistent static object ?
Thanks !Dear Marc,
Thanks for your kind help. It's an effective advice to prevent
persistent object from being static.
However, what if the object to be persistent is an enumeration type
constant ? For example :
public class MyEnumType
private String name = null;
private int value = 0;
protected MyEnumType( String name, int value )
this.name = name;
this.value = value;
public static final TYPE_1 = new MyEnumType( "type 1", 1 );
public class EnumTypeUseClass
private MyEnumType type = null;
public void setType(..) {..}
public MyEnumType getType() {..}
public class TestClass
public void f()
PersistenceManager pm = null;
try
// Obtain pm
pm = ...;
pm.currentTransaction().begin();
EnumTypeUseClass use = new EnumTypeUseClass();
// Obtain myenumtype object from datastore
MyEnumType type = getJdoObject( pm, MyEnumType.class, "value ==" +
MyEnumType.TYPE_1.getValue() );
// Following line will cause "PersistenceManager has been closed"
exception
use.setType( type );
pm.makePersistent( use );
pm.currentTransaction().commit();
catch( .. )
finally
pm.close();
public static void main( String args[] )
for( int i = 0; i < 10; i ++ )
f();
Actually, exception is caused by MyEnumType.TYPE_1.getValue() because
this object's pm has been closed in the first loop time.
Now I solved this problem by not persistent MyEnumType objects, and
change type field in EnumTypeUseClass from MyEnumType to int.
But I still wonder how to persistent static objects.
Maybe your first advice is feasible, but I think it will make your
program tangly. Do you think so ? :)
Marc Prud'hommeaux wrote:
Liang-
You are correct that a persistent instance must be associated with a
PersistenceManager. You could always just leave the PersistenceManager
open (if using optimistic transaction, Kodo won't tie up database
resources in this case). Another option is to not have the singleston
instance be a static variable, but have it be obtained via a factory
method that takes a PersistenceManager argument.
If this doesn't help, perhaps you could help clarify the situation by
posting some code that shows that you would like to do?
In article <[email protected]>, Liang Zhilong wrote:
JDO always assigns a StateManager to a PersistenceCapable object when
creating instance. If an object is static, it'll keep its StateManager for
ever after instantiation. So If I excute the following code repeadly, kodo
will complain that persistence manager has been closed.
1) Get PersistenceManager
2) Begin transaction
3) Get object from datastore. If not exist, create a new object. This
object is a static.
4) Commit transaction
5) pm.close
For the first time, kodo will assign a new StateManager to this static
object. But for the second time, exception, "persistence manager has been
closed", will arise when excuting some of object's methods. Because each
StateManager object owns a PersistenceManager object. If this pm is
closed, according StateManager object is also useless.
After enhancing, kodo will change some getter/setter methods to
according jdo getter/setter ones. These methods may invoke
startManager.isLoaded(), which invokes pm.isActive(). Unfortunately, pm
has been closed.
Any other tricky methods to persistent static object ?
Thanks !
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Maybe you are looking for
-
I am trying to find out how to find the specs because the machine is my daughters and it is no longer useable but if I know where I can find its details from the serial no I can get it replaced new for old on the house insurance. Where can I find the
-
I have several projects in RoboHelp 11 that are complete in English, but now we are translating the content. I have read through the multiple language workflow instructions in the help, but I can't seem to interpret what they are saying. This step fr
-
Transfer data from a Structure to other Structure when one is inactive
Hello, users and companions of LabVIEW and National Instruments Products, Hello, I'm working in a proyect with 2 Incremental Encoder Mitutoyo, I have a Digital Read Out (DRO) System for read the encoders, The proyect consist in measure a Paraboli Sus
-
Importing using USB/Firewire
I am aware you cannot import into iMovie via. USB with macs. I have alot of footage on a Panasonic mini-DV camcorder which only has a USB output. Is there any solution for importing my footage onto my mac with this set up (i.e. freeware which uploads
-
Hi gurus , i have one requirement in which i need to compare 2 files and generate another file. is there any way to compare 2 flat files without using java.io package imean without using any kind readers or writes. give me a good idea to get rid of t