renderer

Is there a way to clear the last frame of video from the Video Mixer Renderer to leave blank client area?

I have a DirectShow graph that receives and renders a live network video stream using the Video Mixer Renderer. I'm using the IVMRWindowlessControl and I want to clear the client area to reveal the background image that was under the video before it was displayed. To overcome flicker problems I've overridden the WM_ERASEBKGND and OnP...

How to register a custom renderer in JSF?

We have numerical values in our database, representing a two-value-state. Of course this would perfectly match a boolean, but oracle has no such datatype. The NUMBER(1,0) type from the database is matched to a java.lang.Short type in Java (sometimes they used a NUMBER(*,0) to represent booleans, which are matched to java.math.BigDecimal)...

Set Jtable/Column Renderer for booleans

Right now my Boolean values for my JTable display as JCheckBoxes. This would normally be fine but I would like to display them as either an alternative String or image. I can get them to display as true/false but I would like to display them as a checkmark (✔) if true and nothing if false. Possibly an image but lets do a String first......

Circle approximations using Bezier curves.

Hello. I have 2 questions about bezier curves, and using them to approximate portions of circles. Given the unit circle arc (1,0)->(cos(a),sin(a)) where 0 < a < pi/2, will it result in a good approximation of this arc to find the bezier curve's control points p1, p2 by solving the equations imposed by the requirements B(1/3) = (cos(a/3...

flex scatterplot custom renderer

I have a scatter plot with 10 points, some points are above and below some thresh hold. I need to show different color for those above thresh hold below thresh hold within thresh hold Effectively, can the 10 points be colored a different color? Is it possible to do this with some renderer ? I am looking for a renderer since , the ...

Java - Changing JTable renderer per class

Hello, I was hoping someone could explain something to me as I found my solution, but I don't understand why it works. I wanted to set a default renderer by Class type to a whole table, not knowing at creation where objects will be in it. I had declared a JTable and set the default renderer to that of my own, for the Calendar class so...

Combo box custom renderer while enabling/disabling combo

I have 2 combo boxes, one dependent on another. For the second combo I define custom renderer and it's disabled. It should enable when some items of the 1st combo is selected, but it clears all values instead. The problem is that the values are set but are not rendered. In constructor: comboBoxes[1].setEnabled(false); comboBoxes[1].set...

Rendering and editing complex business object

I have a business object representing an invoice with all its line items, contractor data, bank account number, etc. I want to be able to display such an invoice and allow user to edit it, for instance to add new line item or delete an exisiting one. User should see all properties of an invoice. What's the best way about it? Should I...

Using OpenGL to replace Canvas - Android

I am attempting to replace the Canvas-based rendering system that I already have with the faster opengl-es surface, however, I can't seem to get an openGL renderer to conform in such a way that it acts as 2d field, rather than a perspective view. My current code for the renderer looks as follows: @Override public void onSurf...

Flex AdvancedDataGrid slow on performance while being resized

I have a AdvancedDataGrid which is placed inside a resizable container (custom panel) and fixed at 100% width and height. Datagrid has about 100 rows and 15 columns. When I try to resize the container datagrid kinda freezes. I understand that while resizing the whole redraw process is being held in my datagrid but are there any ways of o...

How to draw glowing text on StatusStrip with DrawThemeTextEx?

Hi, I'm trying to draw aero-styled glowing text in a .NET StatusStrip with a DrawThemeTextEx class I found. This is my current code which I use as a renderer for the StatusStrip: Class GlassStatusRenderer Inherits System.Windows.Forms.ToolStripProfessionalRenderer Protected Overrides Sub OnRenderToolStripBackground(ByVal e As System.Wi...

paintComponent and getTableCellRendererComponent not getting called

I am setting the renderer of a JTable using setDefaultTableRenderer. JTable table = new JTable(); table.setDefaultRenderer(Object.class,MyRenderer); MyRenderer extends DefaultTableCellRenderer and overrides paintComponent and getTableCellRendererComponent. I have 4 rows and 8 columns and for strange reason my renderer methods are not...

Interaction with a cell renderer in JTable

Is there any way to get a cell renderer to respond to mouse events, such as mouseovers? ...

JTree selected node background being rendered even when setopaque(true)

I have a JTree and I am trying to have a customized look and feel to it, but I am having problems with my cell rendering. Even after writing my own cell renderer, I find that a blue rectangle region marks which cell is selected in the tree, the default for the java look and feel. Any area on the tree that is not painted by the cell rende...

Funding for MathML rendering library

I have an unfinished MathML rendering library written in C++. I ceased development a few months ago due to lack of time. The library [still] uses the TrueType version (unsupported) of the STIX fonts beta [version 1.0 of the STIX fonts (OpenType Postscript format) has since been released]. Development of this kind of library is a HUGE un...

ExtJS - Open tab through clicking on link in GridPanel (column renderer)

Hi, I created link in the grid panel, so that when I click on the link and it will open another tab in the tab panel. Currently I render the column cell output into html href with onClick event. But it seems that got error when the renderer method openrender() call the other method newtab(), which showing error function newtab() cannot b...